1
0
Alexei Sorokin 2016-05-17 07:18:00 +00:00 committed by Git OBS Bridge
parent d19bb7aa13
commit 4f05e38941
2 changed files with 14 additions and 2 deletions

View File

@ -1,7 +1,7 @@
-------------------------------------------------------------------
Mon May 16 13:26:12 UTC 2016 - sor.alexei@meowr.ru
- Build Python3 bindings.
- 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

View File

@ -34,8 +34,10 @@ BuildRequires: boost-devel >= 1.47
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: python-devel
BuildRequires: python3-devel
BuildRequires: pkgconfig(openssl)
%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
@ -77,12 +79,14 @@ 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})
%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
@ -132,7 +136,11 @@ export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{optflags} -lrt"
%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"
@ -150,7 +158,9 @@ done
%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.
@ -186,10 +196,12 @@ 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})
%files -n python3-%{name}
%defattr(-,root,root)
%{python3_sitearch}/%{_name}*.so
%{python3_sitearch}/python_%{_name}-*
%endif
%files devel
%defattr(-,root,root)