diff --git a/kf5-kcoreaddons.spec b/kf5-kcoreaddons.spec index 6535d58..1c2f7b6 100644 --- a/kf5-kcoreaddons.spec +++ b/kf5-kcoreaddons.spec @@ -3,7 +3,7 @@ Name: kf5-%{framework} Version: 5.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: KDE Frameworks 5 Tier 1 addon with various classes on top of QtCore License: GPLv2+ and GPLv2+ @@ -51,10 +51,19 @@ make %{?_smp_mflags} -C %{_target_platform} %make_install -C %{_target_platform} %find_lang kcoreaddons5_qt --with-qt --all-name -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +touch --no-create %{_datadir}/mime/packages &> /dev/null || : -%postun -p /sbin/ldconfig +%postun +/sbin/ldconfig +if [ $1 -eq 0 ] ; then +touch --no-create %{_datadir}/mime/packages &> /dev/null || : +update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : +fi +%posttrans +update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %files -f kcoreaddons5_qt.lang %doc COPYING.LIB README.md @@ -69,6 +78,9 @@ make %{?_smp_mflags} -C %{_target_platform} %{_kf5_archdatadir}/mkspecs/modules/qt_KCoreAddons.pri %changelog +* Sat Aug 09 2014 Rex Dieter 5.1.0-2 +- mime scriptlets + * Wed Aug 06 2014 Daniel Vrátil - 5.1.0-1 - KDE Frameworks 5.1.0