]> git.pld-linux.org Git - packages/am-utils.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:40 +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:
    am-utils.spec -> 1.17

am-utils.spec

index 1710e532157b4289eb77dd2ca4247bc77b0d1e14..8a7ae6252009ed0b3650ef5ecef6d8ef392705b6 100644 (file)
@@ -73,15 +73,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/ldconfig
-/sbin/chkconfig --add amd
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+NAME=amd; %chkconfig_post
+%fix_info_dir
+
+%preun
+NAME=amd; %chkconfig_preun
 
 %postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%fix_info_dir
 /sbin/ldconfig
-if [ $1 = 0 ]; then
-    /sbin/chkconfig --del amd
-fi
 
 %files
 %defattr(644,root,root,755)
This page took 0.04643 seconds and 4 git commands to generate.