Hello community,

here is the log from the commit of package tdb for openSUSE:Factory checked in 
at 2015-10-28 17:29:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tdb (Old)
 and      /work/SRC/openSUSE:Factory/.tdb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tdb"

Changes:
--------
--- /work/SRC/openSUSE:Factory/tdb/tdb.changes  2015-09-19 06:53:50.000000000 
+0200
+++ /work/SRC/openSUSE:Factory/.tdb.new/tdb.changes     2015-10-28 
17:29:40.000000000 +0100
@@ -1,0 +2,5 @@
+Sun Oct 25 13:10:36 UTC 2015 - [email protected]
+
+- Add python3-tdb; (bsc#951911).
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tdb.spec ++++++
--- /var/tmp/diff_new_pack.QXIyQX/_old  2015-10-28 17:29:41.000000000 +0100
+++ /var/tmp/diff_new_pack.QXIyQX/_new  2015-10-28 17:29:41.000000000 +0100
@@ -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:  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 @@
 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 @@
        --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 @@
 
 %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,18 @@
 %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
+%if 0%{?centos_version} > 599 || 0%{?fedora_version} > 11 || 0%{?rhel_version} 
> 599
+%{python3_sitearch}/__pycache__/_tdb_text.cpython-*.py[co]
+%endif
+%endif
+
 %changelog

++++++ baselibs.conf ++++++
--- /var/tmp/diff_new_pack.QXIyQX/_old  2015-10-28 17:29:41.000000000 +0100
+++ /var/tmp/diff_new_pack.QXIyQX/_new  2015-10-28 17:29:41.000000000 +0100
@@ -1,2 +1,3 @@
 libtdb1
 python-tdb
+python3-tdb




Reply via email to