forked from pool/libtorrent-rasterbar
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtorrent-rasterbar?expand=0&rev=94
This commit is contained in:
committed by
Git OBS Bridge
parent
4b84f96b32
commit
5e537e66e8
@@ -1,7 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun May 21 07:59:03 UTC 2017 - aloisio@gmx.com
|
||||
Tue May 23 12:58:31 UTC 2017 - sor.alexei@meowr.ru
|
||||
|
||||
- Build python3 bindings for Leap 42.3
|
||||
- Fix Python3 bindings.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 22 22:36:04 UTC 2017 - sor.alexei@meowr.ru
|
||||
|
@@ -21,11 +21,6 @@
|
||||
%define _version 1_1_3
|
||||
%bcond_with examples
|
||||
%bcond_with tests
|
||||
%if 0%{?suse_version} > 1320 || (0%{?sle_version} == 120300 && 0%{?is_opensuse})
|
||||
%bcond_without python3
|
||||
%else
|
||||
%bcond_with python3
|
||||
%endif
|
||||
Name: libtorrent-rasterbar
|
||||
Version: 1.1.3
|
||||
Release: 0
|
||||
@@ -48,15 +43,10 @@ BuildRequires: libboost_random-devel
|
||||
BuildRequires: libboost_system-devel
|
||||
BuildRequires: python3-devel
|
||||
%else
|
||||
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
|
||||
BuildRequires: boost_1_61-devel
|
||||
BuildRequires: python3-devel
|
||||
%else
|
||||
BuildRequires: boost-devel >= 1.54
|
||||
# For quadmath.h we need gcc-fortran on openSUSE Leap 42.x and older.
|
||||
# For quadmath.h we need gcc-fortran on openSUSE Leap 14.x and older.
|
||||
BuildRequires: gcc-fortran
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
libtorrent-rasterbar is a C++ library that aims to be a good
|
||||
@@ -89,7 +79,7 @@ The main goals of libtorrent-rasterbar are:
|
||||
|
||||
%package -n python2-%{name}
|
||||
Summary: Python Bindings for libtorrent-rasterbar
|
||||
# python-libtorrent-rasterbar was last used in openSUSE Leap 42.2.
|
||||
# python-libtorrent-rasterbar was last used in openSUSE Leap 14.2.
|
||||
Group: Development/Libraries/Python
|
||||
Provides: python-%{name} = %{version}
|
||||
Obsoletes: python-%{name} < %{version}
|
||||
@@ -97,7 +87,7 @@ Obsoletes: python-%{name} < %{version}
|
||||
%description -n python2-%{name}
|
||||
Python Bindings for the libtorrent-rasterbar package.
|
||||
|
||||
%if %{with python3}
|
||||
%if 0%{?suse_version} > 1320
|
||||
%package -n python3-%{name}
|
||||
Summary: Python Bindings for libtorrent-rasterbar
|
||||
Group: Development/Libraries/Python
|
||||
@@ -163,7 +153,7 @@ export LIBS="$LIBS -lboost_atomic"
|
||||
%endif
|
||||
|
||||
%global _configure ../configure
|
||||
%if %{with python3}
|
||||
%if 0%{?suse_version} > 1320
|
||||
for py in python python3; do
|
||||
%else
|
||||
for py in python; do
|
||||
@@ -172,16 +162,16 @@ for py in python; do
|
||||
pushd "build-$py"
|
||||
export PYTHON="$py"
|
||||
%configure \
|
||||
--disable-static \
|
||||
--disable-silent-rules \
|
||||
--with-libiconv \
|
||||
--disable-static \
|
||||
--disable-silent-rules \
|
||||
--with-libiconv \
|
||||
%if %{with tests}
|
||||
--enable-tests \
|
||||
--enable-tests \
|
||||
%endif
|
||||
%if %{with examples}
|
||||
--enable-examples \
|
||||
--enable-examples \
|
||||
%endif
|
||||
--with-boost-python="boost_$py" \
|
||||
--with-boost-python="boost_$py" \
|
||||
--enable-python-binding
|
||||
make %{?_smp_mflags} V=1
|
||||
popd
|
||||
@@ -189,7 +179,7 @@ done
|
||||
|
||||
%install
|
||||
%make_install -C build-python
|
||||
%if %{with python3}
|
||||
%if 0%{?suse_version} > 1320
|
||||
%make_install -C build-python3
|
||||
%endif
|
||||
|
||||
@@ -208,7 +198,7 @@ rm -v %{buildroot}%{_bindir}/{client_test,connection_tester,enum_if} \
|
||||
%if %{with tests}
|
||||
%check
|
||||
make check %{?_smp_mflags} V=1 -C build-python
|
||||
%if %{with python3}
|
||||
%if 0%{?suse_version} > 1320
|
||||
make check %{?_smp_mflags} V=1 -C build-python3
|
||||
%endif
|
||||
%endif
|
||||
@@ -235,7 +225,7 @@ make check %{?_smp_mflags} V=1 -C build-python3
|
||||
%{python_sitearch}/%{_name}*.so
|
||||
%{python_sitearch}/python_%{_name}-*
|
||||
|
||||
%if %{with python3}
|
||||
%if 0%{?suse_version} > 1320
|
||||
%files -n python3-%{name}
|
||||
%defattr(-,root,root)
|
||||
%{python3_sitearch}/%{_name}*.so
|
||||
|
Reference in New Issue
Block a user