!1 升级libtdb以支持samba升级

Merge pull request !1 from lvying6/dev
This commit is contained in:
openeuler-ci-bot 2020-02-18 11:33:37 +08:00 committed by Gitee
commit 0b47ccf5cc
3 changed files with 9 additions and 34 deletions

View File

@ -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 <buildteam@openeuler.org> - 1.4.2-1
- update to 1.4.2-1, drop python2 support
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.16-3
- Package init

Binary file not shown.

BIN
tdb-1.4.2.tar.gz Normal file

Binary file not shown.