Remove obsolete scriptlets
References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
8cf3111685
commit
fb73faeaf6
@ -18,7 +18,6 @@ Patch2: psacct-6.6.1-SEGV-when-record-incomplete.patch
|
||||
Patch3: psacct-6.6.4-lastcomm-manpage-pid-twice.patch
|
||||
|
||||
Conflicts: filesystem < 3
|
||||
Requires: /sbin/install-info
|
||||
Requires: coreutils
|
||||
Requires(post): systemd
|
||||
Requires(preun): systemd
|
||||
@ -93,20 +92,12 @@ rm -f %{buildroot}%{_bindir}/last %{buildroot}%{_mandir}/man1/last.1*
|
||||
|
||||
%post
|
||||
%systemd_post psacct.service
|
||||
|
||||
/sbin/install-info %{_infodir}/accounting.info %{_infodir}/dir || :
|
||||
touch /var/account/pacct && chmod 0600 /var/account/pacct
|
||||
|
||||
|
||||
%preun
|
||||
%systemd_preun psacct.service
|
||||
|
||||
if [ $1 -eq 0 ]; then
|
||||
# Package removal, not upgrade
|
||||
/sbin/install-info --delete %{_infodir}/accounting.info %{_infodir}/dir || :
|
||||
fi
|
||||
|
||||
|
||||
%postun
|
||||
%systemd_postun_with_restart psacct.service
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user