hannes pushed to gretl (f21). "update mime scriptlet"

notifications at fedoraproject.org notifications at fedoraproject.org
Fri Apr 3 06:56:03 UTC 2015


>From a459b0e4c395c1c2c7f807b04404d2f39c8c34ab Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter at math.unl.edu>
Date: Thu, 2 Oct 2014 14:07:39 -0500
Subject: update mime scriptlet


diff --git a/gretl.spec b/gretl.spec
index f9467c2..d9f8c19 100644
--- a/gretl.spec
+++ b/gretl.spec
@@ -1,6 +1,6 @@
 Name: gretl		
 Version: 1.9.92
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: A tool for econometric analysis	
 
 Group: Applications/Engineering
@@ -88,18 +88,20 @@ desktop-file-install						\
 %post 
 /sbin/ldconfig
 /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
 
 %postun 
 /sbin/ldconfig
-/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
 if [ $1 -eq 0 ] ; then
     /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
     /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/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/hicolor &>/dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 
 
@@ -133,6 +135,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 1.9.92-2
+- update mime scriptlet
+
 * Mon Sep 22 2014 Johannes Lips <hannes at fedoraproject.org> - 1.9.92-1
 - Update to 1.9.92
 
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/gretl.git/commit/?h=f21&id=a459b0e4c395c1c2c7f807b04404d2f39c8c34ab


More information about the scm-commits mailing list