[gogui] update icon/mime scriptlets

Rex Dieter rdieter at fedoraproject.org
Thu Oct 2 18:59:07 UTC 2014


commit 121a82c5abbf57d3a7f84d8e30d5ac4f2d4dae9c
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Thu Oct 2 13:58:59 2014 -0500

    update icon/mime scriptlets

 gogui.spec |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/gogui.spec b/gogui.spec
index 9837d98..d490fe3 100644
--- a/gogui.spec
+++ b/gogui.spec
@@ -1,6 +1,6 @@
 Name:		gogui
 Version:	1.4.9
-Release:	2%{?dist}
+Release:	3%{?dist}
 Summary:	Graphical user interface to programs that play the board game Go
 
 License:	GPLv3
@@ -92,18 +92,23 @@ install -pm 644 config/%{name}.thumbnailer $RPM_BUILD_ROOT%{_datadir}/thumbnaile
 %jpackage_script net.sf.gogui.tools.twogtp.Main "" "" %{name}/%{name}-twogtp %{name}-twogtp true
 
 %post
-%{_bindir}/update-desktop-database &> /dev/null || :
-%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
 /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
 
 %postun
-%{_bindir}/update-desktop-database &> /dev/null || :
-%{_bindir}/update-mime-database %{_datadir}/mime &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
 if [ $1 -eq 0 ] ; then
     /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
-    %{_bindir}/gtk-update-icon-cache %{_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
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
+
 %files
 %{_javadir}/%{name}/
 %{_bindir}/gogui*
@@ -122,6 +127,9 @@ fi
 %doc COPYING.html
 
 %changelog
+* Thu Oct 02 2014 Rex Dieter <rdieter at fedoraproject.org> 1.4.9-3
+- update icon/mime scriptlets
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.9-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list