Переглянути джерело

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
Steven Dake 15 роки тому
батько
коміт
583eb6aea5
1 змінених файлів з 4 додано та 2 видалено
  1. 4 2
      corosync.spec.in

+ 4 - 2
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