[abiword] update scriptlets (mimeinfo mostly)

Rex Dieter rdieter at fedoraproject.org
Tue Jul 8 18:26:23 UTC 2014


commit ba7be8d9b51d25b9aa89088b67a3ed13043dc585
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Tue Jul 8 13:26:38 2014 -0500

    update scriptlets (mimeinfo mostly)

 abiword.spec |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)
---
diff --git a/abiword.spec b/abiword.spec
index 2cb3b55..09bdb79 100644
--- a/abiword.spec
+++ b/abiword.spec
@@ -6,7 +6,7 @@
 Summary: Word processing program
 Name: abiword
 Version: %{majorversion}.%{minorversion}.%{microversion}
-Release: 11%{?dist}
+Release: 12%{?dist}
 Epoch: 1
 Group: Applications/Editors
 License: GPLv2+
@@ -158,21 +158,22 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';'
 find %{buildroot} -name '*.a' -exec rm -f {} ';'
 
 %post
-update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
-update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
-/usr/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
 
 %postun
-update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
-update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :
-
+/usr/bin/update-desktop-database &> /dev/null || :
 if [ $1 -eq 0 ] ; then
-    /usr/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}/icons/hicolor &> /dev/null || :
+    /bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /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/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
+/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
 
 %files
 %{_bindir}/abiword
@@ -205,6 +206,9 @@ fi
 %{python_sitearch}/*
 
 %changelog
+* Tue Jul 08 2014 Rex Dieter <rdieter at fedoraproject.org> 1:3.0.0-12
+- update scriptlets (mimeinfo mostly)
+
 * Mon Jun 30 2014 Jon Ciesla <limburgher at gmail.com> - 1:3.0.0-11
 - Corrected and second patches from Linas Vepstas.
 


More information about the scm-commits mailing list