diff --git a/kgpg.spec b/kgpg.spec index ae629cd..efb2dc5 100644 --- a/kgpg.spec +++ b/kgpg.spec @@ -2,7 +2,7 @@ Name: kgpg Summary: Manage GPG encryption keys Version: 16.12.2 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ URL: https://www.kde.org/applications/utilities/kgpg/ @@ -16,13 +16,14 @@ URL: https://www.kde.org/applications/utilities/kgpg/ Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: desktop-file-utils -BuildRequires: extra-cmake-modules -BuildRequires: kf5-rpm-macros +BuildRequires: libappstream-glib BuildRequires: cmake(Qt5DBus) BuildRequires: cmake(Qt5PrintSupport) BuildRequires: cmake(Qt5Widgets) +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros BuildRequires: cmake(KF5Archive) BuildRequires: cmake(KF5DocTools) BuildRequires: cmake(KF5Codecs) @@ -42,7 +43,6 @@ BuildRequires: cmake(KF5WindowSystem) # pim-related deps below are available only where qtwebengine is %{?qt5_qtwebengine_arches:ExclusiveArch: %{qt5_qtwebengine_arches}} - BuildRequires: cmake(KF5AkonadiContact) BuildRequires: cmake(KF5Contacts) @@ -61,7 +61,6 @@ Provides: kdeutils-kgpg = 6:%{version}-%{release} # kgpg (can be either gnupg or gnupg2, we'll default to the latter) Requires: gnupg2 - %description KGpg is a simple interface for GnuPG, a powerful encryption utility. @@ -82,6 +81,12 @@ make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} +# only plasma supports X-KDE-autostart-condition, else it starts unconditionally +# everywhere else, see also https://bugzilla.redhat.com/1427707 +desktop-file-edit \ + --add-only-show-in=KDE \ + %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop + # support kde4 servicemenu mkdir -p %{buildroot}%{_kde4_datadir}/kde4/services/ServiceMenus cp -alf \ @@ -90,7 +95,8 @@ cp -alf \ %check -#desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop ||: +appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/org.kde.%{name}.appdata.xml +desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop %post @@ -125,6 +131,10 @@ fi %changelog +* Tue Feb 28 2017 Rex Dieter - 16.12.2-2 +- kgpg autostarts on all desktops (#1427707) +- %%check: appdata validation + * Thu Feb 09 2017 Rex Dieter - 16.12.2-1 - 16.12.2