[drumstick] update mime scriptlet

Rex Dieter rdieter at fedoraproject.org
Thu Oct 2 18:34:31 UTC 2014


commit fddafe40ffd02397db061a63e9b9b828bd5e56e0
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Thu Oct 2 13:34:22 2014 -0500

    update mime scriptlet

 drumstick.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/drumstick.spec b/drumstick.spec
index c3da95d..b7d7fd1 100644
--- a/drumstick.spec
+++ b/drumstick.spec
@@ -1,7 +1,7 @@
 Summary: C++/Qt4 wrapper around the ALSA library sequencer interface
 Name:    drumstick
 Version: 0.5.0
-Release: 8%{?dist}
+Release: 9%{?dist}
 #define svn svn
 
 Group:   System Environment/Libraries
@@ -95,11 +95,16 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
-update-mime-database %{_datadir}/mime &> /dev/null || :
+touch --no-create %{_datadir}/mime/packages &> /dev/null || :
 
 %postun
 /sbin/ldconfig
+if [ $1 -eq 0 ]; then
 update-mime-database %{_datadir}/mime &> /dev/null || :
+fi
+
+%posttrans
+update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 %post examples
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
@@ -181,6 +186,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/man/man1/drumstick-vpiano.1.gz
 
 %changelog
+* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 0.5.0-9
+- update mime scriptlet
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.5.0-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list