diff --git a/.gitignore b/.gitignore index 726612f..a4b44ee 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /kdeconnect-kde-0.8.tar.xz /kdeconnect-kde-0.9g.tar.xz +/kde-connect-a594324dgit.patch.gz diff --git a/kde-connect.spec b/kde-connect.spec index 7fa1f23..ab3d46b 100644 --- a/kde-connect.spec +++ b/kde-connect.spec @@ -8,7 +8,7 @@ Name: kde-connect Version: 0.9 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv2+ Summary: KDE Connect client for communication with smartphones @@ -29,6 +29,9 @@ Source2: kde-connect.xml # Upstream patch for KDE 4 version Patch0: kdeconnect-kde-0.8-b-revision.patch +# post v0.9g tag patches, dated 20160603, git revision a594324d4fbe8e561fbb021d465b9c98de4ffe7e +Patch1: kde-connect-a594324dgit.patch.gz + BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: firewalld-filesystem @@ -59,13 +62,16 @@ Obsoletes: kde-connect-kde4-ioslave < 0.9 Obsoletes: kde-connect-kde4-libs < 0.9 %endif +# upstream name +Provides: kdeconnect-kde = %{version}-%{release} + Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Requires: firewalld-filesystem +Requires: kdeconnectd = %{version}-%{release} Requires: kf5-filesystem Requires: fuse-sshfs Requires: qca-qt5-ossl # /usr/bin/plasmawindowed (make optional at least until this is split out for bug #1286431) -Recommends: plasma-workspace +#Recommends: plasma-workspace # /usr/bin/kcmshell5 Requires: kde-cli-tools @@ -76,6 +82,13 @@ Currently, you can pair with your Android devices over Wifi using the KDE Connect app from Albert Vaka which you can obtain via Google Play, F-Droid or the project website. +%package -n kdeconnectd +Summary: KDE Connect service +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +Requires: firewalld-filesystem +%description -n kdeconnectd +%{summary}. + %package libs Summary: Runtime libraries for %{name} Requires: %{name} = %{version}-%{release} @@ -108,6 +121,9 @@ Requires: fuse-sshfs %prep %setup -q -n kdeconnect-kde-%{version}g +# makes app v1.0 compatible, don't apply yet +#patch1 -p1 + %build mkdir %{_target_platform} @@ -122,7 +138,7 @@ mkdir -p %{_builddir}/kde4 cd %{_builddir}/kde4 tar xfJ %{SOURCE1} cd kdeconnect-kde-0.8 -patch -p1 < %{PATCH0} +%patch0 -p1 mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} .. @@ -140,6 +156,12 @@ install -m644 -p -D %{SOURCE2} %{buildroot}%{_prefix}/lib/firewalld/services/kde %find_lang %{name} --all-name +# https://bugzilla.redhat.com/show_bug.cgi?id=1296523 +desktop-file-edit --remove-key=OnlyShowIn %{buildroot}%{_sysconfdir}/xdg/autostart/kdeconnectd.desktop + +# https://bugzilla.redhat.com/show_bug.cgi?id=1323421 +echo 'TryExec=Exec=plasmawindowed' >> %{buildroot}%{_datadir}/applications/org.kde.kdeconnect.nonplasma.desktop + %if 0%{?_with_kde4} make install/fast DESTDIR=%{buildroot} -C %{_builddir}/kde4/kdeconnect-kde-0.8/%{_target_platform}/interfaces make install/fast DESTDIR=%{buildroot} -C %{_builddir}/kde4/kdeconnect-kde-0.8/%{_target_platform}/kio @@ -158,7 +180,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.kdeconnect.no %post touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : -%{?firewalld_reload} %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : @@ -167,28 +188,37 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : -%{?firewalld_reload} fi %files -f %{name}.lang %license COPYING -%{_libexecdir}/kdeconnectd %{_kf5_bindir}/kdeconnect-cli %{_kf5_datadir}/plasma/plasmoids/org.kde.kdeconnect/ %{_kf5_datadir}/knotifications5/* %{_kf5_datadir}/kservices5/*.desktop %{_kf5_datadir}/kservices5/*.protocol %{_kf5_datadir}/kservicetypes5/*.desktop -%{_datadir}/dbus-1/services/*.service -%{_datadir}/icons/hicolor/*/*/* +%{_qt5_plugindir}/kcm_kdeconnect.so +%{_qt5_plugindir}/kio_kdeconnect.so +%{_datadir}/icons/hicolor/*/apps/kdeconnect.* +%{_datadir}/icons/hicolor/*/status/* %{_datadir}/applications/org.kde.kdeconnect.kcm.desktop %{_datadir}/applications/org.kde.kdeconnect.nonplasma.desktop -%{_qt5_prefix}/qml/org/kde/kdeconnect/ -%{_qt5_prefix}/plugins/kcm_kdeconnect.so -%{_qt5_prefix}/plugins/kio_kdeconnect.so -%{_qt5_prefix}/plugins/kdeconnect*.so -%{_qt5_prefix}/plugins/kdeconnect/ +%{_qt5_archdatadir}/qml/org/kde/kdeconnect/ +#{_kf5_docdir}/HTML/en/kdeconnect/ + +%post -n kdeconnectd +%{?firewalld_reload} + +%postun -n kdeconnectd +if [ $1 -eq 0 ] ; then +%{?firewalld_reload} +fi + +%files -n kdeconnectd %{_sysconfdir}/xdg/autostart/kdeconnectd.desktop +%{_libexecdir}/kdeconnectd +%{_datadir}/dbus-1/services/org.kde.kdeconnect.service %{_prefix}/lib/firewalld/services/kde-connect.xml %post libs -p /sbin/ldconfig @@ -198,6 +228,8 @@ fi %{_kf5_libdir}/libkdeconnectpluginkcm.so.0* %{_kf5_libdir}/libkdeconnectinterfaces.so.0* %{_kf5_libdir}/libkdeconnectcore.so.0* +%{_qt5_plugindir}/kdeconnect*.so +%{_qt5_plugindir}/kdeconnect/ %if 0%{?_with_kde4} %post kde4-libs -p /sbin/ldconfig @@ -213,6 +245,11 @@ fi %changelog +* Sun Jun 05 2016 Rex Dieter - 0.9-7 +- prep git snapshot (for 1.0 compatibility), but don't use yet +- kdeconnectd subpkg (#1324214) +- kdeconnectd does not autostart on MATE (#1296523) + * Fri Feb 19 2016 Rex Dieter 0.9-6 - drop kde4 support (f24+) diff --git a/sources b/sources index 5ebb723..f4d191a 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ 43fbad180dc5412c8c0131399acaceea kdeconnect-kde-0.8.tar.xz 1472d071bd3d4f46c125a3aa0f387ca2 kdeconnect-kde-0.9g.tar.xz +57fb899933ae7471b8ed6b91927c718b kde-connect-a594324dgit.patch.gz