Accepting request 340844 from home:lmuelle:pyton3-samba
Add python3-tdb; (bsc#951911). OBS-URL: https://build.opensuse.org/request/show/340844 OBS-URL: https://build.opensuse.org/package/show/network:samba:STABLE/tdb?expand=0&rev=73
This commit is contained in:
parent
3ea3c7ae9d
commit
ae0c24ff5e
@ -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
|
||||
|
||||
|
38
tdb.spec
38
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)")}
|
||||
%{!?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
|
||||
%if 0%{?suse_version} == 0 || 0%{?suse_version} > 1140
|
||||
@ -33,6 +39,9 @@ BuildRequires: pkg-config
|
||||
BuildRequires: pkgconfig
|
||||
%endif
|
||||
BuildRequires: python-devel
|
||||
%if %{with_python3}
|
||||
BuildRequires: python3-devel
|
||||
%endif
|
||||
Url: http://tdb.samba.org/
|
||||
Version: 1.3.7
|
||||
Release: 0
|
||||
@ -111,6 +120,17 @@ PreReq: /sbin/ldconfig
|
||||
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
|
||||
%setup -n tdb-%{version} -q
|
||||
%ifarch ppc ppc64 ppc64le
|
||||
@ -131,6 +151,9 @@ CONFIGURE_OPTIONS="\
|
||||
--libdir=%{_libdir} \
|
||||
--disable-rpath \
|
||||
--bundled-libraries=NONE \
|
||||
%if %{with_python3}
|
||||
--extra-python=/usr/bin/python3 \
|
||||
%endif
|
||||
"
|
||||
./configure ${CONFIGURE_OPTIONS}
|
||||
%{__make} %{build_make_smp_mflags} \
|
||||
@ -152,6 +175,12 @@ DESTDIR=${RPM_BUILD_ROOT} make install
|
||||
|
||||
%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}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libtdb.so.*
|
||||
@ -176,8 +205,15 @@ DESTDIR=${RPM_BUILD_ROOT} make install
|
||||
%endif
|
||||
|
||||
%files -n python-tdb
|
||||
%defattr(-,root,root,-)
|
||||
%defattr(-,root,root)
|
||||
%{python_sitearch}/tdb.so
|
||||
%{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
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user