2010-07-20 21:01:43 +02:00
|
|
|
#
|
2011-02-01 18:54:47 +01:00
|
|
|
# spec file for package libktorrent
|
2010-07-20 21:01:43 +02:00
|
|
|
#
|
2020-06-08 21:02:21 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2010-07-20 21:01:43 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-04 09:11:10 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-07-20 21:01:43 +02:00
|
|
|
#
|
|
|
|
|
2011-03-10 11:34:05 +01:00
|
|
|
|
2020-06-08 21:02:21 +02:00
|
|
|
%define ktor_ver 5.2.0
|
2019-09-04 09:11:10 +02:00
|
|
|
%define sonum 6
|
2010-07-20 21:01:43 +02:00
|
|
|
Name: libktorrent
|
2020-06-08 21:02:21 +02:00
|
|
|
Version: 2.2.0
|
2012-03-07 13:43:01 +01:00
|
|
|
Release: 0
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Torrent Downloading Library
|
2019-09-04 09:11:10 +02:00
|
|
|
License: GPL-2.0-or-later
|
2010-07-20 21:01:43 +02:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2019-09-04 09:11:10 +02:00
|
|
|
URL: https://kde.org/applications/internet/org.kde.ktorrent/
|
|
|
|
Source0: https://download.kde.org/stable/ktorrent/%{ktor_ver}/%{name}-%{version}.tar.xz
|
2011-03-10 11:33:55 +01:00
|
|
|
BuildRequires: doxygen
|
2016-04-22 16:16:56 +02:00
|
|
|
BuildRequires: extra-cmake-modules
|
2019-09-04 09:11:10 +02:00
|
|
|
BuildRequires: gmp-devel >= 6.0.0
|
|
|
|
BuildRequires: libboost_headers-devel
|
2011-03-10 11:33:55 +01:00
|
|
|
BuildRequires: libgcrypt-devel
|
2019-09-04 09:11:10 +02:00
|
|
|
BuildRequires: cmake(KF5Archive)
|
|
|
|
BuildRequires: cmake(KF5Crash)
|
|
|
|
BuildRequires: cmake(KF5I18n)
|
|
|
|
BuildRequires: cmake(KF5KIO)
|
|
|
|
BuildRequires: cmake(KF5Solid)
|
|
|
|
BuildRequires: cmake(Qca-qt5)
|
|
|
|
BuildRequires: cmake(Qt5Core)
|
|
|
|
BuildRequires: cmake(Qt5Network)
|
|
|
|
BuildRequires: cmake(Qt5Test)
|
|
|
|
BuildRequires: cmake(Qt5Xml)
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description
|
2011-03-10 11:33:55 +01:00
|
|
|
libktorrent is a torrent downloading library.
|
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
%package devel
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Development files for libktorrent
|
2010-12-14 10:30:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-04-22 16:16:56 +02:00
|
|
|
Requires: gmp-devel
|
2017-09-08 20:43:44 +02:00
|
|
|
Requires: libKF5Torrent%{sonum} = %{version}
|
2019-09-04 09:11:10 +02:00
|
|
|
Requires: libboost_headers-devel
|
|
|
|
Requires: libgcrypt-devel
|
|
|
|
Requires: cmake(KF5Archive)
|
|
|
|
Requires: cmake(KF5Config)
|
|
|
|
Requires: cmake(KF5KIO)
|
|
|
|
Requires: cmake(Qca-qt5)
|
|
|
|
Requires: cmake(Qt5Core)
|
|
|
|
Requires: cmake(Qt5Network)
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%description devel
|
2011-03-10 11:33:55 +01:00
|
|
|
This package includes the necessary files for development using libktorrent.
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2017-09-08 20:43:44 +02:00
|
|
|
%package -n libKF5Torrent%{sonum}
|
2011-03-10 11:33:55 +01:00
|
|
|
Summary: Torrent Downloading Library
|
2017-02-16 16:46:23 +01:00
|
|
|
Group: System/Libraries
|
2017-09-08 20:43:44 +02:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2012-09-11 07:58:49 +02:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2017-09-08 20:43:44 +02:00
|
|
|
%description -n libKF5Torrent%{sonum}
|
2011-03-10 11:33:55 +01:00
|
|
|
libktorrent is a torrent downloading library.
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2017-09-08 20:43:44 +02:00
|
|
|
%lang_package
|
2019-09-04 09:11:10 +02:00
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
%prep
|
2019-09-04 09:11:10 +02:00
|
|
|
%setup -q
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%build
|
2016-04-22 16:16:56 +02:00
|
|
|
%cmake_kf5 -d build
|
2020-11-14 09:50:32 +01:00
|
|
|
%cmake_build
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%install
|
2016-04-22 16:16:56 +02:00
|
|
|
%kf5_makeinstall -C build
|
2011-03-10 11:33:55 +01:00
|
|
|
|
2017-09-08 20:43:44 +02:00
|
|
|
%find_lang libktorrent5 %{name}.lang
|
2011-03-10 11:33:55 +01:00
|
|
|
|
2017-09-08 20:43:44 +02:00
|
|
|
%post -n libKF5Torrent%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n libKF5Torrent%{sonum} -p /sbin/ldconfig
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2011-03-10 11:33:55 +01:00
|
|
|
%files devel
|
2020-11-14 09:50:32 +01:00
|
|
|
%{_kf5_cmakedir}/KF5Torrent/
|
2017-09-08 20:43:44 +02:00
|
|
|
%{_kf5_includedir}/libktorrent/
|
|
|
|
%{_kf5_libdir}/libKF5Torrent.so
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2017-09-08 20:43:44 +02:00
|
|
|
%files -n libKF5Torrent%{sonum}
|
2019-09-04 09:11:10 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc ChangeLog RoadMap
|
2017-09-08 20:43:44 +02:00
|
|
|
%{_kf5_libdir}/libKF5Torrent.so.%{sonum}*
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2017-09-08 20:43:44 +02:00
|
|
|
%files lang -f %{name}.lang
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%changelog
|