Small tweak for EPEL 8
This commit is contained in:
parent
5597ce7086
commit
0e2d52c22e
@ -36,7 +36,7 @@ BuildRequires: automake
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel}
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
||||
BuildRequires: pkgconfig(python2)
|
||||
%endif
|
||||
BuildRequires: libtool
|
||||
@ -83,7 +83,7 @@ show how to make use of its various features. (Due to potential
|
||||
namespace conflicts, a couple of the examples had to be renamed. See the
|
||||
included documentation for more details.)
|
||||
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel}
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
||||
%package python2
|
||||
Summary: Python bindings for %{name}
|
||||
License: Boost
|
||||
@ -147,7 +147,7 @@ sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
|
||||
mkdir -p build/bindings build-python3/bindings
|
||||
echo build/bindings build-python3/bindings | xargs -n 1 cp -r bindings/python
|
||||
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel}
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
||||
# Build the lib with Python 2 bindings
|
||||
export PYTHON=/usr/bin/python%{python2_version}
|
||||
pushd build
|
||||
@ -225,7 +225,7 @@ pushd build
|
||||
## Do the renaming due to the somewhat limited %%_bindir namespace.
|
||||
rename client torrent_client %{buildroot}%{_bindir}/*
|
||||
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel}
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
||||
## Install the python 2 binding module.
|
||||
pushd bindings/python
|
||||
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
||||
@ -272,7 +272,7 @@ find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
|
||||
%{_bindir}/stats_counters
|
||||
%{_bindir}/upnp_test
|
||||
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel}
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
||||
%files python2
|
||||
%doc AUTHORS ChangeLog
|
||||
%license COPYING.Boost
|
||||
|
Loading…
Reference in New Issue
Block a user