add missing scriptlets
This commit is contained in:
parent
4e1a5b87de
commit
07bbe62dbc
|
@ -1,7 +1,7 @@
|
||||||
Summary: Automount utilities including an updated version of Amd
|
Summary: Automount utilities including an updated version of Amd
|
||||||
Name: am-utils
|
Name: am-utils
|
||||||
Version: 6.1.5
|
Version: 6.1.5
|
||||||
Release: 19%{?dist}
|
Release: 20%{?dist}
|
||||||
License: BSD
|
License: BSD
|
||||||
Epoch: 5
|
Epoch: 5
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
|
@ -29,10 +29,13 @@ Requires: grep
|
||||||
Requires: gawk
|
Requires: gawk
|
||||||
Requires: findutils
|
Requires: findutils
|
||||||
|
|
||||||
Requires(pre): /bin/grep
|
Requires(pre): /bin/grep
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(post): systemd-sysv
|
Requires(post): systemd-sysv
|
||||||
Requires(preun): /sbin/install-info
|
Requires(post): systemd-units
|
||||||
|
Requires(preun): systemd-units
|
||||||
|
Requires(postun): systemd-units
|
||||||
|
Requires(preun): /sbin/install-info
|
||||||
|
|
||||||
# 203193 - tmpfile usage
|
# 203193 - tmpfile usage
|
||||||
Patch1: am-utils-6.1.5-rmtab-temp.patch
|
Patch1: am-utils-6.1.5-rmtab-temp.patch
|
||||||
|
@ -123,9 +126,6 @@ for I in %{_libdir}/libamu.a \
|
||||||
rm -f $RPM_BUILD_ROOT$I
|
rm -f $RPM_BUILD_ROOT$I
|
||||||
done
|
done
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
|
|
||||||
%define __find_requires %{_builddir}/%{name}-%{version}/find-requires
|
%define __find_requires %{_builddir}/%{name}-%{version}/find-requires
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
@ -142,18 +142,31 @@ fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
if [ $1 -eq 1 ] ; then
|
||||||
|
# Initial installation
|
||||||
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
if [ -f %{_infodir}/am-utils.info.gz ]; then
|
if [ -f %{_infodir}/am-utils.info.gz ]; then
|
||||||
/sbin/install-info %{_infodir}/am-utils.info.gz %{_infodir}/dir || :
|
/sbin/install-info %{_infodir}/am-utils.info.gz %{_infodir}/dir || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
|
# Package removal, not upgrade
|
||||||
|
/bin/systemctl --no-reload disable amd.service > /dev/null 2>&1 || :
|
||||||
|
/bin/systemctl stop amd.service > /dev/null 2>&1 || :
|
||||||
if [ -f %{_infodir}/am-utils.info.gz ]; then
|
if [ -f %{_infodir}/am-utils.info.gz ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/am-utils.info.gz %{_infodir}/dir || :
|
/sbin/install-info --delete %{_infodir}/am-utils.info.gz %{_infodir}/dir || :
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun
|
||||||
|
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||||
|
if [ $1 -ge 1 ] ; then
|
||||||
|
# Package upgrade, not uninstall
|
||||||
|
/bin/systemctl try-restart amd.service >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
|
/sbin/ldconfig
|
||||||
|
|
||||||
%triggerun -- am-utils < 6.1.5-19
|
%triggerun -- am-utils < 6.1.5-19
|
||||||
# Save the current service runlevel info
|
# Save the current service runlevel info
|
||||||
|
@ -182,6 +195,9 @@ fi
|
||||||
%{_libdir}/libamu.so*
|
%{_libdir}/libamu.so*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 09 2011 Tom Callaway <spot@fedoraproject.org> - 5:6.1.5-20
|
||||||
|
- add missing systemd scriptlets
|
||||||
|
|
||||||
* Thu Sep 08 2011 Tom Callaway <spot@fedoraproject.org> - 5:6.1.5-19
|
* Thu Sep 08 2011 Tom Callaway <spot@fedoraproject.org> - 5:6.1.5-19
|
||||||
- convert from sysvinit to systemd
|
- convert from sysvinit to systemd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue