Hello community,
here is the log from the commit of package libtorrent-rasterbar for
openSUSE:Factory checked in at 2016-05-17 17:16:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libtorrent-rasterbar (Old)
and /work/SRC/openSUSE:Factory/.libtorrent-rasterbar.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libtorrent-rasterbar"
Changes:
--------
---
/work/SRC/openSUSE:Factory/libtorrent-rasterbar/libtorrent-rasterbar.changes
2016-04-28 17:00:03.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.libtorrent-rasterbar.new/libtorrent-rasterbar.changes
2016-05-17 17:16:38.000000000 +0200
@@ -1,0 +2,9 @@
+Mon May 16 13:26:12 UTC 2016 - [email protected]
+
+- Build Python3 bindings for openSUSE Leap 42.2 and newer.
+- Remove GeoIP support remnants, was removed in 1.1.0.
+- Replace fix-sse-only-on-x86.patch with
+ libtorrent-rasterbar-1.1.0-remove-x86-only-flag.patch
+ (commit 680eddf) and apply unconditionally.
+
+-------------------------------------------------------------------
Old:
----
fix-sse-only-on-x86.patch
New:
----
libtorrent-rasterbar-1.1.0-remove-x86-only-flag.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libtorrent-rasterbar.spec ++++++
--- /var/tmp/diff_new_pack.aTF9Lo/_old 2016-05-17 17:16:39.000000000 +0200
+++ /var/tmp/diff_new_pack.aTF9Lo/_new 2016-05-17 17:16:39.000000000 +0200
@@ -26,22 +26,20 @@
Summary: Libtorrent is a C++ implementation of the BitTorrent protocol
License: BSD-3-Clause
Group: Development/Libraries/C and C++
-Url: http://rasterbar.com/products/libtorrent
+Url: http://libtorrent.org/
Source:
https://github.com/arvidn/%{_name}/releases/download/%{_name}-%{_version}/%{name}-%{version}.tar.gz
-%ifnarch x86_64 amd64 %{ix86}
-Patch0: fix-sse-only-on-x86.patch
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
-%endif
-BuildRequires: boost-devel >= 1.36
+# PATCH-FIX-UPSTREAM libtorrent-rasterbar-1.1.0-remove-x86-only-flag.patch --
Remove -msse4.2 flag (commit 680eddf).
+Patch0: %{name}-1.1.0-remove-x86-only-flag.patch
+BuildRequires: boost-devel >= 1.47
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: python-devel
-BuildRequires: pkgconfig(geoip)
BuildRequires: pkgconfig(openssl)
-# For quadmath.h we need gcc-fortran on openSUSE < Factory (<= 42.1)
-%if 0%{?suse_version} <=1320
+%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 &&
0%{?is_opensuse})
+BuildRequires: python3-devel
+%endif
+%if 0%{?suse_version} <= 1320
+# For quadmath.h we need gcc-fortran on openSUSE Leap 42.x and older.
BuildRequires: gcc-fortran
%endif
@@ -81,6 +79,15 @@
%description -n python-%{name}
Python Bindings for the libtorrent-rasterbar package.
+%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 &&
0%{?is_opensuse})
+%package -n python3-%{name}
+Summary: Python Bindings for libtorrent-rasterbar
+Group: Development/Libraries/Python
+
+%description -n python3-%{name}
+Python Bindings for the libtorrent-rasterbar package.
+%endif
+
%if %{with examples}
%package tools
Summary: Example tools from libtorrent-rasterbar
@@ -96,7 +103,7 @@
Requires: %{name}%{sover} = %{version}
Requires: boost-devel >= 1.36
Requires: gcc-c++
-Requires: pkgconfig(geoip)
+Requires: pkg-config
Requires: pkgconfig(openssl)
%description devel
@@ -121,40 +128,50 @@
%prep
%setup -q
-
-%ifnarch x86_64 amd64 %{ix86}
%patch0 -p1
-autoreconf -vi
-%endif
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{optflags} -lrt"
-%configure \
+%global _configure ../configure
+%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 &&
0%{?is_opensuse})
+for py in python python3; do
+%else
+for py in python; do
+%endif
+ mkdir -p "build-$py"
+ pushd "build-$py"
+ export PYTHON="$py"
+ %configure \
--disable-static \
--disable-silent-rules \
- --with-libgeoip \
- --with-boost-libdir=%{_libdir} \
%if %{with examples}
--enable-examples \
%endif
- --enable-python-binding \
- --enable-encryption
-make %{?_smp_mflags}
+ --with-boost-python="libboost_$py" \
+ --enable-python-binding
+ make %{?_smp_mflags}
+ popd
+done
%install
-%make_install
+%make_install -C build-python
+%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 &&
0%{?is_opensuse})
+%make_install -C build-python3
+%endif
+
find %{buildroot} -type f -name "*.la" -delete -print
# Move doc to a separate package.
mkdir -p %{buildroot}%{_docdir}/%{name}/
cp -r docs/* %{buildroot}%{_docdir}/%{name}/
%if %{with examples}
-# Drop tests binaries from -tools subpackage.
-rm -v
%{buildroot}%{_bindir}/{client_test,connection_tester,enum_if,fragmentation_test}
\
-
%{buildroot}%{_bindir}/{parse_hash_fails,parse_request_log,rss_reader,upnp_test,utp_test}
+# Drop tests binaries from the libtorrent-rasterbar-tools subpackage.
+rm -v %{buildroot}%{_bindir}/{client_test,connection_tester,enum_if} \
+ %{buildroot}%{_bindir}/{fragmentation_test,parse_hash_fails} \
+ %{buildroot}%{_bindir}/{parse_request_log,rss_reader,upnp_test,utp_test}
%endif
%post -n %{name}%{sover} -p /sbin/ldconfig
@@ -176,8 +193,15 @@
%files -n python-%{name}
%defattr(-,root,root)
-%{py_sitedir}/%{_name}.so
-%{py_sitedir}/python_%{_name}-%{version}-py%{py_ver}.egg-info
+%{python_sitearch}/%{_name}*.so
+%{python_sitearch}/python_%{_name}-*
+
+%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 &&
0%{?is_opensuse})
+%files -n python3-%{name}
+%defattr(-,root,root)
+%{python3_sitearch}/%{_name}*.so
+%{python3_sitearch}/python_%{_name}-*
+%endif
%files devel
%defattr(-,root,root)
++++++ libtorrent-rasterbar-1.1.0-remove-x86-only-flag.patch ++++++
--- a/configure
+++ b/configure
@@ -20267,8 +20267,6 @@ $as_echo "#define BOOST_ASIO_HASH_MAP_BU
COMPILETIME_OPTIONS="$COMPILETIME_OPTIONS -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 "
-COMPILETIME_OPTIONS="$COMPILETIME_OPTIONS -msse4.2 "
-
$as_echo "#define BOOST_EXCEPTION_DISABLE 1" >>confdefs.h