Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > 66519e4776216e73a25bc546fbdf928c > files > 1

libtdb-1.0.6-2mdk.src.rpm

%define name libtdb
%define version 1.0.6
%define release 2mdk

%define major 1
%define libname %name%{major}

Name: %name
Summary: TDB is a Trivial Database
Version: %version
Release: %release
Source: tdb-%version.tar.bz2
Group: System/Libraries
BuildRoot: %{_tmppath}/%{name}-buildroot
License: GPL
URL: http://sourceforge.net/projects/tdb
BuildRequires: libgdbm-devel

%description
TDB is a Trivial Database. In concept, it is very much like GDBM, 
and BSD's DB except that it allows multiple simultaneous writers 
and uses locking internally to keep writers from trampling on 
each other. TDB is also extremely small.

%package -n %{libname}
Summary: TDB is a Trivial Database
Group: System/Libraries
Provides: %name = %version-%release

%description -n %{libname}
TDB is a Trivial Database. In concept, it is very much like GDBM,
and BSD's DB except that it allows multiple simultaneous writers 
and uses locking internally to keep writers from trampling on each
other. TDB is also extremely small.

%package -n %{libname}-devel
Summary: Headers files of libtdb library
Group: Development/C
Requires: %{libname} = %version-%release
Provides: libtdb-devel = %version-%release

%description -n %{libname}-devel
TDB is a Trivial Database. In concept, it is very much like GDBM,
and BSD's DB except that it allows multiple simultaneous writers
and uses locking internally to keep writers from trampling on each
other. TDB is also extremely small.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -n tdb-%version

%build

%configure

%make

%install

%makeinstall 

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

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

%clean
rm -rf $RPM_BUILD_ROOT 

%files -n %{libname}
%defattr (-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README TODO
%_bindir/tdbdump
%_bindir/tdbtool
%_libdir/*.so.*
%_mandir/man3/tdb*

%files -n %{libname}-devel
%defattr (-,root,root)
%_libdir/*a
%_libdir/*so
%_includedir/* 


%changelog
* Fri Dec 20 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.0.6-2mdk
- fix Requires/Provides
- fix missing files

* Fri Sep 20 2002 Lenny Cartier <lenny@mandrakesoft.com> 1.0.6-1mdk
- needed for new sweep