- backou change to Requires(xxxxx) in favour of explicit utility names.
This commit is contained in:
parent
d0051c1953
commit
0c2ea484ad
10
autofs.spec
10
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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user