rpms/spectrum/devel spectrum.spec,1.3,1.4
Matej Cepl
mcepl at fedoraproject.org
Wed Jul 21 13:59:52 UTC 2010
Author: mcepl
Update of /cvs/pkgs/rpms/spectrum/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv12326
Modified Files:
spectrum.spec
Log Message:
Restart server on upgrade.
Index: spectrum.spec
===================================================================
RCS file: /cvs/pkgs/rpms/spectrum/devel/spectrum.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- spectrum.spec 13 Jul 2010 18:52:51 -0000 1.3
+++ spectrum.spec 21 Jul 2010 13:59:52 -0000 1.4
@@ -30,6 +30,7 @@ Requires: logrotate
Requires: python-xmpp
Requires(pre): shadow-utils
Requires(preun): initscripts, chkconfig
+Requires(postun): initscripts
Requires(post): chkconfig
%if 0%{?rhel} <= 5 && 0%{?fedora} < 7
ExcludeArch: ppc
@@ -119,6 +120,12 @@ if [ $1 = 0 ]; then
/sbin/chkconfig --del spectrum
fi
+%postun
+if [ "$1" -ge "1" ] ; then
+ /sbin/service spectrum condrestart >/dev/null 2>&1 || :
+fi
+
+
%check
./spectrum_tests
More information about the scm-commits
mailing list