Scriptlets replaced with new systemd macros (#850410)

Resolves: rhbz#850410
This commit is contained in:
Joe Orton 2013-01-08 16:32:33 +00:00
parent d47b5d6c52
commit 7efe6ae259

View File

@ -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@redhat.com> - 1.7.8-2
- Scriptlets replaced with new systemd macros (#850410)
* Fri Jan 4 2013 Joe Orton <jorton@redhat.com> - 1.7.8-1
- update to 1.7.8