[ofa-general] [PATCH management] Move _with_node_name_map rpm spec option from infiniband-diags to opensm.

Ira Weiny weiny2 at llnl.gov
Thu Jun 4 11:09:51 PDT 2009


From: Ira Weiny <weiny2 at llnl.gov>
Date: Thu, 4 Jun 2009 11:08:27 -0700
Subject: [PATCH] Move _with_node_name_map rpm spec option from infiniband-diags to opensm.

	The node name map is now part of libosmcomp.

Signed-off-by: Ira Weiny <weiny2 at llnl.gov>
---
 infiniband-diags/infiniband-diags.spec.in |    6 +-----
 opensm/opensm.spec.in                     |    7 ++++++-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/infiniband-diags/infiniband-diags.spec.in b/infiniband-diags/infiniband-diags.spec.in
index 07c46c9..c50ce09 100644
--- a/infiniband-diags/infiniband-diags.spec.in
+++ b/infiniband-diags/infiniband-diags.spec.in
@@ -22,12 +22,8 @@ diagnose an IB subnet.
 %prep
 %setup -q
 
-%if %{?_with_node_name_map:1}%{!?_with_node_name_map:0}
-%define _enable_node_name_map --with-node-name-map%{?_with_node_name_map}
-%endif
-
 %build
-%configure %{?_enable_node_name_map}
+%configure
 make
 
 %install
diff --git a/opensm/opensm.spec.in b/opensm/opensm.spec.in
index 10e0147..c541804 100644
--- a/opensm/opensm.spec.in
+++ b/opensm/opensm.spec.in
@@ -21,6 +21,10 @@
 %define _disable_event_plugin --disable-default-event-plugin
 %endif
 
+%if %{?_with_node_name_map:1}%{!?_with_node_name_map:0}
+%define _enable_node_name_map --with-node-name-map%{?_with_node_name_map}
+%endif
+
 Summary: InfiniBand subnet manager and administration
 Name: opensm
 Version: @VERSION@
@@ -80,7 +84,8 @@ Static version of the opensm libraries
         %{?_enable_perf_mgr} \
         %{?_disable_perf_mgr} \
         %{?_enable_event_plugin} \
-        %{?_disable_event_plugin}
+        %{?_disable_event_plugin} \
+        %{?_enable_node_name_map}
 make %{?_smp_mflags}
 
 %install
-- 
1.5.4.5




More information about the general mailing list