a645f742c2
OBS-URL: https://build.opensuse.org/request/show/727701 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ktorrent?expand=0&rev=113
135 lines
4.2 KiB
RPMSpec
135 lines
4.2 KiB
RPMSpec
#
|
|
# spec file for package ktorrent
|
|
#
|
|
# Copyright (c) 2019 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: ktorrent
|
|
Version: 5.1.2
|
|
Release: 0
|
|
Summary: KDE BitTorrent Client
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/File-Sharing
|
|
URL: https://kde.org/applications/internet/org.kde.ktorrent/
|
|
Source0: https://download.kde.org/stable/ktorrent/%{version}/%{name}-%{version}.tar.xz
|
|
Source2: ktorrent.1
|
|
Source3: ktupnptest.1
|
|
# PATCH-FIX-OPENSUSE initial-preference.diff cmorve69@yahoo.es -- InitialPreference to set it as the default torrent downloader
|
|
Patch0: initial-preference.diff
|
|
BuildRequires: extra-cmake-modules
|
|
BuildRequires: fdupes
|
|
BuildRequires: libboost_headers-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: update-desktop-files
|
|
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)
|
|
BuildRequires: cmake(KF5Syndication)
|
|
BuildRequires: cmake(KF5TextWidgets)
|
|
BuildRequires: cmake(KF5Torrent) >= 2.1
|
|
BuildRequires: cmake(KF5WebKit)
|
|
BuildRequires: cmake(KF5WidgetsAddons)
|
|
BuildRequires: cmake(KF5WindowSystem)
|
|
BuildRequires: cmake(KF5XmlGui)
|
|
BuildRequires: cmake(LibKWorkspace)
|
|
BuildRequires: cmake(Phonon4Qt5)
|
|
BuildRequires: cmake(Qt5Core)
|
|
BuildRequires: cmake(Qt5DBus)
|
|
BuildRequires: cmake(Qt5Network)
|
|
BuildRequires: cmake(Qt5Script)
|
|
BuildRequires: cmake(Qt5Widgets)
|
|
BuildRequires: pkgconfig(taglib)
|
|
Recommends: %{name}-lang = %{version}
|
|
|
|
%description
|
|
KTorrent is a BitTorrent application by KDE which allows you to download files
|
|
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.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%setup -q
|
|
%autopatch -p1
|
|
|
|
%build
|
|
%cmake_kf5 -d build
|
|
%make_jobs
|
|
|
|
%install
|
|
%kf5_makeinstall -C build
|
|
|
|
# Add man pages from help2man edited.
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
|
cp -a %{SOURCE2} %{buildroot}%{_mandir}/man1
|
|
cp -a %{SOURCE3} %{buildroot}%{_mandir}/man1
|
|
|
|
# Fix any .py files with shebangs and wrong permissions.
|
|
if test -z "`find %{buildroot} -name *.py -perm 0644 -print0|xargs -0r grep -l '#!'`"; \
|
|
then break;
|
|
else chmod -f 0755 `find %{buildroot} -name *.py -perm 0644 -print0|xargs -0r grep -l '#!'`; \
|
|
fi
|
|
|
|
%suse_update_desktop_file -r org.kde.ktorrent Qt KDE Network P2P
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
%find_lang %{name}
|
|
%kf5_find_htmldocs
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc ChangeLog RoadMap
|
|
%{_kf5_bindir}/ktmagnetdownloader
|
|
%{_kf5_bindir}/ktorrent
|
|
%{_kf5_bindir}/ktupnptest
|
|
%{_kf5_applicationsdir}/org.kde.ktorrent.desktop
|
|
%{_kf5_appstreamdir}/org.kde.ktorrent.appdata.xml
|
|
%{_kf5_htmldir}/en/ktorrent/
|
|
%{_kf5_iconsdir}/hicolor/*/*/*.png
|
|
%{_kf5_iconsdir}/hicolor/*/*/*.svgz
|
|
%{_kf5_kxmlguidir}/ktorrent/
|
|
%{_kf5_libdir}/libktcore.so.*
|
|
%{_kf5_mandir}/man1/ktorrent.1%{?ext_man}
|
|
%{_kf5_mandir}/man1/ktupnptest.1%{?ext_man}
|
|
%{_kf5_notifydir}/ktorrent.notifyrc
|
|
%{_kf5_plugindir}/
|
|
%{_kf5_sharedir}/ktorrent/
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|