From b1214e68107920787be2e41ecc41b955c6a58148 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Thu, 19 Nov 2015 12:46:18 -0600 Subject: [PATCH] respin kde-connect-0.9f, includes translations --- .gitignore | 4 +-- kde-connect.spec | 71 +++++++++++++++++++++++++++++------------------- sources | 2 +- 3 files changed, 45 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 4fdbfd1..dc19fe4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,2 @@ /kdeconnect-kde-0.8.tar.xz -/kdeconnect-kde-v0.8-231-gfdf91aa.tar.xz -/kdeconnect-kde-v0.8-329-g43161b3.tar.xz -/kdeconnect-kde-v0.8-339-g2b34d28.tar.xz +/kdeconnect-kde-0.9f.tar.xz diff --git a/kde-connect.spec b/kde-connect.spec index a607850..25c2a8d 100644 --- a/kde-connect.spec +++ b/kde-connect.spec @@ -1,25 +1,27 @@ # once kf5 dolphin lands, may consider disabling this -- rex +#if 0%{?fedora} < 23 %global _with_kde4 1 +#endif # After tag v0.8 with Frameworks -%define _git_describe v0.8-339-g2b34d28 +#define _git_describe v0.8-339-g2b34d28 Name: kde-connect -Version: 0.8 -Release: 10%{?dist} +Version: 0.9 +Release: 2%{?dist} License: GPLv2+ Summary: KDE Connect client for communication with smartphones -Url: https://projects.kde.org/projects/playground/base/kdeconnect-kde +Url: https://projects.kde.org/kdeconnect-kde %if 0%{?_git_describe:1} # using releaseme: # ./tarme.rb kdeconnect-kde --origin trunk --version 0.8 # then rename accordingly Source0: kdeconnect-kde-%{_git_describe}.tar.xz %else -# no kf5 release yet +Source0: http://download.kde.org/unstable/kdeconnect/%{version}/src/kdeconnect-kde-%{version}f.tar.xz %endif -Source1: http://download.kde.org/unstable/kdeconnect/%{version}/src/kdeconnect-kde-%{version}.tar.xz +Source1: http://download.kde.org/unstable/kdeconnect/0.8/src/kdeconnect-kde-0.8.tar.xz # firewalld service definition, see https://bugzilla.redhat.com/show_bug.cgi?id=1257699#c2 Source2: kde-connect.xml @@ -27,6 +29,7 @@ Source2: kde-connect.xml # Upstream patch for KDE 4 version Patch0: kdeconnect-kde-0.8-b-revision.patch +BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: firewalld-filesystem @@ -51,6 +54,9 @@ BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(libfakekey) BuildRequires: pkgconfig(QJson) BuildRequires: pkgconfig(qca2) +%else +Obsoletes: kde-connect-kde4-ioslave < 0.9 +Obsoletes: kde-connect-kde4-libs < 0.9 %endif Requires: %{name}-libs%{?_isa} = %{version}-%{release} @@ -76,6 +82,13 @@ Requires: %{name} = %{version}-%{release} %description libs %{summary}. +%package devel +Summary: Development files for %{name} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +%description devel +%{summary}. + +%if 0%{?_with_kde4} %package kde4-libs Summary: Runtime libraries for %{name} KDE4 kioslave # circular deps, this is mostly useless without the ioslave too -- rex @@ -89,12 +102,7 @@ Requires: %{name}-kde4-libs%{?_isa} = %{version}-%{release} Requires: fuse-sshfs %description kde4-ioslave %{summary}. - -%package devel -Summary: Development files for %{name} -Requires: %{name}-libs%{?_isa} = %{version}-%{release} -%description devel -%{summary}. +%endif %prep @@ -109,18 +117,19 @@ popd make %{?_smp_mflags} -C %{_target_platform} -%if %{_with_kde4} +%if 0%{?_with_kde4} mkdir -p %{_builddir}/kde4 cd %{_builddir}/kde4 tar xfJ %{SOURCE1} -cd kdeconnect-kde-%{version} +cd kdeconnect-kde-0.8 patch -p1 < %{PATCH0} mkdir -p %{_target_platform} pushd %{_target_platform} - %{cmake_kde4} .. -popd +%{cmake_kde4} .. -make %{?_smp_mflags} -C %{_target_platform} +make %{?_smp_mflags} -C interfaces/ +make %{?_smp_mflags} -C kio/ +popd %endif @@ -132,19 +141,19 @@ install -m644 -p -D %{SOURCE2} %{buildroot}%{_prefix}/lib/firewalld/services/kde %find_lang %{name} --all-name %if %{_with_kde4} -make install/fast DESTDIR=%{buildroot} -C %{_builddir}/kde4/kdeconnect-kde-%{version}/%{_target_platform}/kio -make install/fast DESTDIR=%{buildroot} -C %{_builddir}/kde4/kdeconnect-kde-%{version}/%{_target_platform}/interfaces +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 # Remove undesired kde4 devel files -rm -rf %{buildroot}%{_includedir}/kde4/ -rm -rf %{buildroot}%{_libdir}/cmake/ -rm -rf %{buildroot}%{_kde4_libdir}/libkdeconnectinterfaces.so +rm -rfv %{buildroot}%{_includedir}/kde4/ +rm -rfv %{buildroot}%{_libdir}/cmake/ +rm -rfv %{buildroot}%{_kde4_libdir}/libkdeconnectinterfaces.so %endif %check -desktop-file-validate %{buildroot}%{_datadir}/applications/kdeconnect-non-plasma.desktop -desktop-file-validate %{buildroot}%{_datadir}/applications/kdeconnect.desktop +desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.kdeconnect.kcm.desktop +desktop-file-validate %{buildroot}%{_datadir}/applications/org.kde.kdeconnect.nonplasma.desktop %post @@ -162,7 +171,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || : fi %files -f %{name}.lang -%doc COPYING +%license COPYING %{_libexecdir}/kdeconnectd %{_kf5_bindir}/kdeconnect-cli %{_kf5_datadir}/plasma/plasmoids/org.kde.kdeconnect/ @@ -172,8 +181,8 @@ fi %{_kf5_datadir}/kservicetypes5/*.desktop %{_datadir}/dbus-1/services/*.service %{_datadir}/icons/hicolor/*/*/* -%{_datadir}/applications/kdeconnect.desktop -%{_datadir}/applications/kdeconnect-non-plasma.desktop +%{_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 @@ -190,7 +199,7 @@ fi %{_kf5_libdir}/libkdeconnectinterfaces.so.0* %{_kf5_libdir}/libkdeconnectcore.so.0* -%if %{_with_kde4} +%if 0%{?_with_kde4} %post kde4-libs -p /sbin/ldconfig %postun kde4-libs -p /sbin/ldconfig @@ -204,6 +213,12 @@ fi %changelog +* Thu Nov 19 2015 Rex Dieter 0.9-2 +- respin kde-connect-0.9f, includes translations + +* Mon Nov 16 2015 Rex Dieter 0.9-1 +- kde-connect-0.9 (missing translations?) + * Tue Nov 10 2015 Rex Dieter 0.8-10 - Requires: plasma-workspace kde-cli-tools (#1280078) diff --git a/sources b/sources index 2eca51d..3690ff1 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ 43fbad180dc5412c8c0131399acaceea kdeconnect-kde-0.8.tar.xz -87af553e44cdaba02f4b14ba6e73ab41 kdeconnect-kde-v0.8-339-g2b34d28.tar.xz +8574467d0d905a7267f79ffc80ca0934 kdeconnect-kde-0.9f.tar.xz