diff --git a/libtdb.spec b/libtdb.spec index 861302a05be6a0e742d9988deed614d8b4c947a4..0db4fc70e132e406bc46288e3aaa4f798c427f7a 100644 --- a/libtdb.spec +++ b/libtdb.spec @@ -1,14 +1,15 @@ Name: libtdb -Version: 1.3.16 -Release: 3 +Version: 1.4.2 +Release: 1 Summary: The Tdb library License: LGPLv3+ URL: http://tdb.samba.org/ Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz BuildRequires: gcc libxslt docbook-style-xsl -BuildRequires: python2-devel python3-devel +BuildRequires: python3-devel Provides: bundled(libreplace) +Obsoletes: python2-tdb < 1.4.2-1 %description Tdb library implements a trivial database. @@ -20,14 +21,6 @@ Requires: libtdb = %{version}-%{release} %description -n tdb-tools Tools to manage Tdb files -%package -n python2-tdb -Summary: Python bindings for the Tdb library -Requires: libtdb = %{version}-%{release} -%{?python_provide:%python_provide python2-tdb} - -%description -n python2-tdb -Python bindings for the Tdb library - %package -n python3-tdb Summary: Python3 bindings for the Tdb library Requires: libtdb = %{version}-%{release} @@ -39,7 +32,6 @@ Python3 bindings for the Tdb library %package devel Summary: Header files for Tdb library Requires: libtdb = %{version}-%{release} -Requires: pkgconfig %description devel Header files of the Tdb library to develop programs. @@ -55,12 +47,9 @@ Document for the Tdb library %autosetup -n tdb-%{version} -p1 %build -pathfix.py -n -p -i %{__python2} buildtools/bin/waf - %configure --disable-rpath \ --bundled-libraries=NONE \ - --builtin-libraries=replace \ - --extra-python=%{__python3} + --builtin-libraries=replace %make_build @@ -70,9 +59,6 @@ make %{?_smp_mflags} check %install %make_install -find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \; -rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a - %files %{_libdir}/libtdb.so.* @@ -82,10 +68,6 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a %{_bindir}/tdbtool %{_bindir}/tdbrestore -%files -n python2-tdb -%{python2_sitearch}/tdb.so -%{python2_sitearch}/_tdb_text.py* - %files -n python3-tdb %{python3_sitearch}/__pycache__/_tdb_text.cpython*.py[co] %{python3_sitearch}/tdb.cpython*.so @@ -103,18 +85,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a %{_mandir}/man8/tdbtool.8* %{_mandir}/man8/tdbrestore.8* -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%post -n python2-tdb -p /sbin/ldconfig - -%postun -n python2-tdb -p /sbin/ldconfig - -%post -n python3-tdb -p /sbin/ldconfig - -%postun -n python3-tdb -p /sbin/ldconfig +%ldconfig_scriptlets %changelog +* Sat Feb 11 2020 openEuler Buildteam - 1.4.2-1 +- update to 1.4.2-1, drop python2 support + * Wed Sep 11 2019 openEuler Buildteam - 1.3.16-3 - Package init diff --git a/tdb-1.3.16.tar.gz b/tdb-1.3.16.tar.gz deleted file mode 100644 index 47eb7fd7f56c6a837e0ec913894afc5c64cfee21..0000000000000000000000000000000000000000 Binary files a/tdb-1.3.16.tar.gz and /dev/null differ diff --git a/tdb-1.4.2.tar.gz b/tdb-1.4.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d2ac9b9693a472efe8ee72b5b6aa806bb62ef523 Binary files /dev/null and b/tdb-1.4.2.tar.gz differ