From dd9e113ecd49e1d7a37fc5c7df4e6459662d365eefa8986513eb5787f8776fad Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 12 Oct 2015 08:01:16 +0000 Subject: [PATCH] Accepting request 337903 from KDE:Extra Add remove-plasma.diff: Disable building the plasma applet, which is totally non functional in Plasma 5 and adds an unnecessary dependency on kdebase4-workspace OBS-URL: https://build.opensuse.org/request/show/337903 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ktorrent?expand=0&rev=100 --- ktorrent.changes | 13 +++++++++++++ ktorrent.spec | 14 +++++++++++++- remove-plasma.diff | 12 ++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 remove-plasma.diff diff --git a/ktorrent.changes b/ktorrent.changes index 7341412..df9ef95 100644 --- a/ktorrent.changes +++ b/ktorrent.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Sun Oct 11 09:51:39 UTC 2015 - lbeltrame@kde.org + +- Ensure the Plasma applet removal only occurs on Tumbleweed and + Leap + +------------------------------------------------------------------- +Sun Oct 11 09:12:07 UTC 2015 - lbeltrame@kde.org + +- Add remove-plasma.diff: Disable building the plasma applet, + which is totally non functional in Plasma 5 and adds an + unnecessary dependency on kdebase4-workspace + ------------------------------------------------------------------- Sat Jan 31 19:48:18 UTC 2015 - hrvoje.senjan@gmail.com diff --git a/ktorrent.spec b/ktorrent.spec index 0cee115..43caebd 100644 --- a/ktorrent.spec +++ b/ktorrent.spec @@ -38,9 +38,13 @@ Patch2: initial-preference.diff Patch3: ipfilter_bugfix.diff # 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 +# PATCH-FIX-OPENSUSE remove-plasma.diff -- disable building the Plasma applet +Patch5: remove-plasma.diff BuildRequires: ImageMagick BuildRequires: fdupes +%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse} BuildRequires: kdebase4-workspace-devel +%endif BuildRequires: libkdepimlibs4-devel BuildRequires: libktorrent-devel >= 1.3.0 %if %suse_version > 1200 @@ -79,6 +83,9 @@ for BitTorrent. tar jxf %{SOURCE1} %patch3 %patch4 -p1 +%if 0%{?suse_version} > 1320 || 0%{?is_opensuse} +%patch5 -p1 +%endif %build %cmake_kde4 -d build @@ -136,8 +143,10 @@ rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/ %{_kde4_bindir}/ktorrent %{_kde4_bindir}/ktupnptest %{_kde4_modulesdir}/kt*.so +%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse} %{_kde4_modulesdir}/plasma_applet_ktorrent.so %{_kde4_modulesdir}/plasma_engine_ktorrent.so +%endif %{_kde4_libdir}/libktcore.so.* %{_kde4_applicationsdir}/ktorrent.desktop %{_kde4_iconsdir}/hicolor/*/actions/kt-*.* @@ -145,9 +154,12 @@ rm -rf %{buildroot}%{_datadir}/locale/sr@ijekavianlatin/ %{_kde4_iconsdir}/hicolor/*/mimetypes/torrent.* %{_kde4_appsdir}/ktorrent/ %{_kde4_servicesdir}/kt*.desktop +%{_kde4_servicetypesdir}/ktorrentplugin.desktop +%if 0%{?suse_version} <= 1320 && ! 0%{?is_opensuse} %{_kde4_servicesdir}/plasma-applet-ktorrent.desktop %{_kde4_servicesdir}/plasma-dataengine-ktorrent.desktop -%{_kde4_servicetypesdir}/ktorrentplugin.desktop +%endif + %doc %{_mandir}/man1/ktorrent.1%{ext_man} %doc %{_mandir}/man1/ktupnptest.1%{ext_man} diff --git a/remove-plasma.diff b/remove-plasma.diff new file mode 100644 index 0000000..8d3b0b8 --- /dev/null +++ b/remove-plasma.diff @@ -0,0 +1,12 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index a4973e3..f6b7142 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -40,7 +40,6 @@ add_subdirectory(libktcore) + add_subdirectory(plugins) + add_subdirectory(ktorrent) + add_subdirectory(ktupnptest) +-add_subdirectory(plasma) + add_subdirectory(ktmagnetdownloader) + add_subdirectory(doc) +