From fb73faeaf66ecae01ea3ef474bef7c76e3198738 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 27 Jan 2019 19:40:01 +0100 Subject: [PATCH] Remove obsolete scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- psacct.spec | 9 --------- 1 file changed, 9 deletions(-) diff --git a/psacct.spec b/psacct.spec index af0ba5c..8fd1b20 100644 --- a/psacct.spec +++ b/psacct.spec @@ -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