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
|
|
|
#
|
2016-03-16 10:25:22 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-01-16 00:20:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2011-01-10 14:41:02 +01:00
|
|
|
#
|
|
|
|
|
2011-02-27 14:00:57 +01:00
|
|
|
|
2007-01-16 00:20:52 +01:00
|
|
|
Name: ktorrent
|
2013-01-22 22:21:54 +01:00
|
|
|
Version: 4.3.1
|
2012-01-30 12:26:10 +01:00
|
|
|
Release: 0
|
2007-01-16 00:20:52 +01:00
|
|
|
Summary: KDE BitTorrent Client
|
2012-01-30 12:26:10 +01:00
|
|
|
License: GPL-2.0+
|
2011-02-27 14:00:42 +01:00
|
|
|
Group: Productivity/Networking/File-Sharing
|
2012-01-30 12:26:10 +01:00
|
|
|
Url: http://ktorrent.org/
|
2011-11-25 15:52:38 +01:00
|
|
|
Source0: http://ktorrent.org/downloads/%{version}/%{name}-%{version}.tar.bz2
|
2011-02-27 14:00:42 +01:00
|
|
|
# Mimetype icons
|
|
|
|
Source1: icons.tar.bz2
|
|
|
|
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
|
2014-02-20 10:12:18 +01:00
|
|
|
# PATCH-FIX-UPSTREAM ipfilter_bugfix.diff -- Fix gzip not working in ipfilter plugin due to wrong mimetype, kde#315239
|
2014-06-16 21:28:06 +02:00
|
|
|
Patch3: ipfilter_bugfix.diff
|
2015-02-12 10:21:38 +01:00
|
|
|
# PATCH-FIX-UPSTREAM properly-support-x-scheme-handler-magnet-mimetype.patch -- make ktorrent support magnet mimetype outside KDE4
|
|
|
|
Patch4: properly-support-x-scheme-handler-magnet-mimetype.patch
|
2015-10-12 10:01:16 +02:00
|
|
|
# PATCH-FIX-OPENSUSE remove-plasma.diff -- disable building the Plasma applet
|
|
|
|
Patch5: remove-plasma.diff
|
2011-02-27 14:00:42 +01:00
|
|
|
BuildRequires: ImageMagick
|
|
|
|
BuildRequires: fdupes
|
2015-10-12 10:01:16 +02:00
|
|
|
%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse}
|
2011-02-27 14:00:42 +01:00
|
|
|
BuildRequires: kdebase4-workspace-devel
|
2015-10-12 10:01:16 +02:00
|
|
|
%endif
|
2011-02-27 14:00:42 +01:00
|
|
|
BuildRequires: libkdepimlibs4-devel
|
2012-09-11 11:24:17 +02:00
|
|
|
BuildRequires: libktorrent-devel >= 1.3.0
|
2012-05-07 22:47:26 +02:00
|
|
|
%if %suse_version > 1200
|
|
|
|
BuildRequires: pkgconfig(taglib)
|
|
|
|
%else
|
|
|
|
BuildRequires: taglib-devel
|
|
|
|
%endif
|
2011-02-27 14:00:42 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: update-desktop-files
|
|
|
|
%endif
|
2011-02-27 14:00:57 +01:00
|
|
|
Recommends: %{name}-lang = %{version}
|
2011-05-18 10:32:33 +02:00
|
|
|
# ktorrent-devel was last used in openSUSE 11.4
|
|
|
|
Provides: ktorrent-devel = %{version}
|
|
|
|
Obsoletes: ktorrent-devel < %{version}
|
|
|
|
# libktcore12 was last used in openSUSE 11.4
|
|
|
|
Provides: libktcore12 = %{version}
|
|
|
|
Obsoletes: libktcore12 < %{version}
|
2011-11-25 15:52:38 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%kde4_pimlibs_requires
|
|
|
|
%kde4_runtime_requires
|
2007-01-16 00:20:52 +01:00
|
|
|
|
|
|
|
%description
|
2011-02-27 14:00:42 +01: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-16 00:20:52 +01:00
|
|
|
|
2011-02-27 14:00:57 +01:00
|
|
|
%lang_package
|
2007-01-16 00:20:52 +01:00
|
|
|
%prep
|
2011-03-17 10:50:08 +01:00
|
|
|
%setup -q
|
2011-02-27 14:00:42 +01:00
|
|
|
%patch0
|
2009-11-25 15:21:56 +01:00
|
|
|
%if ! 0%{?packman_bs}
|
2011-02-27 14:00:42 +01:00
|
|
|
%patch1
|
2009-11-25 15:21:56 +01:00
|
|
|
%endif
|
2011-02-27 14:00:42 +01:00
|
|
|
%patch2
|
|
|
|
tar jxf %{SOURCE1}
|
2014-02-20 10:12:18 +01:00
|
|
|
%patch3
|
2015-02-12 10:21:38 +01:00
|
|
|
%patch4 -p1
|
2015-10-12 10:01:16 +02:00
|
|
|
%if 0%{?suse_version} > 1320 || 0%{?is_opensuse}
|
|
|
|
%patch5 -p1
|
|
|
|
%endif
|
2007-01-16 00:20:52 +01:00
|
|
|
|
|
|
|
%build
|
2011-02-27 14:00:42 +01:00
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make_jobs
|
2007-01-16 00:20:52 +01:00
|
|
|
|
|
|
|
%install
|
2015-02-12 10:21:38 +01:00
|
|
|
%kde4_makeinstall -C build
|
2011-02-27 14:00:42 +01:00
|
|
|
|
2011-03-17 10:50:08 +01:00
|
|
|
# Not needed, fix "devel-file-in-non-devel-package" rpmlint warning
|
|
|
|
rm -f %{buildroot}%{_kde4_libdir}/libktcore.so
|
|
|
|
|
2011-05-18 10:32:33 +02:00
|
|
|
# patch image with wrong dimensions - fix rpmlint warning "wrong-icon-size"
|
2016-03-16 10:25:22 +01:00
|
|
|
mogrify -strip -extent 16x16 -background transparent -gravity center %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png
|
2014-06-16 21:28:06 +02:00
|
|
|
rm -f %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png~
|
2016-03-16 10:25:22 +01:00
|
|
|
mogrify -strip -scale 22x22 -background transparent %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png
|
2014-06-16 21:28:06 +02:00
|
|
|
rm -f %{buildroot}%{_kde4_iconsdir}/hicolor/22x22/actions/kt-encrypted.png~
|
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 %{SOURCE2} %{buildroot}%{_mandir}/man1
|
|
|
|
cp -a %{SOURCE3} %{buildroot}%{_mandir}/man1
|
2011-01-10 14:40:52 +01: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
|
|
|
|
|
2011-02-27 14:00:42 +01:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%suse_update_desktop_file -r %{name} Qt KDE Network P2P
|
|
|
|
%endif
|
|
|
|
|
|
|
|
# Remove unneeded locales
|
2011-05-18 10:32:33 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} < 1140
|
2011-02-27 14:00:42 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/ast/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/hne/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavian/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/
|
|
|
|
%endif
|
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
|
|
|
|
2011-02-27 14:00:42 +01:00
|
|
|
%find_lang %{name}
|
2008-02-19 14:12:27 +01:00
|
|
|
|
2011-02-27 14:00:42 +01:00
|
|
|
%kde_post_install
|
2007-01-16 00:20:52 +01:00
|
|
|
|
2011-03-17 10:50:08 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2011-01-10 14:40:52 +01:00
|
|
|
|
2011-03-17 10:50:08 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2011-01-10 14:40:52 +01:00
|
|
|
|
2007-05-17 11:42:29 +02:00
|
|
|
%files
|
2011-02-27 14:00:42 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING ChangeLog RoadMap
|
|
|
|
%{_kde4_bindir}/ktmagnetdownloader
|
|
|
|
%{_kde4_bindir}/ktorrent
|
|
|
|
%{_kde4_bindir}/ktupnptest
|
2011-11-25 15:52:38 +01:00
|
|
|
%{_kde4_modulesdir}/kt*.so
|
2015-10-12 10:01:16 +02:00
|
|
|
%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse}
|
2011-02-27 14:00:42 +01:00
|
|
|
%{_kde4_modulesdir}/plasma_applet_ktorrent.so
|
|
|
|
%{_kde4_modulesdir}/plasma_engine_ktorrent.so
|
2015-10-12 10:01:16 +02:00
|
|
|
%endif
|
2011-03-17 10:50:08 +01:00
|
|
|
%{_kde4_libdir}/libktcore.so.*
|
2011-02-27 14:00:42 +01:00
|
|
|
%{_kde4_applicationsdir}/ktorrent.desktop
|
2011-11-25 15:52:38 +01:00
|
|
|
%{_kde4_iconsdir}/hicolor/*/actions/kt-*.*
|
2011-05-18 10:32:33 +02:00
|
|
|
%{_kde4_iconsdir}/hicolor/*/apps/ktorrent.*
|
|
|
|
%{_kde4_iconsdir}/hicolor/*/mimetypes/torrent.*
|
2011-02-27 14:00:42 +01:00
|
|
|
%{_kde4_appsdir}/ktorrent/
|
2011-11-25 15:52:38 +01:00
|
|
|
%{_kde4_servicesdir}/kt*.desktop
|
2015-10-12 10:01:16 +02:00
|
|
|
%{_kde4_servicetypesdir}/ktorrentplugin.desktop
|
|
|
|
%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse}
|
2011-02-27 14:00:42 +01:00
|
|
|
%{_kde4_servicesdir}/plasma-applet-ktorrent.desktop
|
|
|
|
%{_kde4_servicesdir}/plasma-dataengine-ktorrent.desktop
|
2015-10-12 10:01:16 +02:00
|
|
|
%endif
|
|
|
|
|
2011-05-18 10:32:33 +02:00
|
|
|
%doc %{_mandir}/man1/ktorrent.1%{ext_man}
|
|
|
|
%doc %{_mandir}/man1/ktupnptest.1%{ext_man}
|
2008-02-19 14:12:27 +01:00
|
|
|
|
2011-02-27 14:00:42 +01:00
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
2007-03-06 17:52:31 +01:00
|
|
|
%changelog
|