Hello community,
here is the log from the commit of package libtorrent-rasterbar for
openSUSE:Factory checked in at 2018-06-27 10:21:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libtorrent-rasterbar (Old)
and /work/SRC/openSUSE:Factory/.libtorrent-rasterbar.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libtorrent-rasterbar"
Wed Jun 27 10:21:01 2018 rev:55 rq:618708 version:1.1.7
Changes:
--------
---
/work/SRC/openSUSE:Factory/libtorrent-rasterbar/libtorrent-rasterbar.changes
2018-04-20 17:30:43.099822831 +0200
+++
/work/SRC/openSUSE:Factory/.libtorrent-rasterbar.new/libtorrent-rasterbar.changes
2018-06-27 10:21:01.836893053 +0200
@@ -1,0 +2,8 @@
+Sun Jun 17 18:47:02 UTC 2018 - [email protected]
+
+- Disable building of the Python 2 module and conditionalise both
+ Python's like in the boost package.
+- Rename python2-libtorrent-rasterbar back to
+ python-libtorrent-rasterbar on openSUSE Leap 42.3 and older.
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libtorrent-rasterbar.spec ++++++
--- /var/tmp/diff_new_pack.yTtr3d/_old 2018-06-27 10:21:02.876855120 +0200
+++ /var/tmp/diff_new_pack.yTtr3d/_new 2018-06-27 10:21:02.880854974 +0200
@@ -19,6 +19,8 @@
%define _name libtorrent
%define sover 9
%define _version 1_1_7
+%bcond_with python2
+%bcond_without python3
%bcond_with examples
%bcond_with tests
Name: libtorrent-rasterbar
@@ -33,15 +35,23 @@
Patch0: libtorrent-rasterbar-1.1.7-boost-1.67.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig
-BuildRequires: python-devel
BuildRequires: pkgconfig(openssl)
+%if %{with python2}
+BuildRequires: python-devel
+%endif
+%if %{with python3}
+BuildRequires: python3-devel
+%endif
%if 0%{?suse_version} >= 1500
BuildRequires: libboost_chrono-devel
-BuildRequires: libboost_python-devel
-BuildRequires: libboost_python3-devel
BuildRequires: libboost_random-devel
BuildRequires: libboost_system-devel
-BuildRequires: python3-devel
+%if %{with python2}
+BuildRequires: libboost_python-devel
+%endif
+%if %{with python3}
+BuildRequires: libboost_python3-devel
+%endif
%else
BuildRequires: boost-devel >= 1.54
# For quadmath.h we need gcc-fortran on openSUSE Leap 14.x and older.
@@ -77,17 +87,30 @@
* To be memory efficient.
* To be very easy to use.
+%if %{with python2}
+%if 0%{?suse_version} >= 1500
%package -n python2-%{name}
+%else
+%package -n python-%{name}
+%endif
Summary: Python Bindings for libtorrent-rasterbar
-# python-libtorrent-rasterbar was last used in openSUSE Leap 42.2.
Group: Development/Libraries/Python
-Provides: python-%{name} = %{version}
-Obsoletes: python-%{name} < %{version}
+%if 0%{?suse_version} >= 1500
+# python-libtorrent-rasterbar was last used in openSUSE Leap 42.2.
+Provides: python-%{name} = %{version}-%{release}
+Obsoletes: python-%{name} < %{version}-%{release}
%description -n python2-%{name}
+%else
+Provides: python2-%{name} = %{version}-%{release}
+Obsoletes: python2-%{name} < %{version}-%{release}
+
+%description -n python-%{name}
+%endif
Python Bindings for the libtorrent-rasterbar package.
+%endif
-%if 0%{?suse_version} >= 1500
+%if %{with python3}
%package -n python3-%{name}
Summary: Python Bindings for libtorrent-rasterbar
Group: Development/Libraries/Python
@@ -153,11 +176,7 @@
%endif
%global _configure ../configure
-%if 0%{?suse_version} >= 1500
-for py in python python3; do
-%else
-for py in python; do
-%endif
+for py in %{?with_python2:python} %{?with_python3:python3}; do
mkdir -p "build-$py"
pushd "build-$py"
export PYTHON="$py"
@@ -178,8 +197,10 @@
done
%install
+%if %{with python2}
%make_install -C build-python
-%if 0%{?suse_version} >= 1500
+%endif
+%if %{with python3}
%make_install -C build-python3
%endif
@@ -197,8 +218,10 @@
%if %{with tests}
%check
+%if %{with python2}
make check %{?_smp_mflags} V=1 -C build-python
-%if 0%{?suse_version} >= 1500
+%endif
+%if %{with python3}
make check %{?_smp_mflags} V=1 -C build-python3
%endif
%endif
@@ -223,11 +246,17 @@
%doc AUTHORS ChangeLog
%{_libdir}/%{name}.so.%{sover}*
+%if %{with python2}
+%if 0%{?suse_version} >= 1500
%files -n python2-%{name}
+%else
+%files -n python-%{name}
+%endif
%{python_sitearch}/%{_name}*.so
%{python_sitearch}/python_%{_name}-*
+%endif
-%if 0%{?suse_version} >= 1500
+%if %{with python3}
%files -n python3-%{name}
%{python3_sitearch}/%{_name}*.so
%{python3_sitearch}/python_%{_name}-*