[scratch] add mime scriptlets, fix icon scriptlets

Rex Dieter rdieter at fedoraproject.org
Thu Oct 2 21:30:49 UTC 2014


commit 6336990e079048de0e1647cdc36dbacd2cc1ecdc
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Thu Oct 2 16:30:43 2014 -0500

    add mime scriptlets, fix icon scriptlets

 scratch.spec |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/scratch.spec b/scratch.spec
index 3353c59..cb2caea 100644
--- a/scratch.spec
+++ b/scratch.spec
@@ -1,6 +1,6 @@
 Name:           scratch
 Version:        1.4.0.7
-Release:        7%{?dist}
+Release:        8%{?dist}
 Summary:        Programming language learning environment for stories, games, music and art
 
 Group:          Development/Languages
@@ -170,15 +170,19 @@ install -m 644 src/%{name}.xml %{buildroot}%{_datadir}/mime/packages/
 
 %post
 /bin/touch --no-create %{_datadir}/icons/hicolor &>/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/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 -f %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 
 %clean
@@ -228,6 +232,9 @@ rm -rf %{buildroot}
 
 
 %changelog
+* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 1.4.0.7-8
+- add mime scriptlets, fix icon scriptlets
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.0.7-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list