Scriptlets replaced with new systemd macros (#850410)
Resolves: rhbz#850410
This commit is contained in:
parent
d47b5d6c52
commit
7efe6ae259
@ -26,7 +26,7 @@
|
|||||||
Summary: A Modern Concurrent Version Control System
|
Summary: A Modern Concurrent Version Control System
|
||||||
Name: subversion
|
Name: subversion
|
||||||
Version: 1.7.8
|
Version: 1.7.8
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://subversion.apache.org/
|
URL: http://subversion.apache.org/
|
||||||
@ -352,24 +352,13 @@ make check-javahl
|
|||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ] ; then
|
%systemd_post svnserve.service
|
||||||
# Initial installation
|
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
%systemd_preun svnserve.service
|
||||||
# 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
|
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
%systemd_postun_with_restart svnserve.service
|
||||||
if [ $1 -ge 1 ] ; then
|
|
||||||
# Package upgrade, not uninstall
|
|
||||||
/bin/systemctl try-restart svnserve.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%triggerun -- subversion < 1.7.3-2
|
%triggerun -- subversion < 1.7.3-2
|
||||||
/usr/bin/systemd-sysv-convert --save svnserve >/dev/null 2>&1 ||:
|
/usr/bin/systemd-sysv-convert --save svnserve >/dev/null 2>&1 ||:
|
||||||
@ -478,6 +467,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%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
|
* Fri Jan 4 2013 Joe Orton <jorton@redhat.com> - 1.7.8-1
|
||||||
- update to 1.7.8
|
- update to 1.7.8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user