Remove obsolete scriptlets

References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-01-27 15:24:13 +01:00
parent c9c51b7071
commit 7867648970
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

View File

@ -38,12 +38,10 @@ Requires: libtirpc
Requires: libnsl2
Requires(pre): /usr/bin/grep
Requires(post): /sbin/install-info
Requires(post): systemd-sysv
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Requires(preun): /sbin/install-info
# Fix problems with possible future libtool rebases (#1181698)
Patch1: am-utils-6.2-dont-include-auto-generated-macros-in-aclinlude_m4.patch
@ -215,20 +213,9 @@ fi
/sbin/ldconfig
%systemd_post amd.service
if [ -f %{_infodir}/am-utils.info.gz ]; then
/sbin/install-info %{_infodir}/am-utils.info.gz %{_infodir}/dir || :
fi
%preun
%systemd_preun amd.service
if [ $1 -eq 0 ]; then
# Package removal, not upgrade
if [ -f %{_infodir}/am-utils.info.gz ]; then
/sbin/install-info --delete %{_infodir}/am-utils.info.gz %{_infodir}/dir || :
fi
fi
%postun
%systemd_postun_with_restart amd.service