From 583eb6aea58f2afe1e9f4956c68b9ce037e82525 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Thu, 10 Jun 2010 01:18:27 +0000 Subject: [PATCH] changes to corosync.spec.in template: Move configure to %build section don't set corosync's init levels during an upgrade of the corosync package Patch from Vadym Chepkov git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2943 fd59a12c-fef9-0310-b244-a6a79926bd2f --- corosync.spec.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/corosync.spec.in b/corosync.spec.in index c21686ed..45f68922 100644 --- a/corosync.spec.in +++ b/corosync.spec.in @@ -38,6 +38,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) %prep %setup -q -n %{name}-%{version} +%build %if %{buildtrunk} ./autogen.sh %endif @@ -54,7 +55,6 @@ export rdmacm_LIBS=-lrdmacm \ --enable-rdma \ --with-initddir=%{_initrddir} -%build make %{_smp_mflags} %install @@ -76,7 +76,9 @@ This package contains the Corosync Cluster Engine Executive, several default APIs and libraries, default configuration files, and an init script. %post -/sbin/chkconfig --add corosync || : +if [ $1 -eq 1 ]; then + /sbin/chkconfig --add corosync || : +fi %preun if [ $1 -eq 0 ]; then