From c505993ecb767f5f3cebd4b0e48daa02b52a19ab Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 5 Sep 2011 09:16:35 -0700 Subject: [PATCH] Allow conditional rpmbuilds of NSS feature NSS is currently non-conditional. Allow nss to be build conditonally. Signed-off-by: Steven Dake Reviewed-by: Angus Salkeld --- corosync.spec.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/corosync.spec.in b/corosync.spec.in index c9c5b338..b06bfe9d 100644 --- a/corosync.spec.in +++ b/corosync.spec.in @@ -12,6 +12,7 @@ %bcond_with dbus %bcond_with rdma %bcond_with systemd +%bcond_with nss Name: corosync Summary: The Corosync Cluster Engine and Application Programming Interfaces @@ -34,10 +35,13 @@ Conflicts: openais <= 0.89, openais-devel <= 0.89 %define buildtrunk 0 %{?_with_buildtrunk: %define buildtrunk 1} +BuildRequires: libqb-devel %if %{buildtrunk} BuildRequires: autoconf automake %endif -BuildRequires: nss-devel libqb-devel +%if %{with nss} +BuildRequires: nss-devel +%endif %if %{with rdma} BuildRequires: libibverbs-devel librdmacm-devel %endif @@ -68,7 +72,11 @@ export rdmacm_CFLAGS=-I/usr/include/rdma \ export rdmacm_LIBS=-lrdmacm \ %endif %{configure} \ +%if %{with nss} --enable-nss \ +%else + --disable-nss \ +%endif %if %{with testagents} --enable-testagents \ %endif