]> git.pld-linux.org Git - packages/tdb.git/blobdiff - tdb.spec
- cleanup, python2 comment
[packages/tdb.git] / tdb.spec
index 30ee331326ed1524f4e1bb7723a6e35ebeb5756f..638bc74abf5bbd231470bb999d7ecbf2bc8edf9b 100644 (file)
--- a/tdb.spec
+++ b/tdb.spec
@@ -1,18 +1,20 @@
 Summary:       TDB - Trivial Database
 Summary(pl.UTF-8):     TDB - prosta baza danych
 Name:          tdb
-Version:       1.3.1
-Release:       1
+Version:       1.4.2
+Release:       2
 Epoch:         2
 License:       LGPL v3+
 Group:         Libraries
-Source0:       http://www.samba.org/ftp/tdb/%{name}-%{version}.tar.gz
-# Source0-md5: f597190451d976fe013dfae9934fb9ad
-Patch0:                %{name}-include.patch
+Source0:       https://www.samba.org/ftp/tdb/%{name}-%{version}.tar.gz
+# Source0-md5: b2c05ad68334368d3258a63db709f254
 URL:           http://tdb.samba.org/
-BuildRequires: python-devel >= 2
+BuildRequires: python3-devel >= 1:3.2
 BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
 Obsoletes:     tdb-extras
+# tdb 1.4+ dropped python2 suport
+Obsoletes:     python-tdb
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -41,31 +43,31 @@ Header files for TDB library.
 %description devel -l pl.UTF-8
 Pliki nagłówkowe biblioteki TDB.
 
-%package -n python-tdb
-Summary:       Python bindings for TDB
-Summary(pl.UTF-8):     Pythonowy interfejs do TDB
+%package -n python3-tdb
+Summary:       Python bindings for TDB
+Summary(pl.UTF-8):     Interfejs Pythona 3 do TDB
 Group:         Libraries/Python
 Requires:      %{name} = %{epoch}:%{version}-%{release}
-%pyrequires_eq  python-libs
+Requires:      python3-libs >= 1:3.2
 
-%description -n python-tdb
-Python bindings for TDB.
+%description -n python3-tdb
+Python bindings for TDB.
 
-%description -n python-tdb -l pl.UTF-8
-Pythonowy interfejs do TDB.
+%description -n python3-tdb -l pl.UTF-8
+Interfejs Pythona 3 do TDB.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
-# note: configure in fact is waf call
+export JOBS=1
+
 CC="%{__cc}" \
 CFLAGS="%{rpmcflags}" \
-PYTHONDIR=%{py_sitedir} \
-./configure \
+%{__python3} buildtools/bin/waf configure \
        --prefix=%{_prefix} \
-       --libdir=%{_libdir}
+       --libdir=%{_libdir} \
+       --disable-rpath
 
 %{__make} \
        V=1
@@ -76,6 +78,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
+%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -106,6 +111,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/tdb.h
 %{_pkgconfigdir}/tdb.pc
 
-%files -n python-tdb
+%files -n python3-tdb
 %defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/tdb.so
+%attr(755,root,root) %{py3_sitedir}/tdb.cpython-*.so
+%{py3_sitedir}/_tdb_text.py
+%{py3_sitedir}/__pycache__/_tdb_text.cpython-*.py[co]
This page took 0.027457 seconds and 4 git commands to generate.