[audacious] Add absolute paths to commands in scriptlets.

Michael Schwendt mschwendt at fedoraproject.org
Mon Aug 26 21:47:38 UTC 2013


commit bd958d189fc735e9d5196ae81dfc2393f5d225d3
Author: Michael Schwendt <mschwendt at fedoraproject.org>
Date:   Mon Aug 26 23:47:26 2013 +0200

    Add absolute paths to commands in scriptlets.
    
    - Move developer HTML documentation into new noarch audacious-doc
      subpackage.

 audacious.spec |   32 ++++++++++++++++++++++++--------
 1 files changed, 24 insertions(+), 8 deletions(-)
---
diff --git a/audacious.spec b/audacious.spec
index 233839e..12ca664 100644
--- a/audacious.spec
+++ b/audacious.spec
@@ -8,7 +8,7 @@
 
 Name: audacious
 Version: 3.4
-Release: 2%{?dist}
+Release: 3%{?dist}
 
 License: BSD
 Summary: Advanced audio player
@@ -85,6 +85,16 @@ Requires: dbus-glib-devel%{?_isa}
 Files needed when building software for the Audacious audio player.
 
 
+%package doc
+Summary: Documentation files for the Audacious audio player
+Group: Documentation
+BuildArch: noarch
+
+%description doc
+Extra documentation files for the Audacious audio player, such as
+generated documentation for developers.
+
+
 %prep
 %setup -q -n %{name}-%{tar_ver}
 
@@ -118,22 +128,22 @@ desktop-file-install  \
 
 
 %post
-update-desktop-database &> /dev/null || :
-touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 
 %postun
 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
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 fi
-update-desktop-database &> /dev/null || :
+/usr/bin/update-desktop-database &> /dev/null || :
 
 %post libs -p /sbin/ldconfig
 
 %postun libs -p /sbin/ldconfig
 
 %posttrans
-gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %files -f %{name}.lang
@@ -152,15 +162,21 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_libdir}/*.so.*
 
 %files devel
-%doc doc/html
 %{_includedir}/audacious/
 %{_includedir}/libaudcore/
 %{_includedir}/libaudgui/
 %{_libdir}/*.so
 %{_libdir}/pkgconfig/*.pc
 
+%files doc
+%doc doc/html/
 
 %changelog
+* Mon Aug 26 2013 Michael Schwendt <mschwendt at fedoraproject.org> - 3.4-3
+- Add absolute paths to commands in scriptlets.
+- Move developer HTML documentation into new noarch audacious-doc
+  subpackage.
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.4-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list