Просмотр исходного кода

build: make RDMA support an RPM build conditional

Enable RDMA in RPM builds by default to maintain the previous behavior
(which always included --enable-rdma in the %configure invocation).

Signed-off-by: Florian Haas <florian.haas@linbit.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
(cherry picked from commit 17fb819af1168d2d271a4d49a3f2536addcb80ed)
Florian Haas 14 лет назад
Родитель
Сommit
fda9a8e61b
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      corosync.spec.in

+ 5 - 0
corosync.spec.in

@@ -10,6 +10,7 @@
 %bcond_with monitoring
 %bcond_with snmp
 %bcond_with dbus
+%bcond_without rdma
 
 Name: corosync
 Summary: The Corosync Cluster Engine and Application Programming Interfaces
@@ -36,7 +37,9 @@ Conflicts: openais <= 0.89, openais-devel <= 0.89
 BuildRequires: autoconf automake
 %endif
 BuildRequires: nss-devel
+%if %{with rdma}
 BuildRequires: libibverbs-devel librdmacm-devel
+%endif
 %if %{with snmp}
 BuildRequires: net-snmp-devel
 %endif
@@ -75,7 +78,9 @@ export rdmacm_LIBS=-lrdmacm \
 %if %{with dbus}
 	--enable-dbus \
 %endif
+%if %{with rdma}
 	--enable-rdma \
+%endif
 	--with-initddir=%{_initrddir}
 
 make %{_smp_mflags}