Use new systemd-rpm macros (#850168).
This commit is contained in:
parent
6ae9483552
commit
8caf08e2cf
23
ipvsadm.spec
23
ipvsadm.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: Utility to administer the Linux Virtual Server
|
Summary: Utility to administer the Linux Virtual Server
|
||||||
Name: ipvsadm
|
Name: ipvsadm
|
||||||
Version: 1.26
|
Version: 1.26
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
URL: http://www.linuxvirtualserver.org/software/ipvs.html
|
URL: http://www.linuxvirtualserver.org/software/ipvs.html
|
||||||
@ -51,24 +51,14 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
%systemd_post ipvsadm.service
|
||||||
# Initial installation
|
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ] ; then
|
%systemd_preun ipvsadm.service
|
||||||
# Package removal, not upgrade
|
|
||||||
/bin/systemctl --no-reload disable ipvsadm.service > /dev/null 2>&1 || :
|
|
||||||
/bin/systemctl stop ipvsadm.service > /dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart ipvsadm.service
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
# Package upgrade, not uninstall
|
|
||||||
/bin/systemctl try-restart ipvsadm.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%triggerun -- ipvsadm < 1.26-4
|
%triggerun -- ipvsadm < 1.26-4
|
||||||
# Save the current service runlevel info
|
# Save the current service runlevel info
|
||||||
@ -94,6 +84,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 20 2013 Ryan O'Hara <rohara@redhat.com> - 1.26-8
|
||||||
|
- Use new systemd-rpm macros in ipvsadm spec file (#850168).
|
||||||
|
|
||||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-7
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.26-7
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user