From bf2d71f7f488700cf910eb8913ba42e283a09654 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 1 Sep 2015 09:03:33 -0500 Subject: [PATCH] post-review fixes some missing BR, scriptlets, -devel deps --- dolphin.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dolphin.spec b/dolphin.spec index 7fbd5bd..15c14bd 100644 --- a/dolphin.spec +++ b/dolphin.spec @@ -17,6 +17,7 @@ BuildRequires: cmake BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: qt5-qtbase-devel +BuildRequires: kf5-rpm-macros BuildRequires: kf5-kdoctools-devel BuildRequires: kf5-kinit-devel BuildRequires: kf5-kcmutils-devel @@ -59,8 +60,8 @@ Summary: Dolphin runtime libraries Summary: Developer files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release} -Requires: qt5-qtbase-devel -Requires: kf5-kio-devel +Requires: qt5-qtbase-devel%{?_isa} +Requires: kf5-kio-devel%{?_isa} %description devel %{summary}. @@ -86,6 +87,14 @@ appstream-util validate-relax --nonet %{buildroot}%{_kf5_datadir}/appdata/%{name desktop-file-validate %{buildroot}%{_kf5_datadir}/applications/org.kde.%{name}.desktop ||: +%posttrans +update-desktop-database -q &> /dev/null ||: + +%postun +if [ $1 -eq 0 ] ; then +update-desktop-database -q &> /dev/null ||: +fi + %files %license COPYING* %doc README