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