[nspr] Avoid %post/un shell invocations and dependencies.

Ville Skyttä scop at fedoraproject.org
Fri Sep 9 04:58:19 UTC 2011


commit dc4ad69f3b1d97a61e68cea6613fb27bea0c1781
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Thu Sep 8 23:59:26 2011 +0300

    Avoid %post/un shell invocations and dependencies.

 nspr.spec |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/nspr.spec b/nspr.spec
index 7cd10a4..5974b20 100644
--- a/nspr.spec
+++ b/nspr.spec
@@ -1,7 +1,7 @@
 Summary:        Netscape Portable Runtime
 Name:           nspr
 Version:        4.8.9
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 URL:            http://www.mozilla.org/projects/nspr/
 Group:          System Environment/Libraries
@@ -124,11 +124,9 @@ done
 %clean
 %{__rm} -Rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig >/dev/null 2>/dev/null
+%post -p /sbin/ldconfig
 
-%postun
-/sbin/ldconfig >/dev/null 2>/dev/null
+%postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
@@ -146,6 +144,9 @@ done
 %{_bindir}/nspr-config
 
 %changelog
+* Thu Sep  8 2011 Ville Skyttä <ville.skytta at iki.fi> - 4.8.9-2
+- Avoid %%post/un shell invocations and dependencies.
+
 * Tue Aug 09 2011 Elio Maldonado <emaldona at redhat.com> - 4.8.9-1
 - Update to NSPR_4_8_9_RTM
 


More information about the scm-commits mailing list