Accepting request 392946 from KDE:Distro:Factory

- Added require-lower-LibGMP.patch: 6.0.0 version was chosen
  randomly, and we know the code compiles with at least 5.1.3

OBS-URL: https://build.opensuse.org/request/show/392946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libktorrent?expand=0&rev=34
This commit is contained in:
Dominique Leuenberger 2016-05-31 10:12:49 +00:00 committed by Git OBS Bridge
parent b920e54e68
commit 7e8b6d8bfb
3 changed files with 23 additions and 1 deletions

View File

@ -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 Sat Apr 16 11:33:32 UTC 2016 - tittiatcoke@gmail.com

View File

@ -27,10 +27,12 @@ License: GPL-2.0+
Group: Productivity/Networking/File-Sharing Group: Productivity/Networking/File-Sharing
Url: http://ktorrent.org/ Url: http://ktorrent.org/
Source0: http://download.kde.org/stable/ktorrent/%{ktor_ver}/%{name}-%{version}.tar.xz 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: boost-devel
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: extra-cmake-modules BuildRequires: extra-cmake-modules
BuildRequires: gmp-devel BuildRequires: gmp-devel >= 5.1.3
BuildRequires: karchive-devel BuildRequires: karchive-devel
BuildRequires: kdelibs4support-devel BuildRequires: kdelibs4support-devel
BuildRequires: ki18n-devel BuildRequires: ki18n-devel
@ -71,6 +73,7 @@ libktorrent is a torrent downloading library.
%lang_package -n libktorrent%{sonum} %lang_package -n libktorrent%{sonum}
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -n %{name}-%{version}
%patch0 -p1
%build %build
%cmake_kf5 -d build %cmake_kf5 -d build

View File

@ -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")