[newscache] .

Dmitry Butskoy buc at fedoraproject.org
Mon Sep 24 13:59:44 UTC 2012


commit 0c794bda02d3cd428a85400f27f9795e474ce0cb
Author: Dmitry Butskoy <Dmitry at Butskoy.name>
Date:   Mon Sep 24 17:59:50 2012 +0400

    .

 newscache.spec |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/newscache.spec b/newscache.spec
index 7c1b6fd..7e4d5a0 100644
--- a/newscache.spec
+++ b/newscache.spec
@@ -4,7 +4,7 @@
 Name: 		newscache
 Summary: 	Free cache server for USENET News
 Version: 	1.2
-Release: 	0.16.rc6%{?dist}
+Release: 	0.17.rc6%{?dist}
 Group: 		System Environment/Daemons
 License:	GPLv2+
 URL:		http://www.linuxhacker.at/newscache/
@@ -125,24 +125,15 @@ exit 0
 
 
 %post
-
-if [ $1 = 1 ]; then
-    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-fi
+%systemd_post %{name}.service
 
 
 %preun
-if [ $1 = 0 ]; then
-    /bin/systemctl --no-reload disable %{name}.service >/dev/null 2>&1 || :
-    /bin/systemctl stop %{name}.service >/dev/null 2>&1 || :
-fi
+%systemd_preun %{name}.service
 
 
 %postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-if [ $1 != 0 ]; then
-    /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
-fi
+%systemd_postun_with_restart %{name}.service
 
 
 %clean
@@ -165,6 +156,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Sep 24 2012 Dmitry Butskoy <Dmitry at Butskoy.name> - 1.2-0.17.rc6
+- new systemd_rpm macros (#850226)
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.2-0.16.rc6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list