- reverting last change: removing new macros from %p{re,ost}{,un}
authorsaq <saq@pld-linux.org>
Thu, 26 Jul 2001 05:42:03 +0000 (05:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    am-utils.spec -> 1.19

am-utils.spec

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