| |
@@ -27,7 +27,9 @@
|
| |
Source2: %{name}-COPYING.Boost
|
| |
Source3: %{name}-COPYING.zlib
|
| |
Patch0: %{name}-1.0.1-boost_noncopyable.patch
|
| |
+ %if !0%{?flatpak}
|
| |
Patch1: %{name}-1.1.9-system-tommath.patch
|
| |
+ %endif
|
| |
Patch2: disable_failed_test.patch
|
| |
|
| |
%if 0%{?rhel}
|
| |
@@ -39,7 +41,9 @@
|
| |
BuildRequires: automake
|
| |
BuildRequires: boost-devel
|
| |
BuildRequires: gcc-c++
|
| |
+ %if !0%{?flatpak}
|
| |
BuildRequires: libtommath-devel
|
| |
+ %endif
|
| |
BuildRequires: pkgconfig(zlib)
|
| |
BuildRequires: pkgconfig(python2)
|
| |
BuildRequires: libtool
|
| |
@@ -127,9 +131,13 @@
|
| |
%prep
|
| |
%setup -q -n "libtorrent-rasterbar-%{version}"
|
| |
#patch0 -p1
|
| |
+ %if !0%{?flatpak}
|
| |
%patch1 -p1
|
| |
+ %endif
|
| |
%patch2 -p1
|
| |
+ %if !0%{?flatpak}
|
| |
rm include/libtorrent/tommath* src/mpi.cpp
|
| |
+ %endif
|
| |
sed -i -e 's|include/libtorrent/version.hpp|../include/libtorrent/version.hpp|' configure configure.ac
|
| |
|
| |
autoreconf -fiv
|
| |
@@ -164,6 +172,9 @@
|
| |
--disable-static \
|
| |
--enable-examples \
|
| |
--enable-python-binding \
|
| |
+ %if 0%{?flatpak}
|
| |
+ --with-boost=/app \
|
| |
+ %endif
|
| |
--with-boost-system=boost_system \
|
| |
--with-boost-python=boost_python \
|
| |
--with-libiconv \
|
| |
@@ -184,6 +195,9 @@
|
| |
--disable-static \
|
| |
--enable-examples \
|
| |
--enable-python-binding \
|
| |
+ %if 0%{?flatpak}
|
| |
+ --with-boost=/app \
|
| |
+ %endif
|
| |
--with-boost-system=boost_system \
|
| |
--with-boost-python=boost_python3 \
|
| |
--with-libiconv \
|
| |
This modifications are needed to be able to build rb_libtorrent as flatpak.