update libtdb to version 1.4.2 to support samba upgrade
Signed-off-by: lvying6 <lvying6@huawei.com>
This commit is contained in:
parent
c501d580ed
commit
3fd282c3fa
43
libtdb.spec
43
libtdb.spec
@ -1,14 +1,15 @@
|
|||||||
Name: libtdb
|
Name: libtdb
|
||||||
Version: 1.3.16
|
Version: 1.4.2
|
||||||
Release: 3
|
Release: 1
|
||||||
Summary: The Tdb library
|
Summary: The Tdb library
|
||||||
License: LGPLv3+
|
License: LGPLv3+
|
||||||
URL: http://tdb.samba.org/
|
URL: http://tdb.samba.org/
|
||||||
Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
|
Source: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc libxslt docbook-style-xsl
|
BuildRequires: gcc libxslt docbook-style-xsl
|
||||||
BuildRequires: python2-devel python3-devel
|
BuildRequires: python3-devel
|
||||||
Provides: bundled(libreplace)
|
Provides: bundled(libreplace)
|
||||||
|
Obsoletes: python2-tdb < 1.4.2-1
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Tdb library implements a trivial database.
|
Tdb library implements a trivial database.
|
||||||
@ -20,14 +21,6 @@ Requires: libtdb = %{version}-%{release}
|
|||||||
%description -n tdb-tools
|
%description -n tdb-tools
|
||||||
Tools to manage Tdb files
|
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
|
%package -n python3-tdb
|
||||||
Summary: Python3 bindings for the Tdb library
|
Summary: Python3 bindings for the Tdb library
|
||||||
Requires: libtdb = %{version}-%{release}
|
Requires: libtdb = %{version}-%{release}
|
||||||
@ -39,7 +32,6 @@ Python3 bindings for the Tdb library
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Header files for Tdb library
|
Summary: Header files for Tdb library
|
||||||
Requires: libtdb = %{version}-%{release}
|
Requires: libtdb = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Header files of the Tdb library to develop programs.
|
Header files of the Tdb library to develop programs.
|
||||||
@ -55,12 +47,9 @@ Document for the Tdb library
|
|||||||
%autosetup -n tdb-%{version} -p1
|
%autosetup -n tdb-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
pathfix.py -n -p -i %{__python2} buildtools/bin/waf
|
|
||||||
|
|
||||||
%configure --disable-rpath \
|
%configure --disable-rpath \
|
||||||
--bundled-libraries=NONE \
|
--bundled-libraries=NONE \
|
||||||
--builtin-libraries=replace \
|
--builtin-libraries=replace
|
||||||
--extra-python=%{__python3}
|
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
@ -70,9 +59,6 @@ make %{?_smp_mflags} check
|
|||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
|
|
||||||
rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_libdir}/libtdb.so.*
|
%{_libdir}/libtdb.so.*
|
||||||
|
|
||||||
@ -82,10 +68,6 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
|
|||||||
%{_bindir}/tdbtool
|
%{_bindir}/tdbtool
|
||||||
%{_bindir}/tdbrestore
|
%{_bindir}/tdbrestore
|
||||||
|
|
||||||
%files -n python2-tdb
|
|
||||||
%{python2_sitearch}/tdb.so
|
|
||||||
%{python2_sitearch}/_tdb_text.py*
|
|
||||||
|
|
||||||
%files -n python3-tdb
|
%files -n python3-tdb
|
||||||
%{python3_sitearch}/__pycache__/_tdb_text.cpython*.py[co]
|
%{python3_sitearch}/__pycache__/_tdb_text.cpython*.py[co]
|
||||||
%{python3_sitearch}/tdb.cpython*.so
|
%{python3_sitearch}/tdb.cpython*.so
|
||||||
@ -103,18 +85,11 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/libtdb.a
|
|||||||
%{_mandir}/man8/tdbtool.8*
|
%{_mandir}/man8/tdbtool.8*
|
||||||
%{_mandir}/man8/tdbrestore.8*
|
%{_mandir}/man8/tdbrestore.8*
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%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
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.16-3
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
Binary file not shown.
BIN
tdb-1.4.2.tar.gz
Normal file
BIN
tdb-1.4.2.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user