[fedmsg] Disable sysv-specific %preun sections for Fedora.

Ralph Bean ralph at fedoraproject.org
Sun Jan 27 23:24:56 UTC 2013


commit 7752001cb6215d068bc81f89fb57345a0487ae16
Author: Ralph Bean <rbean at redhat.com>
Date:   Sun Jan 27 18:24:44 2013 -0500

    Disable sysv-specific %preun sections for Fedora.

 fedmsg.spec |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/fedmsg.spec b/fedmsg.spec
index 5a81c4f..60fae71 100644
--- a/fedmsg.spec
+++ b/fedmsg.spec
@@ -5,7 +5,7 @@
 
 Name:           fedmsg
 Version:        0.6.6
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Tools for Fedora Infrastructure real-time messaging
 Group:          Applications/Internet
 License:        LGPLv2+
@@ -182,6 +182,7 @@ PYTHONPATH=$(pwd) python setup.py test
                      -c 'FedMsg' -g %{modname} %{modname} &>/dev/null || :
 
 
+%if 0%{?rhel} && 0%{?rhel} <= 6
 %preun hub
 if [ $1 -eq 0 ]; then
     /sbin/service fedmsg-hub stop >/dev/null 2>&1
@@ -211,6 +212,7 @@ if [ $1 -eq 0 ]; then
     /sbin/service fedmsg-gateway stop >/dev/null 2>&1
     /sbin/chkconfig --del fedmsg-gateway
 fi
+%endif
 
 %files
 %doc doc/ README.rst LICENSE
@@ -275,6 +277,9 @@ fi
 %endif
 
 %changelog
+* Sun Jan 27 2013 Ralph Bean <rbean at redhat.com> - 0.6.6-2
+- Disable sysv %%preun sections for Fedora
+
 * Mon Jan 21 2013 Ralph Bean <rbean at redhat.com> - 0.6.6-1
 - Typofix.
 - Support loading remote CA cert for end-user message validation.


More information about the scm-commits mailing list