0f67c0b
Name: libtdb
0f67c0b
Version: 1.1.5
0f67c0b
Release: 0%{?dist}
0f67c0b
Group: System Environment/Daemons
0f67c0b
Summary: The tdb library
0f67c0b
License: LGPLv3+
0f67c0b
URL: http://tdb.samba.org/
0f67c0b
Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
0f67c0b
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
0f67c0b
0f67c0b
BuildRequires: autoconf
0f67c0b
0f67c0b
%description
0f67c0b
A library that implements a trivial database.
0f67c0b
0f67c0b
%package devel
0f67c0b
Group: Development/Libraries
0f67c0b
Summary: Header files need to link the Tdb library
0f67c0b
Requires: libtdb = %{version}-%{release}
0f67c0b
Requires: pkgconfig
0f67c0b
0f67c0b
%description devel
0f67c0b
Header files needed to develop programs that link against the Tdb library.
0f67c0b
0f67c0b
%package -n tdb-tools
0f67c0b
Group: Development/Libraries
0f67c0b
Summary: Developer tools for the Tdb library
0f67c0b
Requires: libtdb = %{version}-%{release}
0f67c0b
0f67c0b
%description -n tdb-tools
0f67c0b
Tools to manage Tdb files
0f67c0b
0f67c0b
%prep
0f67c0b
%setup -q -n tdb-%{version}
0f67c0b
0f67c0b
%build
0f67c0b
./autogen.sh
0f67c0b
%configure --prefix=%{_usr} --disable-python
0f67c0b
make %{?_smp_mflags}
0f67c0b
0f67c0b
%install
0f67c0b
rm -rf $RPM_BUILD_ROOT
0f67c0b
0f67c0b
make install DESTDIR=$RPM_BUILD_ROOT
0f67c0b
0f67c0b
ln -s libtdb.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libtdb.so
0f67c0b
0f67c0b
rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
0f67c0b
rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/tdb.so
0f67c0b
0f67c0b
0f67c0b
%clean
0f67c0b
rm -rf $RPM_BUILD_ROOT
0f67c0b
0f67c0b
%files
0f67c0b
%defattr(-,root,root,-)
0f67c0b
%{_libdir}/libtdb.so.*
0f67c0b
0f67c0b
%files devel
0f67c0b
%defattr(-,root,root)
0f67c0b
%{_includedir}/tdb.h
0f67c0b
%{_libdir}/libtdb.so
0f67c0b
%{_libdir}/pkgconfig/tdb.pc
0f67c0b
0f67c0b
%files -n tdb-tools
0f67c0b
%defattr(-,root,root,-)
0f67c0b
%{_bindir}/tdbbackup
0f67c0b
%{_bindir}/tdbdump
0f67c0b
%{_bindir}/tdbtool
0f67c0b
0f67c0b
0f67c0b
%post
0f67c0b
/sbin/ldconfig
0f67c0b
0f67c0b
%postun
0f67c0b
/sbin/ldconfig
0f67c0b
0f67c0b
%changelog
0f67c0b
* Mon Jul  6 2009 Simo Sorce <ssorce@redhat.com> - 1.1.5-0
0f67c0b
Build tdb as a separate package in F-11 too.