[drumkv1] update mime scriptlet

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


commit 60383be85cab4f12b2c6edd3b457460a36dedc40
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Thu Oct 2 13:31:27 2014 -0500

    update mime scriptlet

 drumkv1.spec |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/drumkv1.spec b/drumkv1.spec
index 5cbbd78..7517359 100644
--- a/drumkv1.spec
+++ b/drumkv1.spec
@@ -1,7 +1,7 @@
 Summary:       An old-school drum-kit sampler
 Name:          drumkv1
 Version:       0.5.1
-Release:       1%{?dist}
+Release:       2%{?dist}
 License:       GPLv2+
 Group:         Applications/Multimedia
 URL:           http://sourceforge.net/projects/%{name}
@@ -50,17 +50,18 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
 
 %post
 /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
 if [ $1 -eq 0 ] ; then
     /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
     /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+    /usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
 fi
-/usr/bin/update-mime-database %{_datadir}/mime  >& /dev/null ||:
 
 %posttrans
 /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 %files 
 %doc COPYING AUTHORS README ChangeLog
@@ -75,6 +76,9 @@ fi
 %{_libdir}/lv2/%{name}.lv2/
 
 %changelog
+* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 0.5.1-2
+- update mime scriptlet
+
 * Thu Sep 25 2014 Brendan Jones <brendan.jones.it at gmail.com> 0.5.1-1
 - Update to 0.5.1
 


More information about the scm-commits mailing list