1
0
Alexei Sorokin
2016-06-29 19:10:45 +00:00
committed by Git OBS Bridge
parent f4581fa2be
commit bfd63d6526
2 changed files with 13 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jun 29 19:09:10 UTC 2016 - sor.alexei@meowr.ru
- Disable Python3 support for openSUSE Leap 42.x after all.
-------------------------------------------------------------------
Tue Jun 21 18:33:03 UTC 2016 - aloisio@gmx.com

View File

@@ -34,13 +34,12 @@ Patch0: %{name}-1.1.0-remove-x86-only-flag.patch
Patch1: %{name}-1.1.0-fix-invalid-input-crash.patch
BuildRequires: boost-devel >= 1.54
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: python-devel
BuildRequires: pkgconfig(openssl)
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 && 0%{?is_opensuse})
%if 0%{?suse_version} > 1320
BuildRequires: python3-devel
%endif
%if 0%{?suse_version} <= 1320
%else
# For quadmath.h we need gcc-fortran on openSUSE Leap 42.x and older.
BuildRequires: gcc-fortran
%endif
@@ -81,7 +80,7 @@ Group: Development/Libraries/Python
%description -n python-%{name}
Python Bindings for the libtorrent-rasterbar package.
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 && 0%{?is_opensuse})
%if 0%{?suse_version} > 1320
%package -n python3-%{name}
Summary: Python Bindings for libtorrent-rasterbar
Group: Development/Libraries/Python
@@ -105,7 +104,7 @@ Group: Development/Libraries/C and C++
Requires: %{name}%{sover} = %{version}
Requires: boost-devel >= 1.36
Requires: gcc-c++
Requires: pkg-config
Requires: pkgconfig
Requires: pkgconfig(openssl)
%description devel
@@ -143,7 +142,7 @@ export LIBS="-lboost_atomic"
%endif
%global _configure ../configure
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 && 0%{?is_opensuse})
%if 0%{?suse_version} > 1320
for py in python python3; do
%else
for py in python; do
@@ -165,7 +164,7 @@ done
%install
%make_install -C build-python
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 && 0%{?is_opensuse})
%if 0%{?suse_version} > 1320
%make_install -C build-python3
%endif
@@ -203,7 +202,7 @@ rm -v %{buildroot}%{_bindir}/{client_test,connection_tester,enum_if} \
%{python_sitearch}/%{_name}*.so
%{python_sitearch}/python_%{_name}-*
%if 0%{?suse_version} > 1320 || (0%{?sle_version} >= 120200 && 0%{?is_opensuse})
%if 0%{?suse_version} > 1320
%files -n python3-%{name}
%defattr(-,root,root)
%{python3_sitearch}/%{_name}*.so