]> git.pld-linux.org Git - packages/glibc.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:45 +0000 (16:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    glibc.spec -> 1.182

glibc.spec

index 0a6dd4921c0bf48060e63aba0b7e94ab5c1d6b39..5d1ecf875cf3ba981696ae0ddbe79880d7b5afa0 100644 (file)
@@ -476,27 +476,17 @@ done
 %postun memusage -p /sbin/ldconfig
 
 %post devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%fix_info_dir
 
 %postun devel
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%fix_info_dir
 
 %post -n nscd
-/sbin/chkconfig --add nscd
 touch /var/log/nscd && (chown root.root /var/log/nscd ; chmod 640 /var/log/nscd)
-if [ -f /var/lock/subsys/nscd ]; then
-       /etc/rc.d/init.d/nscd restart 1>&2
-else
-       echo "Run \"/etc/rc.d/init.d/nscd start\" to start nscd daemon." 1>&2
-fi
+NAME=nscd; DESC="nscd daemon"; %chkconfig_add
 
 %preun -n nscd
-if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/nscd ]; then
-               /etc/rc.d/init.d/nscd stop 1>&2
-       fi
-       /sbin/chkconfig --del nscd
-fi
+NAME=nscd; %chkconfig_del
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.081039 seconds and 4 git commands to generate.