2007-01-16 00:20:52 +01:00
|
|
|
#
|
2011-01-14 15:42:57 +01:00
|
|
|
# spec file for package ktorrent
|
2007-01-16 00:20:52 +01:00
|
|
|
#
|
2021-01-06 15:52:22 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2007-01-16 00:20:52 +01:00
|
|
|
#
|
2008-08-18 00:13:55 +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:17 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-10 14:41:02 +01:00
|
|
|
#
|
|
|
|
|
2011-02-27 14:00:57 +01:00
|
|
|
|
2020-12-17 17:02:32 +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}')}
|
2022-01-06 13:44:59 +01:00
|
|
|
%bcond_without released
|
2007-01-16 00:20:52 +01:00
|
|
|
Name: ktorrent
|
2022-10-14 11:21:11 +02:00
|
|
|
Version: 22.08.2
|
2012-01-30 12:26:10 +01:00
|
|
|
Release: 0
|
2007-01-16 00:20:52 +01:00
|
|
|
Summary: KDE BitTorrent Client
|
2018-05-29 16:51:22 +02:00
|
|
|
License: GPL-2.0-or-later
|
2011-02-27 14:00:42 +01:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2021-04-19 15:31:08 +02:00
|
|
|
URL: https://apps.kde.org/ktorrent
|
2022-08-18 14:44:43 +02:00
|
|
|
Source0: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
|
2022-01-06 13:44:59 +01:00
|
|
|
%if %{with released}
|
2022-08-18 14:44:43 +02:00
|
|
|
Source1: https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2020-12-17 17:02:32 +01:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
|
|
|
Source3: ktorrent.1
|
|
|
|
Source4: ktupnptest.1
|
2011-02-27 14:00:42 +01:00
|
|
|
# PATCH-FIX-OPENSUSE initial-preference.diff cmorve69@yahoo.es -- InitialPreference to set it as the default torrent downloader
|
2017-09-08 20:43:49 +02:00
|
|
|
Patch0: initial-preference.diff
|
2016-04-22 16:17:02 +02:00
|
|
|
BuildRequires: extra-cmake-modules
|
2011-02-27 14:00:42 +01:00
|
|
|
BuildRequires: fdupes
|
2019-09-04 09:11:17 +02:00
|
|
|
BuildRequires: libboost_headers-devel
|
2018-05-29 16:51:22 +02:00
|
|
|
BuildRequires: pkgconfig
|
2011-02-27 14:00:42 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2018-05-29 16:51:22 +02:00
|
|
|
BuildRequires: cmake(KF5Archive)
|
|
|
|
BuildRequires: cmake(KF5Completion)
|
|
|
|
BuildRequires: cmake(KF5Config)
|
|
|
|
BuildRequires: cmake(KF5ConfigWidgets)
|
|
|
|
BuildRequires: cmake(KF5CoreAddons)
|
|
|
|
BuildRequires: cmake(KF5Crash)
|
|
|
|
BuildRequires: cmake(KF5DBusAddons)
|
|
|
|
BuildRequires: cmake(KF5DNSSD)
|
|
|
|
BuildRequires: cmake(KF5DocTools)
|
|
|
|
BuildRequires: cmake(KF5I18n)
|
|
|
|
BuildRequires: cmake(KF5IconThemes)
|
|
|
|
BuildRequires: cmake(KF5ItemViews)
|
|
|
|
BuildRequires: cmake(KF5KCMUtils)
|
|
|
|
BuildRequires: cmake(KF5KIO)
|
|
|
|
BuildRequires: cmake(KF5Kross)
|
|
|
|
BuildRequires: cmake(KF5Notifications)
|
|
|
|
BuildRequires: cmake(KF5NotifyConfig)
|
|
|
|
BuildRequires: cmake(KF5Parts)
|
|
|
|
BuildRequires: cmake(KF5Plotting)
|
|
|
|
BuildRequires: cmake(KF5Solid)
|
2019-09-04 09:11:17 +02:00
|
|
|
BuildRequires: cmake(KF5Syndication)
|
2018-05-29 16:51:22 +02:00
|
|
|
BuildRequires: cmake(KF5TextWidgets)
|
2020-12-17 17:02:32 +01:00
|
|
|
BuildRequires: cmake(KF5Torrent)
|
2018-05-29 16:51:22 +02:00
|
|
|
BuildRequires: cmake(KF5WidgetsAddons)
|
|
|
|
BuildRequires: cmake(KF5WindowSystem)
|
|
|
|
BuildRequires: cmake(KF5XmlGui)
|
2019-09-04 09:11:17 +02:00
|
|
|
BuildRequires: cmake(LibKWorkspace)
|
|
|
|
BuildRequires: cmake(Phonon4Qt5)
|
2020-12-17 17:02:32 +01:00
|
|
|
BuildRequires: cmake(Qt5Core) >= 5.14
|
2018-05-29 16:51:22 +02:00
|
|
|
BuildRequires: cmake(Qt5DBus)
|
|
|
|
BuildRequires: cmake(Qt5Network)
|
|
|
|
BuildRequires: cmake(Qt5Script)
|
|
|
|
BuildRequires: cmake(Qt5Widgets)
|
2016-04-22 16:17:02 +02:00
|
|
|
BuildRequires: pkgconfig(taglib)
|
2022-03-29 08:44:55 +02:00
|
|
|
%ifnarch ppc ppc64 ppc64le s390 s390x
|
2020-06-10 00:47:51 +02:00
|
|
|
BuildRequires: cmake(Qt5WebEngineWidgets)
|
|
|
|
%endif
|
2007-01-16 00:20:52 +01:00
|
|
|
|
|
|
|
%description
|
2017-09-08 20:43:49 +02:00
|
|
|
KTorrent is a BitTorrent application by KDE which allows you to download files
|
2011-02-27 14:00:42 +01:00
|
|
|
using the BitTorrent protocol. It enables you to run multiple torrents at the
|
|
|
|
same time and comes with extended features to make it a full-featured client
|
|
|
|
for BitTorrent.
|
2007-01-16 00:20:52 +01:00
|
|
|
|
2011-02-27 14:00:57 +01:00
|
|
|
%lang_package
|
2018-05-29 16:51:22 +02:00
|
|
|
|
2007-01-16 00:20:52 +01:00
|
|
|
%prep
|
2020-12-17 17:02:32 +01:00
|
|
|
%autosetup -p1
|
2007-01-16 00:20:52 +01:00
|
|
|
|
2021-07-27 11:35:58 +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
|
|
|
|
|
2007-01-16 00:20:52 +01:00
|
|
|
%build
|
2016-04-22 16:17:02 +02:00
|
|
|
%cmake_kf5 -d build
|
2020-12-17 17:02:32 +01:00
|
|
|
%cmake_build
|
2007-01-16 00:20:52 +01:00
|
|
|
|
|
|
|
%install
|
2016-04-22 16:17:02 +02:00
|
|
|
%kf5_makeinstall -C build
|
2011-02-27 14:00:42 +01:00
|
|
|
|
2011-01-10 14:40:52 +01:00
|
|
|
# Add man pages from help2man edited.
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
2011-11-25 15:52:38 +01:00
|
|
|
cp -a %{SOURCE3} %{buildroot}%{_mandir}/man1
|
2020-12-17 17:02:32 +01:00
|
|
|
cp -a %{SOURCE4} %{buildroot}%{_mandir}/man1
|
2011-01-10 14:40:52 +01:00
|
|
|
|
|
|
|
# Fix any .py files with shebangs and wrong permissions.
|
2020-06-10 00:47:51 +02:00
|
|
|
find %{buildroot} -name "*.py" -perm 0644 -exec grep -l '#!' {} + | \
|
|
|
|
xargs -rd'\n' chmod -f a+x
|
2011-01-10 14:40:52 +01:00
|
|
|
|
2016-04-22 16:17:02 +02:00
|
|
|
%suse_update_desktop_file -r org.kde.ktorrent Qt KDE Network P2P
|
2007-01-16 00:20:52 +01:00
|
|
|
|
2011-02-27 14:00:42 +01:00
|
|
|
%fdupes -s %{buildroot}
|
2007-01-16 00:20:52 +01:00
|
|
|
|
2022-01-06 13:44:59 +01:00
|
|
|
%if %{with released}
|
2011-02-27 14:00:42 +01:00
|
|
|
%find_lang %{name}
|
2020-12-17 17:02:32 +01:00
|
|
|
%{kf5_find_htmldocs}
|
|
|
|
%endif
|
2008-02-19 14:12:27 +01:00
|
|
|
|
2011-03-17 10:50:08 +01:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
2011-01-10 14:40:52 +01:00
|
|
|
|
2007-05-17 11:42:29 +02:00
|
|
|
%files
|
2021-11-30 08:58:40 +01:00
|
|
|
%license LICENSES/*
|
2018-05-29 16:51:22 +02:00
|
|
|
%doc ChangeLog RoadMap
|
2021-11-30 08:58:40 +01:00
|
|
|
%doc %lang(en) %{_kf5_htmldir}/en/ktorrent/
|
2020-12-17 17:02:32 +01:00
|
|
|
%{_kf5_applicationsdir}/org.kde.ktorrent.desktop
|
|
|
|
%{_kf5_appstreamdir}/org.kde.ktorrent.appdata.xml
|
2018-05-29 16:51:22 +02:00
|
|
|
%{_kf5_bindir}/ktmagnetdownloader
|
|
|
|
%{_kf5_bindir}/ktorrent
|
|
|
|
%{_kf5_bindir}/ktupnptest
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/*/*.png
|
|
|
|
%{_kf5_iconsdir}/hicolor/*/*/*.svgz
|
|
|
|
%{_kf5_kxmlguidir}/ktorrent/
|
2019-09-04 09:11:17 +02:00
|
|
|
%{_kf5_libdir}/libktcore.so.*
|
2018-05-29 16:51:22 +02:00
|
|
|
%{_kf5_mandir}/man1/ktorrent.1%{?ext_man}
|
|
|
|
%{_kf5_mandir}/man1/ktupnptest.1%{?ext_man}
|
|
|
|
%{_kf5_notifydir}/ktorrent.notifyrc
|
2022-03-29 08:44:55 +02:00
|
|
|
%dir %{_kf5_plugindir}/ktorrent_plugins/
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_bwscheduler.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_downloadorder.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_infowidget.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_ipfilter.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_logviewer.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_magnetgenerator.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_mediaplayer.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_scanfolder.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_scanforlostfiles.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_shutdown.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_stats.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_upnp.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_zeroconf.so
|
|
|
|
%ifnarch ppc ppc64 ppc64le s390 s390x
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_search.so
|
|
|
|
%{_kf5_plugindir}/ktorrent_plugins/ktorrent_syndication.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifnarch ppc ppc64 ppc64le s390 s390x
|
2018-05-29 16:51:22 +02:00
|
|
|
%{_kf5_sharedir}/ktorrent/
|
2021-11-30 15:17:18 +01:00
|
|
|
%endif
|
2008-02-19 14:12:27 +01:00
|
|
|
|
2022-01-06 13:44:59 +01:00
|
|
|
%if %{with released}
|
2011-02-27 14:00:42 +01:00
|
|
|
%files lang -f %{name}.lang
|
2020-12-17 17:02:32 +01:00
|
|
|
%endif
|
2011-02-27 14:00:42 +01:00
|
|
|
|
2007-03-06 17:52:31 +01:00
|
|
|
%changelog
|