[ktorrent] omit magnet.protocol
Rex Dieter
rdieter at fedoraproject.org
Thu Mar 29 16:48:34 UTC 2012
commit 00cf898c145d4a786442fcbeb8033a2c65b76b62
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Thu Mar 29 11:48:20 2012 -0500
omit magnet.protocol
- support/use MimeTypes=x-scheme-handler/magnet; instead
ktorrent-4.2.0-mimetype_magnet.patch | 12 ++++++++++++
ktorrent.spec | 14 ++++++++++++--
2 files changed, 24 insertions(+), 2 deletions(-)
---
diff --git a/ktorrent-4.2.0-mimetype_magnet.patch b/ktorrent-4.2.0-mimetype_magnet.patch
new file mode 100644
index 0000000..2e5cfd5
--- /dev/null
+++ b/ktorrent-4.2.0-mimetype_magnet.patch
@@ -0,0 +1,12 @@
+diff -up ktorrent-4.2.0/ktorrent/ktorrent.desktop.mimetypes ktorrent-4.2.0/ktorrent/ktorrent.desktop
+--- ktorrent-4.2.0/ktorrent/ktorrent.desktop.mimetypes 2012-02-22 07:46:47.000000000 -0600
++++ ktorrent-4.2.0/ktorrent/ktorrent.desktop 2012-03-29 11:46:21.077995757 -0500
+@@ -116,7 +116,7 @@ Exec=ktorrent %i -caption "%c" %u
+ Icon=ktorrent
+ Type=Application
+ X-DocPath=ktorrent/index.html
+-MimeType=application/x-bittorrent;application/x-torrent;
++MimeType=application/x-bittorrent;application/x-torrent;x-scheme-handler/magnet;
+ X-DBUS-StartupType=Unique
+ X-DBUS-ServiceName=org.ktorrent.ktorrent
+ Comment=A BitTorrent program for KDE
diff --git a/ktorrent.spec b/ktorrent.spec
index 7f4308b..b301c31 100644
--- a/ktorrent.spec
+++ b/ktorrent.spec
@@ -5,13 +5,17 @@
Name: ktorrent
Version: 4.2.0
-Release: 2%{?pre}%{?dist}
+Release: 3%{?pre}%{?dist}
Summary: A BitTorrent program
Group: Applications/Internet
License: GPLv2+
URL: http://ktorrent.org/
Source0: http://ktorrent.org/downloads/%{version}%{?pre}/ktorrent-%{version}%{?pre}.tar.bz2
+## upstreamable patches
+# support MimeType=x-scheme-handler/magnet
+Patch50: ktorrent-4.2.0-mimetype_magnet.patch
+
BuildRequires: avahi-devel
BuildRequires: cmake
BuildRequires: desktop-file-utils
@@ -59,6 +63,8 @@ Requires: plasma-engine-ktorrent = %{version}-%{release}
%prep
%setup -q -n %{name}-%{version}%{?pre}
+%patch -p1 -b .mimetype_magnet
+
%build
mkdir -p %{_target_platform}
@@ -132,7 +138,7 @@ fi
%{_kde4_datadir}/applications/kde4/ktorrent.desktop
%{_kde4_appsdir}/ktorrent/
%{_kde4_datadir}/kde4/services/kt*plugin.desktop
-%{_kde4_datadir}/kde4/services/magnet.protocol
+%exclude %{_kde4_datadir}/kde4/services/magnet.protocol
%{_kde4_datadir}/kde4/services/plasma-dataengine-ktorrent.desktop
%{_kde4_datadir}/kde4/servicetypes/ktorrentplugin.desktop
%{_kde4_datadir}/config.kcfg/magnetsettings.kcfg
@@ -151,6 +157,10 @@ fi
%changelog
+* Thu Mar 29 2012 Rex Dieter <rdieter at fedoraproject.org> 4.2.0-3
+- omit magnet.protocol
+- support/use MimeTypes=x-scheme-handler/magnet; instead
+
* Thu Mar 29 2012 Rex Dieter <rdieter at fedoraproject.org> 4.2.0-2
- drop ENABLE_KIO_MAGNET, let main app handle it
More information about the scm-commits
mailing list