[homebank] update icon/mime scriptlets

Rex Dieter rdieter at fedoraproject.org
Thu Oct 2 19:33:18 UTC 2014


commit 8fd047003081afa95b287310bc97e9bbaea9f09a
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Thu Oct 2 14:33:11 2014 -0500

    update icon/mime scriptlets

 homebank.spec |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)
---
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 <rdieter at fedoraproject.org> 4.6.3-3
+- update icon/mime scriptlets
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.6.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list