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

Allow conditional rpmbuilds of NSS feature

NSS is currently non-conditional.  Allow nss to be build conditonally.

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Angus Salkeld <asalked@redhat.com>
Steven Dake 14 лет назад
Родитель
Сommit
c505993ecb
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      corosync.spec.in

+ 9 - 1
corosync.spec.in

@@ -12,6 +12,7 @@
 %bcond_with dbus
 %bcond_with dbus
 %bcond_with rdma
 %bcond_with rdma
 %bcond_with systemd
 %bcond_with systemd
+%bcond_with nss
 
 
 Name: corosync
 Name: corosync
 Summary: The Corosync Cluster Engine and Application Programming Interfaces
 Summary: The Corosync Cluster Engine and Application Programming Interfaces
@@ -34,10 +35,13 @@ Conflicts: openais <= 0.89, openais-devel <= 0.89
 %define buildtrunk 0
 %define buildtrunk 0
 %{?_with_buildtrunk: %define buildtrunk 1}
 %{?_with_buildtrunk: %define buildtrunk 1}
 
 
+BuildRequires: libqb-devel
 %if %{buildtrunk}
 %if %{buildtrunk}
 BuildRequires: autoconf automake
 BuildRequires: autoconf automake
 %endif
 %endif
-BuildRequires: nss-devel libqb-devel
+%if %{with nss}
+BuildRequires: nss-devel
+%endif
 %if %{with rdma}
 %if %{with rdma}
 BuildRequires: libibverbs-devel librdmacm-devel
 BuildRequires: libibverbs-devel librdmacm-devel
 %endif
 %endif
@@ -68,7 +72,11 @@ export rdmacm_CFLAGS=-I/usr/include/rdma \
 export rdmacm_LIBS=-lrdmacm \
 export rdmacm_LIBS=-lrdmacm \
 %endif
 %endif
 %{configure} \
 %{configure} \
+%if %{with nss}
 	--enable-nss \
 	--enable-nss \
+%else
+	--disable-nss \
+%endif
 %if %{with testagents}
 %if %{with testagents}
 	--enable-testagents \
 	--enable-testagents \
 %endif
 %endif