[ardour] optimize/update scriptlets

Rex Dieter rdieter at fedoraproject.org
Tue Jul 8 19:01:21 UTC 2014


commit 119d3d48dcf879563a4fe201a152e3c3620fe2b8
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Tue Jul 8 14:01:37 2014 -0500

    optimize/update scriptlets

 ardour.spec |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/ardour.spec b/ardour.spec
index d50880e..cb1c985 100644
--- a/ardour.spec
+++ b/ardour.spec
@@ -1,7 +1,7 @@
 Summary:       Multichannel Digital Audio Workstation
 Name:          ardour
 Version:       2.8.16
-Release:       9%{?dist}
+Release:       10%{?dist}
 # No more direct links. Download from
 # http://ardour.org/download
 Source:        ardour-%{version}.tar.bz2
@@ -150,20 +150,23 @@ cat libardour2.lang >> ardour.lang
 cat libgtkmm2ext.lang >> ardour.lang
 
 %post
-touch --no-create %{_datadir}/icons/hicolor &>/dev/null
-update-desktop-database &> /dev/null
-update-mime-database %{_datadir}/mime &> /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
+/sbin/ldconfig
+/usr/bin/update-desktop-database &> /dev/null || :
 if [ $1 -eq 0 ] ; then
-    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
-    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
-update-desktop-database &> /dev/null
-update-mime-database %{_datadir}/mime &> /dev/null || :
 
 %posttrans
-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 -f ardour.lang
@@ -182,6 +185,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_mandir}/ru/man1/ardour.1*
 
 %changelog
+* Tue Jul 08 2014 Rex Dieter <rdieter at fedoraproject.org> 2.8.16-10
+- optimize/update scriptlets
+
 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.8.16-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 


More information about the scm-commits mailing list