Accepting request 340873 from network:samba:STABLE
Add python3-tdb; (bsc#951911). OBS-URL: https://build.opensuse.org/request/show/340873 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tdb?expand=0&rev=25
This commit is contained in:
commit
c13af10dde
@ -1,2 +1,3 @@
|
|||||||
libtdb1
|
libtdb1
|
||||||
python-tdb
|
python-tdb
|
||||||
|
python3-tdb
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Oct 25 13:10:36 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
- Add python3-tdb; (bsc#951911).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 7 17:06:26 UTC 2015 - lmuelle@suse.com
|
Mon Sep 7 17:06:26 UTC 2015 - lmuelle@suse.com
|
||||||
|
|
||||||
|
41
tdb.spec
41
tdb.spec
@ -17,6 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
%{!?py3_soflags: %global py3_soflags cpython-%{python3_version_nodots}m}
|
||||||
|
%if 0%{?suse_version} > 1310 || 0%{?fedora_version} > 20
|
||||||
|
%define with_python3 1
|
||||||
|
%else
|
||||||
|
%define with_python3 0
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: tdb
|
Name: tdb
|
||||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
|
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
|
||||||
@ -33,6 +39,9 @@ BuildRequires: pkg-config
|
|||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
%if %{with_python3}
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
%endif
|
||||||
Url: http://tdb.samba.org/
|
Url: http://tdb.samba.org/
|
||||||
Version: 1.3.7
|
Version: 1.3.7
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -111,6 +120,17 @@ PreReq: /sbin/ldconfig
|
|||||||
This package contains the python bindings for the Tdb library.
|
This package contains the python bindings for the Tdb library.
|
||||||
|
|
||||||
|
|
||||||
|
%if %{with_python3}
|
||||||
|
%package -n python3-tdb
|
||||||
|
Summary: Python3 bindings for the Tdb library
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: %{libtdb_name} = %{version}
|
||||||
|
PreReq: /sbin/ldconfig
|
||||||
|
|
||||||
|
%description -n python3-tdb
|
||||||
|
This package contains the python3 bindings for the Tdb library.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n tdb-%{version} -q
|
%setup -n tdb-%{version} -q
|
||||||
%ifarch ppc ppc64 ppc64le
|
%ifarch ppc ppc64 ppc64le
|
||||||
@ -131,6 +151,9 @@ CONFIGURE_OPTIONS="\
|
|||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--bundled-libraries=NONE \
|
--bundled-libraries=NONE \
|
||||||
|
%if %{with_python3}
|
||||||
|
--extra-python=/usr/bin/python3 \
|
||||||
|
%endif
|
||||||
"
|
"
|
||||||
./configure ${CONFIGURE_OPTIONS}
|
./configure ${CONFIGURE_OPTIONS}
|
||||||
%{__make} %{build_make_smp_mflags} \
|
%{__make} %{build_make_smp_mflags} \
|
||||||
@ -152,6 +175,12 @@ DESTDIR=${RPM_BUILD_ROOT} make install
|
|||||||
|
|
||||||
%postun -n python-tdb -p /sbin/ldconfig
|
%postun -n python-tdb -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%if %{with_python3}
|
||||||
|
%post -n python3-tdb -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -n python3-tdb -p /sbin/ldconfig
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n %{libtdb_name}
|
%files -n %{libtdb_name}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libtdb.so.*
|
%{_libdir}/libtdb.so.*
|
||||||
@ -176,8 +205,18 @@ DESTDIR=${RPM_BUILD_ROOT} make install
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python-tdb
|
%files -n python-tdb
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{python_sitearch}/tdb.so
|
%{python_sitearch}/tdb.so
|
||||||
%{python_sitearch}/_tdb_text.py*
|
%{python_sitearch}/_tdb_text.py*
|
||||||
|
|
||||||
|
%if %{with_python3}
|
||||||
|
%files -n python3-tdb
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{python3_sitearch}/tdb.%{py3_soflags}.so
|
||||||
|
%{python3_sitearch}/_tdb_text.py
|
||||||
|
%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 0%{?rhel_version} > 599
|
||||||
|
%{python3_sitearch}/__pycache__/_tdb_text.cpython-*.py[co]
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user