[subversion] Scriptlets replaced with new systemd macros (#850410)

jorton jorton at fedoraproject.org
Tue Jan 8 16:32:40 UTC 2013


commit 7efe6ae2591ae8801d0eca897c4e0ab04a0da3a5
Author: Joe Orton <jorton at redhat.com>
Date:   Tue Jan 8 16:32:33 2013 +0000

    Scriptlets replaced with new systemd macros (#850410)
    
    Resolves: rhbz#850410

 subversion.spec |   22 +++++++---------------
 1 files changed, 7 insertions(+), 15 deletions(-)
---
diff --git a/subversion.spec b/subversion.spec
index ae62719..2389bb9 100644
--- a/subversion.spec
+++ b/subversion.spec
@@ -26,7 +26,7 @@
 Summary: A Modern Concurrent Version Control System
 Name: subversion
 Version: 1.7.8
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: ASL 2.0
 Group: Development/Tools
 URL: http://subversion.apache.org/
@@ -352,24 +352,13 @@ make check-javahl
 rm -rf ${RPM_BUILD_ROOT}
 
 %post
-if [ $1 -eq 1 ] ; then 
-    # Initial installation 
-    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
-fi
+%systemd_post svnserve.service
 
 %preun
-if [ $1 = 0 ]; then
-    # Package removal, not upgrade
-    /bin/systemctl --no-reload disable svnserve.service > /dev/null 2>&1 || :
-    /bin/systemctl stop svnserve.service > /dev/null 2>&1 || :
-fi
+%systemd_preun svnserve.service
 
 %postun
-/bin/systemctl daemon-reload >/dev/null 2>&1 || :
-if [ $1 -ge 1 ] ; then
-    # Package upgrade, not uninstall
-    /bin/systemctl try-restart svnserve.service >/dev/null 2>&1 || :
-fi
+%systemd_postun_with_restart svnserve.service
 
 %triggerun -- subversion < 1.7.3-2
 /usr/bin/systemd-sysv-convert --save svnserve >/dev/null 2>&1 ||:
@@ -478,6 +467,9 @@ fi
 %endif
 
 %changelog
+* Wed Aug 22 2012 Lukáš Nykrýn <lnykryn at redhat.com> - 1.7.8-2
+- Scriptlets replaced with new systemd macros (#850410)
+
 * Fri Jan  4 2013 Joe Orton <jorton at redhat.com> - 1.7.8-1
 - update to 1.7.8
 


More information about the scm-commits mailing list