# # spec file for package libktorrent # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define ktor_ver 5.0 Name: libktorrent Version: 2.0.1 Release: 0 %define sonum 6 Summary: Torrent Downloading Library 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 # PATCH-FIX-UPSTREAM Fix-logging-framework-spamming.patch Patch1: Fix-logging-framework-spamming.patch %if 0%{?suse_version} > 1325 BuildRequires: libboost_headers-devel %else BuildRequires: boost-devel %endif BuildRequires: doxygen BuildRequires: extra-cmake-modules BuildRequires: gmp-devel >= 5.1.3 BuildRequires: karchive-devel BuildRequires: kdelibs4support-devel BuildRequires: ki18n-devel BuildRequires: kio-devel BuildRequires: libgcrypt-devel BuildRequires: libqca-qt5-devel BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Widgets) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description libktorrent is a torrent downloading library. %package devel Summary: Development files for libktorrent Group: Development/Libraries/C and C++ %if 0%{?suse_version} > 1325 Requires: libboost_headers-devel %else Requires: boost-devel %endif Requires: gmp-devel Requires: libktorrent%{sonum} = %{version} Requires: libqca-qt5-devel %description devel This package includes the necessary files for development using libktorrent. %package -n libktorrent%{sonum} Summary: Torrent Downloading Library Group: System/Libraries Recommends: libktorrent%{sonum}-lang = %{version} Provides: %{name} = %{version} Obsoletes: %{name} < %{version} %description -n libktorrent%{sonum} libktorrent is a torrent downloading library. %lang_package -n libktorrent%{sonum} %prep %setup -q -n %{name}-%{version} %patch0 -p1 %patch1 -p1 %build %cmake_kf5 -d build %make_jobs %install %kf5_makeinstall -C build %find_lang %{name} %post -n libktorrent%{sonum} -p /sbin/ldconfig %postun -n libktorrent%{sonum} -p /sbin/ldconfig %files devel %defattr(-,root,root,-) %{_includedir}/libktorrent/ %{_libdir}/libktorrent.so %{_libdir}/cmake/LibKTorrent/ %files -n libktorrent%{sonum} %defattr(-,root,root,-) %doc COPYING ChangeLog RoadMap %{_libdir}/libktorrent.so.%{sonum}* %files -n libktorrent%{sonum}-lang -f %{name}.lang %defattr(-,root,root,-) %changelog