[irda-utils] .
Dmitry Butskoy
buc at fedoraproject.org
Mon Sep 24 13:53:06 UTC 2012
commit ad266f35063dd43936f7120a31f38caf833385cc
Author: Dmitry Butskoy <Dmitry at Butskoy.name>
Date: Mon Sep 24 17:53:10 2012 +0400
.
irda-utils.spec | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/irda-utils.spec b/irda-utils.spec
index f9db9ee..c64acf8 100644
--- a/irda-utils.spec
+++ b/irda-utils.spec
@@ -1,7 +1,7 @@
Summary: Utilities for infrared communication between devices
Name: irda-utils
Version: 0.9.18
-Release: 15%{?dist}
+Release: 16%{?dist}
Url: http://irda.sourceforge.net
License: GPLv2+
Group: Applications/System
@@ -97,23 +97,15 @@ rm -rf $RPM_BUILD_ROOT
%post
-if [ $1 = 1 ]; then
- /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-fi
+%systemd_post irda.service
%preun
-if [ $1 = 0 ]; then
- /bin/systemctl --no-reload disable irda.service >/dev/null 2>&1 || :
- /bin/systemctl stop irda.service >/dev/null 2>&1 || :
-fi
+%systemd_preun irda.service
%postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-if [ $1 != 0 ]; then
- /bin/systemctl try-restart irda.service >/dev/null 2>&1 || :
-fi
+%systemd_postun_with_restart irda.service
%files
@@ -128,6 +120,9 @@ fi
%changelog
+* Mon Sep 24 2012 Dmitry Butskoy <Dmitry at Butskoy.name> - 0.9.18-16
+- new systemd-rpm macros (#850171)
+
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.18-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
More information about the scm-commits
mailing list