[gnome-utils/f14/master] fix a scriptlet issue

Matthias Clasen mclasen at fedoraproject.org
Wed Sep 29 16:42:53 UTC 2010


commit 9ee94bad64bafabd454523905f684512f3fd17e4
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Wed Sep 29 12:42:01 2010 -0400

    fix a scriptlet issue

 gnome-utils.spec |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gnome-utils.spec b/gnome-utils.spec
index bb5e659..4dc128d 100644
--- a/gnome-utils.spec
+++ b/gnome-utils.spec
@@ -9,7 +9,7 @@
 
 Name:           gnome-utils
 Version:        2.32.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Epoch:          1
 Summary:        GNOME utility programs
 
@@ -189,7 +189,6 @@ cat gnome-search-tool.lang >> gnome-utils-2.0.lang
 
 
 %post
-/sbin/ldconfig
 update-desktop-database -q
 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 gconftool-2 --makefile-install-rule \
@@ -221,7 +220,6 @@ if [ "$1" -eq 0 ]; then
 fi
 
 %postun
-/sbin/ldconfig
 update-desktop-database -q
 if [ $1 -eq 0 ]; then
   touch --no-create %{_datadir}/icons/hicolor >&/dev/null || :
@@ -231,6 +229,10 @@ fi
 %posttrans
 gtk-update-icon-cache -q %{_datadir}/icons/hicolor >&/dev/null || :
 
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+
 %post -n gnome-system-log
 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
 gconftool-2 --makefile-install-rule \
@@ -309,6 +311,10 @@ fi
 %{_mandir}/man1/gnome-system-log.1.gz
 
 %changelog
+* Wed Sep 29 2010 Matthias Clasen <mclasen at redhat.com> - 1:2.32.0-2
+- Move ldconfig calls to -libs %%/%%postun, where they
+  belong (thanks to Yanko Kaneti for spotting this)
+
 * Wed Sep 29 2010 Matthias Clasen <mclasen at redhat.com> - 1:2.32.0-1
 - Update to 2.32.0
 


More information about the scm-commits mailing list