From 0c2ea484ad968587bd3101fcd5817f704e2c277d Mon Sep 17 00:00:00 2001 From: ikent Date: Fri, 9 Feb 2007 08:09:42 +0000 Subject: [PATCH] - backou change to Requires(xxxxx) in favour of explicit utility names. --- autofs.spec | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/autofs.spec b/autofs.spec index d1d8565..c04e7d7 100644 --- a/autofs.spec +++ b/autofs.spec @@ -22,10 +22,10 @@ Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: autoconf, hesiod-devel, openldap-devel, bison, flex, libxml2-devel, cyrus-sasl-devel, openssl-devel Conflicts: kernel < 2.6.17 Requires: bash mktemp sed gawk textutils sh-utils grep /bin/ps -Requires(post): chkconfig +Requires(post): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service -Requires(postun): chkconfig +Requires(postun): /sbin/chkconfig Obsoletes: autofs-ldap Summary(de): autofs daemon Summary(fr): démon autofs @@ -93,7 +93,7 @@ install -m 644 redhat/autofs.sysconfig $RPM_BUILD_ROOT/etc/sysconfig/autofs rm -rf $RPM_BUILD_ROOT %post -chkconfig --add autofs +/sbin/chkconfig --add autofs %postun if [ $1 -ge 1 ] ; then @@ -103,7 +103,7 @@ fi %preun if [ "$1" = 0 ] ; then /sbin/service autofs stop > /dev/null 2>&1 || : - chkconfig --del autofs + /sbin/chkconfig --del autofs fi %files @@ -125,8 +125,6 @@ fi - make use of spaces and tabs in spec file consistent. - escape embedded macro text in %%changelog. - eliminate redundant %%version and %%release. -- remove directory component from entries in Requires: and - scriplets where possible. - remove redundant conditional check from %%clean. - remove redundant exit from %%preun. - correct %%defattr spec.