diff --git a/homebank.spec b/homebank.spec index 25ee7b0..4243a56 100644 --- a/homebank.spec +++ b/homebank.spec @@ -1,6 +1,6 @@ Name: homebank Version: 4.6.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Free easy personal accounting for all Group: Applications/Productivity @@ -59,21 +59,23 @@ desktop-file-install \ %post -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; -fi -update-mime-database %{_datadir}/mime &> /dev/null || : +touch --no-create %{_datadir}/icons/hicolor &>/dev/null +touch --no-create %{_datadir}/mime/packages &> /dev/null || : update-desktop-database &> /dev/null || : %postun -touch --no-create %{_datadir}/icons/hicolor -if [ -x %{_bindir}/gtk-update-icon-cache ]; then - %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; +if [ $1 -eq 0 ]; then +touch --no-create %{_datadir}/icons/hicolor &>/dev/null +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +touch --no-create %{_datadir}/mime/packages &> /dev/null || : +update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : fi -update-mime-database %{_datadir}/mime &> /dev/null || : update-desktop-database &> /dev/null || : +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : + %files -f %{name}.lang %doc AUTHORS ChangeLog COPYING NEWS README @@ -94,6 +96,9 @@ update-desktop-database &> /dev/null || : %{_datadir}/%{name}/help %changelog +* Thu Oct 02 2014 Rex Dieter 4.6.3-3 +- update icon/mime scriptlets + * Sat Aug 16 2014 Fedora Release Engineering - 4.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild