SPECS: cpuinfo.spec - ldconfig on %post/%postun is quite sufficent

glen glen at pld-linux.org
Sat Apr 15 13:23:18 CEST 2006


Author: glen                         Date: Sat Apr 15 11:23:18 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- ldconfig on %post/%postun is quite sufficent

---- Files affected:
SPECS:
   cpuinfo.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/cpuinfo.spec
diff -u SPECS/cpuinfo.spec:1.2 SPECS/cpuinfo.spec:1.3
--- SPECS/cpuinfo.spec:1.2	Sat Apr 15 13:21:44 2006
+++ SPECS/cpuinfo.spec	Sat Apr 15 13:23:13 2006
@@ -1,6 +1,5 @@
 # $Revision$, $Date$
-
-Summary:	An applet to show CPU temperature and frequency.
+Summary:	An applet to show CPU temperature and frequency
 Summary(pl):	Aplet pokazujący temperaturę i frekwencję procesora.
 Name:		cpuinfo
 Version:	0.4.2
@@ -12,11 +11,8 @@
 URL:		http://www.kde-look.org/content/show.php??content=33257
 BuildRequires:	autoconf
 BuildRequires:	automake
-BuildRequires:	libstdc++-devel
 BuildRequires:	kdelibs-devel
-Requires(postun):	/sbin/ldconfig
-Requires(pre,post):	/sbin/ldconfig
-Requires(preun):	/sbin/ldconfig
+BuildRequires:	libstdc++-devel
 Requires:	kdelibs
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -43,17 +39,8 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%pre
-/sbin/ldconfig
-
-%post
-/sbin/ldconfig
-
-%preun
-/sbin/ldconfig
-
-%postun
-/sbin/ldconfig
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
@@ -69,6 +56,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/04/15 11:23:13  glen
+- ldconfig on %post/%postun is quite sufficent
+
 Revision 1.2  2006/04/15 11:21:44  darekr
 - BR: gcc-c++ -> libstdc++-devel
 
@@ -77,5 +67,3 @@
 - rel 0.1
 - files needs to be completed
 - check BR
-
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cpuinfo.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list