[bootparamd/f18] Use %systemd macros (#850017)
Lukáš Nykrýn
lnykryn at fedoraproject.org
Wed Aug 22 06:48:44 UTC 2012
commit 5dc4eb39adbee46abb6a43024c912726bda55821
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Wed Aug 22 08:45:53 2012 +0200
Use %systemd macros (#850017)
bootparamd.spec | 22 +++++++---------------
1 files changed, 7 insertions(+), 15 deletions(-)
---
diff --git a/bootparamd.spec b/bootparamd.spec
index cb469fc..3a07113 100644
--- a/bootparamd.spec
+++ b/bootparamd.spec
@@ -1,7 +1,7 @@
Summary: A server process which provides boot information to diskless clients
Name: bootparamd
Version: 0.17
-Release: 35%{?dist}
+Release: 36%{?dist}
License: BSD
Group: System Environment/Daemons
Source: ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
@@ -81,24 +81,13 @@ make INSTALLROOT=%{buildroot} install
rm -rf %{buildroot}
%post
-if [ "${1}" = "1" ]
-then # Initial installation.
- /bin/systemctl daemon-reload > /dev/null 2>&1 || :
-fi
+%systemd_post bootparamd.service
%preun
-if [ $1 = 0 ]; then # Package removal, not upgrade.
- /bin/systemctl --no-reload disable bootparamd.service > /dev/null 2>&1 || :
- /bin/systemctl stop bootparamd.service > /dev/null 2>&1 || :
-fi
+%systemd_preun bootparamd.service
%postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-if [ $1 -ge 1 ] ; then
- # Package upgrade, not uninstall
- /bin/systemctl try-restart bootparamd.service >/dev/null 2>&1 || :
-fi
-
+%systemd_postun_with_restart bootparamd.service
%triggerun -- bootparamd < 0.17-31
%{_bindir}/systemd-sysv-convert --save bootparamd > /dev/null 2>&1 || :
@@ -115,6 +104,9 @@ fi
%{_unitdir}/*
%changelog
+* Wed Aug 22 2012 Lukáš Nykrýn <lnykryn at redhat.com> - 0.17-36
+- Use %systemd macros (#850017)
+
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.17-35
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list