]> git.pld-linux.org Git - packages/tdb.git/blobdiff - tdb.spec
- up to 1.3.9
[packages/tdb.git] / tdb.spec
index 04a7d7ee7530e06a10dcf5e2fb1dde63ff4aed28..b92d50735e979b1a692cd6474f34f0629fc39726 100644 (file)
--- a/tdb.spec
+++ b/tdb.spec
@@ -1,16 +1,17 @@
 Summary:       TDB - Trivial Database
 Summary(pl.UTF-8):     TDB - prosta baza danych
 Name:          tdb
-Version:       1.2.9
-Release:       3
+Version:       1.3.9
+Release:       1
 Epoch:         2
 License:       LGPL v3+
 Group:         Libraries
-Source0:       http://samba.org/ftp/tdb/%{name}-%{version}.tar.gz
-# Source0-md5: 4d97d18bbe9040038d4e003495bb8cd1
+Source0:       https://www.samba.org/ftp/tdb/%{name}-%{version}.tar.gz
+# Source0-md5: 20c980778114543656e0770249d13735
 URL:           http://tdb.samba.org/
-BuildRequires: python-devel
+BuildRequires: python-devel >= 2
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
 Obsoletes:     tdb-extras
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -63,7 +64,8 @@ CFLAGS="%{rpmcflags}" \
 PYTHONDIR=%{py_sitedir} \
 ./configure \
        --prefix=%{_prefix} \
-       --libdir=%{_libdir}
+       --libdir=%{_libdir} \
+       --disable-rpath
 
 %{__make} \
        V=1
@@ -74,19 +76,23 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post  -p /sbin/ldconfig
 %postun        -p /sbin/ldconfig
 
-%triggerpostun -p /sbin/postshell -- %{name} < 2:1.2.9-2
+%triggerpostun -p /sbin/postshell -- tdb < 2:1.2.9-2
 -rm -f %{_libdir}/libtdb.so.1
 /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
-%doc docs/README
+%doc docs/{README,mutex.txt,tracing.txt}
 %attr(755,root,root) %{_bindir}/tdbbackup
 %attr(755,root,root) %{_bindir}/tdbdump
 %attr(755,root,root) %{_bindir}/tdbrestore
@@ -107,3 +113,4 @@ rm -rf $RPM_BUILD_ROOT
 %files -n python-tdb
 %defattr(644,root,root,755)
 %attr(755,root,root) %{py_sitedir}/tdb.so
+%{py_sitedir}/_tdb_text.py[co]
This page took 0.087281 seconds and 4 git commands to generate.