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
|
|
|
#
|
2021-03-28 09:27:52 +02:00
|
|
|
# Copyright (c) 2021 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
|
|
|
|
2019-09-04 09:11:10 +02:00
|
|
|
%define sonum 6
|
2020-11-21 13:58:49 +01:00
|
|
|
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
|
|
|
|
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
|
|
|
|
%bcond_without lang
|
2010-07-20 21:01:43 +02:00
|
|
|
Name: libktorrent
|
2021-12-08 13:40:49 +01:00
|
|
|
Version: 21.12.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
|
2021-04-19 15:31:13 +02:00
|
|
|
URL: https://apps.kde.org/ktorrent
|
2021-12-08 13:40:49 +01:00
|
|
|
Source: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
2021-04-19 15:31:13 +02:00
|
|
|
%if %{with lang}
|
2021-12-08 13:40:49 +01:00
|
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2021-04-19 15:31:13 +02:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
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)
|
2020-11-21 13:58:49 +01:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.14.0
|
2019-09-04 09:11:10 +02:00
|
|
|
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
|
2021-04-19 15:31:13 +02:00
|
|
|
%autosetup -p1
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2021-07-27 11:36:03 +02:00
|
|
|
# The boost minimum version change is only cosmetic. Leap 15.2 provides 1.66
|
|
|
|
sed -i 's#1.71.0#1.66.0#' CMakeLists.txt
|
|
|
|
|
2010-07-20 21:01:43 +02:00
|
|
|
%build
|
2021-08-26 11:02:45 +02:00
|
|
|
%ifarch ppc64
|
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
%endif
|
|
|
|
|
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
|
|
|
|
2020-11-21 13:58:49 +01:00
|
|
|
%if %{with lang}
|
2017-09-08 20:43:44 +02:00
|
|
|
%find_lang libktorrent5 %{name}.lang
|
2020-11-21 13:58:49 +01:00
|
|
|
%endif
|
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}
|
2021-11-30 08:58:45 +01:00
|
|
|
%license LICENSES/*
|
2019-09-04 09:11:10 +02:00
|
|
|
%doc ChangeLog RoadMap
|
2020-11-21 13:58:49 +01:00
|
|
|
%{_kf5_libdir}/libKF5Torrent.so.*
|
2010-07-20 21:01:43 +02:00
|
|
|
|
2020-11-21 13:58:49 +01:00
|
|
|
%if %{with lang}
|
2017-09-08 20:43:44 +02:00
|
|
|
%files lang -f %{name}.lang
|
2020-11-21 13:58:49 +01:00
|
|
|
%endif
|
2010-07-20 21:01:43 +02:00
|
|
|
|
|
|
|
%changelog
|