[hugin] update icon/mime scriptlets

Rex Dieter rdieter at fedoraproject.org
Sat Aug 9 18:46:48 UTC 2014


commit b27befbbb59706cf04aab089f0fd1813f5b032f2
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Sat Aug 9 13:46:48 2014 -0500

    update icon/mime scriptlets

 hugin.spec |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)
---
diff --git a/hugin.spec b/hugin.spec
index 60e6aaa..85700f7 100644
--- a/hugin.spec
+++ b/hugin.spec
@@ -2,12 +2,11 @@
 Summary: A panoramic photo stitcher and more
 Name: hugin
 Version: 2013.0.0
-Release: 7%{?dist}
+Release: 8%{?dist}
 License: GPLv2+
 Group: Applications/Multimedia
 Source: http://downloads.sourceforge.net/hugin/%{name}-%{version}.tar.bz2
 URL: http://hugin.sourceforge.net/
-Requires: shared-mime-info
 Requires: webclient
 Requires: wxPython
 Requires: %{name}-base = %{version}-%{release}
@@ -64,15 +63,21 @@ desktop-file-install --vendor="" --delete-original \
 
 %post
 update-desktop-database &> /dev/null ||:
-update-mime-database %{_datadir}/mime &> /dev/null || :
-touch --no-create %{_datadir}/icons/gnome || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
+/bin/touch --no-create %{_datadir}/icons/gnome &>/dev/null || :
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
 
 %postun
 update-desktop-database &> /dev/null ||:
-update-mime-database %{_datadir}/mime &> /dev/null || :
-touch --no-create %{_datadir}/icons/gnome || :
-%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/gnome || :
+if [ $1 -eq 0 ] ; then
+  /bin/touch --no-create %{_datadir}/icons/gnome &>/dev/null
+  /usr/bin/gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || :
+  /bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
+  /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/gnome &>/dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 %post base -p /sbin/ldconfig
 
@@ -175,6 +180,9 @@ touch --no-create %{_datadir}/icons/gnome || :
 %{_mandir}/man1/geocpset.*
 
 %changelog
+* Sat Aug 09 2014 Rex Dieter <rdieter at fedoraproject.org> 2013.0.0-8
+- update icon/mime scriptlets
+
 * Sat Jun 07 2014 Bruno Postle <bruno at postle.net> - 2013.0.0-7
 - Rebuild for rebuilt libpano13
 


More information about the scm-commits mailing list