[ipxripd/f18] .
Dmitry Butskoy
buc at fedoraproject.org
Mon Sep 24 13:47:25 UTC 2012
commit b0b281aac324a80fc9c0d68dda5e3c0828eeda74
Author: Dmitry Butskoy <Dmitry at Butskoy.name>
Date: Mon Sep 24 17:47:34 2012 +0400
.
ipxripd.spec | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/ipxripd.spec b/ipxripd.spec
index 1da822d..46dbb75 100644
--- a/ipxripd.spec
+++ b/ipxripd.spec
@@ -1,7 +1,7 @@
Summary: IPX RIP/SAP daemon - routing for IPX networks
Name: ipxripd
Version: 0.8
-Release: 11%{?dist}
+Release: 12%{?dist}
Group: System Environment/Daemons
License: GPLv2+
URL: ftp://ftp.ibiblio.org/pub/Linux/system/filesystems/ncpfs/
@@ -55,23 +55,15 @@ install -p -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/ipxd.service
%post
-if [ $1 = 1 ]; then
- /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-fi
+%systemd_post ipxd.service
%preun
-if [ $1 = 0 ]; then
- /bin/systemctl --no-reload disable ipxd.service >/dev/null 2>&1 || :
- /bin/systemctl stop ipxd.service >/dev/null 2>&1 || :
-fi
+%systemd_preun ipxd.service
%postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-if [ $1 != 0 ]; then
- /bin/systemctl try-restart ipxd.service >/dev/null 2>&1 || :
-fi
+%systemd_postun_with_restart ipxd.service
@@ -89,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Sep 24 2012 Dmitry Butskoy <Dmitry at Butskoy.name> - 0.8-12
+- new sustemd-rpm macros (#850169)
+
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list