2007-01-15 23:20:52 +00:00
|
|
|
#
|
2011-01-14 14:42:57 +00:00
|
|
|
# spec file for package ktorrent
|
2007-01-15 23:20:52 +00:00
|
|
|
#
|
2016-03-16 09:25:22 +00:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:20:52 +00:00
|
|
|
#
|
2008-08-17 22:13:55 +00: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.
|
|
|
|
|
2007-01-15 23:20:52 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2011-01-10 13:41:02 +00:00
|
|
|
#
|
|
|
|
|
2011-02-27 13:00:57 +00:00
|
|
|
|
2007-01-15 23:20:52 +00:00
|
|
|
Name: ktorrent
|
2016-09-07 09:43:59 +00:00
|
|
|
Version: 5.0.1
|
2012-01-30 11:26:10 +00:00
|
|
|
Release: 0
|
2007-01-15 23:20:52 +00:00
|
|
|
Summary: KDE BitTorrent Client
|
2012-01-30 11:26:10 +00:00
|
|
|
License: GPL-2.0+
|
2011-02-27 13:00:42 +00:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2012-01-30 11:26:10 +00:00
|
|
|
Url: http://ktorrent.org/
|
2016-09-07 09:43:59 +00:00
|
|
|
Source0: http://download.kde.org/stable/ktorrent/5.0/%{name}-%{version}.tar.xz
|
2011-02-27 13:00:42 +00:00
|
|
|
Source2: ktorrent.1
|
|
|
|
Source3: ktupnptest.1
|
|
|
|
# PATCH-FIX-OPENSUSE remove-links.diff adrian@suse.de -- Remove links to some search engine with maybe legal problems
|
|
|
|
Patch0: remove-links.diff
|
|
|
|
# PATCH-FIX-OPENSUSE suse-dht-warning.diff wstephenson@novell.com -- Warning popup for DHT
|
|
|
|
Patch1: suse-dht-warning.diff
|
|
|
|
# PATCH-FIX-OPENSUSE initial-preference.diff cmorve69@yahoo.es -- InitialPreference to set it as the default torrent downloader
|
|
|
|
Patch2: initial-preference.diff
|
2016-07-03 10:27:16 +00:00
|
|
|
# PATCH-FIX-UPSTREAM fix-build-with-newer-kconfig.diff -- Fix build with newer KConfig
|
|
|
|
Patch3: fix-build-with-newer-kconfig.diff
|
2016-04-22 14:17:02 +00:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: extra-cmake-modules
|
2011-02-27 13:00:42 +00:00
|
|
|
BuildRequires: fdupes
|
2016-04-22 14:17:02 +00:00
|
|
|
BuildRequires: gmp-devel
|
|
|
|
BuildRequires: kcmutils-devel
|
|
|
|
BuildRequires: kconfig-devel
|
|
|
|
BuildRequires: kcoreaddons-devel
|
|
|
|
BuildRequires: kcrash-devel
|
|
|
|
BuildRequires: kdbusaddons-devel
|
|
|
|
BuildRequires: kdelibs4support-devel
|
|
|
|
BuildRequires: kdewebkit-devel
|
|
|
|
BuildRequires: kdoctools-devel
|
|
|
|
BuildRequires: ki18n-devel
|
|
|
|
BuildRequires: kio-devel
|
|
|
|
BuildRequires: knotifications-devel
|
|
|
|
BuildRequires: knotifyconfig-devel
|
2016-09-07 09:43:59 +00:00
|
|
|
BuildRequires: kplotting-devel
|
2016-04-22 14:17:02 +00:00
|
|
|
BuildRequires: kross-devel
|
|
|
|
BuildRequires: kxmlgui-devel
|
|
|
|
BuildRequires: libktorrent-devel >= 2.0
|
|
|
|
BuildRequires: libqca-qt5-devel
|
|
|
|
BuildRequires: phonon4qt5-devel
|
|
|
|
BuildRequires: plasma5-workspace-devel
|
|
|
|
BuildRequires: solid-devel
|
|
|
|
BuildRequires: sonnet-devel
|
2011-02-27 13:00:42 +00:00
|
|
|
BuildRequires: update-desktop-files
|
2016-04-22 14:17:02 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5DBus)
|
|
|
|
BuildRequires: pkgconfig(Qt5Script)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
|
|
|
BuildRequires: pkgconfig(taglib)
|
2011-02-27 13:00:57 +00:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2011-11-25 14:52:38 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-15 23:20:52 +00:00
|
|
|
|
|
|
|
%description
|
2011-02-27 13:00:42 +00:00
|
|
|
KTorrent is a bittorrent application for 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.
|
2007-01-15 23:20:52 +00:00
|
|
|
|
2011-02-27 13:00:57 +00:00
|
|
|
%lang_package
|
2007-01-15 23:20:52 +00:00
|
|
|
%prep
|
2011-03-17 09:50:08 +00:00
|
|
|
%setup -q
|
2011-02-27 13:00:42 +00:00
|
|
|
%patch0
|
2009-11-25 14:21:56 +00:00
|
|
|
%if ! 0%{?packman_bs}
|
2011-02-27 13:00:42 +00:00
|
|
|
%patch1
|
2009-11-25 14:21:56 +00:00
|
|
|
%endif
|
2011-02-27 13:00:42 +00:00
|
|
|
%patch2
|
2016-07-03 10:27:16 +00:00
|
|
|
%patch3 -p1
|
2007-01-15 23:20:52 +00:00
|
|
|
|
|
|
|
%build
|
2016-04-22 14:17:02 +00:00
|
|
|
%cmake_kf5 -d build
|
2011-02-27 13:00:42 +00:00
|
|
|
%make_jobs
|
2007-01-15 23:20:52 +00:00
|
|
|
|
|
|
|
%install
|
2016-04-22 14:17:02 +00:00
|
|
|
%kf5_makeinstall -C build
|
2011-02-27 13:00:42 +00:00
|
|
|
|
2011-03-17 09:50:08 +00:00
|
|
|
# Not needed, fix "devel-file-in-non-devel-package" rpmlint warning
|
2016-04-22 14:17:02 +00:00
|
|
|
rm -f %{buildroot}%{_libdir}/libktcore.so
|
2011-02-27 13:00:42 +00:00
|
|
|
|
2011-01-10 13:40:52 +00:00
|
|
|
# Add man pages from help2man edited.
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
2011-11-25 14:52:38 +00:00
|
|
|
cp -a %{SOURCE2} %{buildroot}%{_mandir}/man1
|
|
|
|
cp -a %{SOURCE3} %{buildroot}%{_mandir}/man1
|
2011-01-10 13:40:52 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2016-04-22 14:17:02 +00:00
|
|
|
%suse_update_desktop_file -r org.kde.ktorrent Qt KDE Network P2P
|
2007-01-15 23:20:52 +00:00
|
|
|
|
2011-02-27 13:00:42 +00:00
|
|
|
%fdupes -s %{buildroot}
|
2007-01-15 23:20:52 +00:00
|
|
|
|
2011-02-27 13:00:42 +00:00
|
|
|
%find_lang %{name}
|
2008-02-19 13:12:27 +00:00
|
|
|
|
2011-03-17 09:50:08 +00:00
|
|
|
%post -p /sbin/ldconfig
|
2011-01-10 13:40:52 +00:00
|
|
|
|
2011-03-17 09:50:08 +00:00
|
|
|
%postun -p /sbin/ldconfig
|
2011-01-10 13:40:52 +00:00
|
|
|
|
2007-05-17 09:42:29 +00:00
|
|
|
%files
|
2011-02-27 13:00:42 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog RoadMap
|
2011-05-18 08:32:33 +00:00
|
|
|
%doc %{_mandir}/man1/ktorrent.1%{ext_man}
|
|
|
|
%doc %{_mandir}/man1/ktupnptest.1%{ext_man}
|
2016-04-22 14:17:02 +00:00
|
|
|
%_bindir/ktorrent
|
|
|
|
%_libdir/libktcore.so.*
|
|
|
|
%_kf5_plugindir/
|
|
|
|
%_kf5_applicationsdir/org.kde.ktorrent.desktop
|
|
|
|
%_kf5_iconsdir/hicolor/*/*/*.png
|
|
|
|
%_kf5_iconsdir/hicolor/*/*/*.svgz
|
|
|
|
%_kf5_notifydir/ktorrent.notifyrc
|
|
|
|
%_kf5_kxmlguidir/ktorrent/
|
|
|
|
%_kf5_htmldir/en/ktorrent/
|
2008-02-19 13:12:27 +00:00
|
|
|
|
2011-02-27 13:00:42 +00:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
2016-04-22 14:17:02 +00:00
|
|
|
%_kf5_htmldir/*/ktorrent/
|
|
|
|
%dir %_kf5_htmldir/pt_BR
|
|
|
|
%exclude %_kf5_htmldir/en/ktorrent/
|
2011-02-27 13:00:42 +00:00
|
|
|
|
2007-03-06 16:52:31 +00:00
|
|
|
%changelog
|