SPECS: tdb.spec - up to 1.1.2; switch to samba implementation; add python b...

arekm arekm at pld-linux.org
Mon Aug 18 21:14:14 CEST 2008


Author: arekm                        Date: Mon Aug 18 19:14:14 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 1.1.2; switch to samba implementation; add python bindings

---- Files affected:
SPECS:
   tdb.spec (1.11 -> 1.12) 

---- Diffs:

================================================================
Index: SPECS/tdb.spec
diff -u SPECS/tdb.spec:1.11 SPECS/tdb.spec:1.12
--- SPECS/tdb.spec:1.11	Tue Dec 25 23:33:25 2007
+++ SPECS/tdb.spec	Mon Aug 18 21:14:09 2008
@@ -1,21 +1,19 @@
 # $Revision$, $Date$
+%define	snap	20080818
 Summary:	TDB - Trivial Database
 Summary(pl.UTF-8):	TDB - prosta baza danych
 Name:		tdb
-Version:	1.0.6
-Release:	4
+Version:	1.1.2
+Release:	0.%{snap}.1
 License:	GPL
 Group:		Libraries
-Source0:	http://dl.sourceforge.net/tdb/%{name}-%{version}.tar.gz
-# Source0-md5:	6b643fdeb48304010dcd5f675e458b58
-Patch0:		%{name}-gcc33.patch
-Patch1:		%{name}-tdb_store.patch
-Patch2:		%{name}-Makefile-extras.patch
-URL:		http://sourceforge.net/projects/tdb/
-BuildRequires:	autoconf
-BuildRequires:	automake
+Source0:	%{name}-%{snap}.tar.bz2
+# Source0-md5:	128dfb4865c2fcabf36d8cfbb1d20d06
+URL:		http://tdb.samba.org/
 BuildRequires:	gdbm-devel
-BuildRequires:	libtool
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+Obsoletes:	tdb-extras
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -67,17 +65,19 @@
 %description extras -l pl.UTF-8
 Dodatkowe narzędzia do TDB.
 
+%package -n python-tdb
+Summary:	Python bindings for TDB
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+%pyrequires_eq  python-libs
+
+%description -n python-tdb
+Python bindings for TDB.
+
 %prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%setup -q -n %{name}
 
 %build
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__automake}
 %configure
 %{__make}
 
@@ -87,6 +87,12 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+install libtdb.so $RPM_BUILD_ROOT%{_libdir}
+
+%py_comp $RPM_BUILD_ROOT
+%py_ocomp $RPM_BUILD_ROOT
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -95,7 +101,8 @@
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README TODO
+%doc docs/README
+%attr(755,root,root) %{_bindir}/tdbbackup
 %attr(755,root,root) %{_bindir}/tdbdump
 %attr(755,root,root) %{_bindir}/tdbtool
 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
@@ -103,20 +110,17 @@
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
 %{_includedir}/tdb.h
-%{_mandir}/man3/*
+%{_pkgconfigdir}/*.pc
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 
-%files extras
+%files -n python-tdb
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/tdbiterate
-%attr(755,root,root) %{_bindir}/tdbspeed
-%attr(755,root,root) %{_bindir}/tdbtest
-%attr(755,root,root) %{_bindir}/tdbtorture
+%attr(755,root,root) %{py_sitedir}/*.so
+%{py_sitescriptdir}/*.py[co]
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -124,7 +128,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.11  2007/12/25 22:33:25  glen
+Revision 1.12  2008/08/18 19:14:09  arekm
+- up to 1.1.2; switch to samba implementation; add python bindings
+
+Revision 1.11  2007-12-25 22:33:25  glen
 - rel 4
 
 Revision 1.10  2007-02-12 22:09:17  glen
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/tdb.spec?r1=1.11&r2=1.12&f=u



More information about the pld-cvs-commit mailing list