Sophie

Sophie

distrib > Mandriva > 2007.0 > x86_64 > media > contrib-release-src > by-pkgid > f52c3e7a7fc1d1dfcd358ca16338485f > files > 3

metakit-2.4.9.3-3mdk.src.rpm

%define name 	metakit
%define version 2.4.9.3
%define release %mkrel 3

%define major 	0
%define libname %mklibname %{name} %{major}

Summary: 	Embeddable database
Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
License: 	GPL
Group: 		System/Libraries
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
Source: 	http://www.equi4.com/pub/mk/%{name}-%{version}.tar.bz2
Patch:		%name-2.4.9.2-version.patch.bz2
URL: 		http://www.equi4.com/metakit/
BuildRequires:	tcl python-devel

%description
MetaKit is an embeddable database which runs on Unix, Windows, Macintosh,
and other platforms. It lets you build applications which store their data
efficiently, in a portable way, and which will not need a complex runtime
installation. In terms of the data model, MetaKit takes the middle ground
between RDBMS, OODBMS, and flat-file databases - yet it is quite different
from each of them.

%package -n %{libname}
Summary: Main library for %{name}, a embeddable database
Group: System/Libraries
Provides: %name = %{version}-%{release}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

MetaKit is an embeddable database which runs on Unix, Windows, Macintosh,
and other platforms. It lets you build applications which store their data
efficiently, in a portable way, and which will not need a complex runtime
installation. In terms of the data model, MetaKit takes the middle ground
between RDBMS, OODBMS, and flat-file databases - yet it is quite different
from each of them.

%package -n %{libname}-devel
Summary: Files to compile programs that will use %{name}
Group: Development/C
Requires: %{libname} = %{version}
Provides: lib%{name}-devel = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}
Provides: %libname-devel = %version-%release

%description -n %{libname}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

MetaKit is an embeddable database which runs on Unix, Windows, Macintosh,
and other platforms. It lets you build applications which store their data
efficiently, in a portable way, and which will not need a complex runtime
installation. In terms of the data model, MetaKit takes the middle ground
between RDBMS, OODBMS, and flat-file databases - yet it is quite different
from each of them.

%package -n python-%name
Summary: Python bindings for %name, a embeddable database
Group: System/Libraries
Requires: %libname python
Provides: Mk4py mk4py %name-python
Obsoletes: %name-python

%description -n python-%name
Python bindings for %name

MetaKit is an embeddable database which runs on Unix, Windows, Macintosh,
and other platforms. It lets you build applications which store their data
efficiently, in a portable way, and which will not need a complex runtime
installation. In terms of the data model, MetaKit takes the middle ground
between RDBMS, OODBMS, and flat-file databases - yet it is quite different
from each of them.

%package -n %name-tcl
Summary: Tcl bindings for %name, a embeddable database
Group: System/Libraries
Requires: %libname tcl
Provides: Mk4tcl mk4tcl

%description -n %name-tcl
Tcl bindings for %name

MetaKit is an embeddable database which runs on Unix, Windows, Macintosh,
and other platforms. It lets you build applications which store their data
efficiently, in a portable way, and which will not need a complex runtime
installation. In terms of the data model, MetaKit takes the middle ground
between RDBMS, OODBMS, and flat-file databases - yet it is quite different
from each of them.


%prep
%setup -q
rm -rf builds/tests/CVS
cd unix
%patch -p1

%build
cd unix
perl -pi -e "s/^CXXFLAGS.*/CXXFLAGS = $RPM_OPT_FLAGS/" Makefile.in
perl -p -i -e "s|python2.3|python%{pyver}||g" configure
cd ../builds
CONFIGURE_TOP="../unix" %configure2_5x --enable-python --with-python=/usr --with-tcl=/usr/include
%make

%install
mkdir -p %buildroot/%py_sitedir
cd builds
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%files -n %{libname}
%defattr(-, root, root)
%doc README
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr(-, root, root)
%doc README CHANGES  doc demos examples WHATSNEW
%{_libdir}/*.so
%{_libdir}/*.*a
%{_includedir}/*

%files -n python-%name
%defattr(-, root, root)
%doc README
%py_sitedir/Mk4py.so
%py_sitedir/metakit.py

%files -n %name-tcl
%defattr(-, root, root)
%doc README
%{_libdir}/Mk4tcl

%changelog
* Fri Nov 04 2005 Michael Scherer <misc@mandriva.org> 2.4.9.3-3mdk
- fix naming of python module
- enhance description
- use macro
- mkrel

* Sun Jan 10 2005 Austin Acton <austin@mandrake.org> 2.4.9.3-2mdk
- rebuild for python

* Sat Jul 17 2004 Michael Scherer <misc@mandrake.org> 2.4.9.3-1mdk
- New release 2.4.9.3
- rpmbuildupdate aware

* Mon Apr  7 2003 Guillaume Cottenceau <gc@mandrakesoft.com> 2.4.9.2-2mdk
- add another provides to the -devel

* Mon Mar 31 2003 Austin Acton <aacton@yorku.ca> 2.4.9.2-1mdk
- cleanup spec
- update
- use mklibname
- add docs, demos
- add python and tcl extensions
- redo patch

* Tue Jan 28 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.4.6-3mdk
- rebuild

* Thu Sep 05 2002 Lenny Cartier <lenny@mandrakesoft.com> 2.4.6-2mdk
- rebuild

* Mon Jun  3 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.4.6-1mdk
- recompile against latest libstdc++
- new version
- provide library version so that we can use dynamic library as usual

* Mon Feb 18 2002 Guillaume Cottenceau <gc@mandrakesoft.com> 2.4.3-1mdk
- first mdk release as a separate package (was previously inside simgear)