diff --git a/.cvsignore b/.cvsignore index e69de29..154c3f5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +tdb-1.1.3.tar.gz diff --git a/libtdb.spec b/libtdb.spec new file mode 100644 index 0000000..a568c99 --- /dev/null +++ b/libtdb.spec @@ -0,0 +1,80 @@ +Name: libtdb +Version: 1.1.3 +Release: 15%{?dist} +Group: System Environment/Daemons +Summary: The tdb library +License: LGPLv3+ +URL: http://tdb.samba.org/ +Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: autoconf + +%description +A library that implements a trivial database. + +%package devel +Group: Development/Libraries +Summary: Header files need to link the Tdb library +Requires: libtdb = %{version}-%{release} +Requires: pkgconfig + +%description devel +Header files needed to develop programs that link against the Tdb library. + +%package -n tdb-tools +Group: Development/Libraries +Summary: Developer tools for the Tdb library +Requires: libtdb = %{version}-%{release} + +%description -n tdb-tools +Tools to manage Tdb files + +%prep +%setup -q -n tdb-%{version} + +%build +./autogen.sh +%configure --prefix=%{_usr} +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT + +ln -s libtdb.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtdb.so + +rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a +rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-package/tdb.so + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{_libdir}/libtdb.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/tdb.h +%{_libdir}/libtdb.so +%{_libdir}/pkgconfig/tdb.pc + +%files -n tdb-tools +%defattr(-,root,root,-) +%{_bindir}/tdbbackup +%{_bindir}/tdbdump +%{_bindir}/tdbtool + + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%changelog +* Wed May 6 2009 Simo Sorce - 1.1.3-15 +- First public independent release from upstream diff --git a/sources b/sources index e69de29..b415c3f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c47ae984b610bae45e74807081371bdc tdb-1.1.3.tar.gz