|
@@ -32,6 +32,7 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
%prep
|
|
%prep
|
|
|
%setup -q -n %{name}-%{version}
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
+%build
|
|
|
%if %{buildtrunk}
|
|
%if %{buildtrunk}
|
|
|
./autogen.sh
|
|
./autogen.sh
|
|
|
%endif
|
|
%endif
|
|
@@ -45,7 +46,6 @@ export rdmacm_LIBS=-lrdmacm \
|
|
|
--enable-rdma \
|
|
--enable-rdma \
|
|
|
--with-initddir=%{_initddir}
|
|
--with-initddir=%{_initddir}
|
|
|
|
|
|
|
|
-%build
|
|
|
|
|
make %{_smp_mflags}
|
|
make %{_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -67,7 +67,9 @@ This package contains the Corosync Cluster Engine Executive, several default
|
|
|
APIs and libraries, default configuration files, and an init script.
|
|
APIs and libraries, default configuration files, and an init script.
|
|
|
|
|
|
|
|
%post
|
|
%post
|
|
|
-/sbin/chkconfig --add corosync || :
|
|
|
|
|
|
|
+if [ $1 -eq 1 ]; then
|
|
|
|
|
+ /sbin/chkconfig --add corosync || :
|
|
|
|
|
+fi
|
|
|
|
|
|
|
|
%preun
|
|
%preun
|
|
|
if [ $1 -eq 0 ]; then
|
|
if [ $1 -eq 0 ]; then
|