diff --git a/libktorrent.changes b/libktorrent.changes index d45b341..8ae74d5 100644 --- a/libktorrent.changes +++ b/libktorrent.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Apr 29 18:58:13 UTC 2016 - hrvoje.senjan@gmail.com + +- Added require-lower-LibGMP.patch: 6.0.0 version was chosen + randomly, and we know the code compiles with at least 5.1.3 + ------------------------------------------------------------------- Sat Apr 16 11:33:32 UTC 2016 - tittiatcoke@gmail.com diff --git a/libktorrent.spec b/libktorrent.spec index e7c0c3b..c04b536 100644 --- a/libktorrent.spec +++ b/libktorrent.spec @@ -27,10 +27,12 @@ License: GPL-2.0+ Group: Productivity/Networking/File-Sharing Url: http://ktorrent.org/ Source0: http://download.kde.org/stable/ktorrent/%{ktor_ver}/%{name}-%{version}.tar.xz +# PATCH-FIX-OPENSUSE require-lower-LibGMP.patch +Patch0: require-lower-LibGMP.patch BuildRequires: boost-devel BuildRequires: doxygen BuildRequires: extra-cmake-modules -BuildRequires: gmp-devel +BuildRequires: gmp-devel >= 5.1.3 BuildRequires: karchive-devel BuildRequires: kdelibs4support-devel BuildRequires: ki18n-devel @@ -71,6 +73,7 @@ libktorrent is a torrent downloading library. %lang_package -n libktorrent%{sonum} %prep %setup -q -n %{name}-%{version} +%patch0 -p1 %build %cmake_kf5 -d build diff --git a/require-lower-LibGMP.patch b/require-lower-LibGMP.patch new file mode 100644 index 0000000..714d1d2 --- /dev/null +++ b/require-lower-LibGMP.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index fab39f2..7790d39 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -26,7 +26,7 @@ include(ECMSetupVersion) + include(ECMPackageConfigHelpers) + + set(Boost_MIN_VERSION "1.34.0") +-set(LibGMP_MIN_VERSION "6.0.0") ++set(LibGMP_MIN_VERSION "5.1.3") + set(LibGcrypt_MIN_VERSION "1.4.5") + set(KF5_MIN_VERSION "5.15") + set(QT_MIN_VERSION "5.2.0")