Skip to contentSkip to conversation

fix rpmbuild with and w/o ibmgtsim build

PATCH Applied Ira Weiny 2 participants 2 messages Jan 6, 2011 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Ira Weiny

author
#0 lore raw

PATCH 1/1 fix rpmbuild with and w/o ibmgtsim build

[PATCH] fix rpmbuild with and w/o ibmgtsim build

---
 Makefile.am     |    2 +-
 ibutils.spec.in |   14 ++++++++++----
 2 files changed, 11 insertions(+), 5 deletions(-)
Makefile.am +1 -1
index 87b071d..cb13dbd 100644
@@ -45,7 +45,7 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config-h.in
 
 ACLOCAL			= aclocal -I $(ac_aux_dir)
 
-EXTRA_DIST = ibutils.spec.in
+EXTRA_DIST = ibutils.spec.in ibmgtsim
 
 dist-hook: ibutils.spec
 	cp ibutils.spec $(distdir)
ibutils.spec.in +10 -4
index f044aff..a5d7b76 100644
@@ -31,6 +31,7 @@
 #--
 
 %{?build_ibmgtsim: %define ibmgtsim --enable-ibmgtsim}
+%{?build_ibmgtsim: %define ibmgtsim_files 1}
 
 Summary: OpenIB Mellanox InfiniBand Diagnostic Tools
 Name: ibutils
@@ -128,17 +129,20 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version}
 %{_mandir}/man1/ibdm-ibnl-file.1*
 /etc/profile.d/ibutils.sh
 /etc/profile.d/ibutils.csh
+%{_prefix}/bin/dump2slvl.pl
+%{_prefix}/bin/dump2psl.pl
+%{_libdir}/libibsysapi.so*
+%{_libdir}/libibsysapi.a
+
+# These are only installed when ibmgtsim is built
+%if %{?ibmgtsim_files:1}
 %{_prefix}/bin/mkSimNodeDir
 %{_prefix}/bin/ibmssh
 %{_prefix}/bin/ibmsquit
 %{_prefix}/bin/RunSimTest
 %{_prefix}/bin/IBMgtSim
-%{_prefix}/bin/dump2slvl.pl
-%{_prefix}/bin/dump2psl.pl
 %{_libdir}/libibmscli.so*
 %{_libdir}/libibmscli.a
-%{_libdir}/libibsysapi.so*
-%{_libdir}/libibsysapi.a
 %{_prefix}/include/ibmgtsim
 %{_prefix}/share/ibmgtsim
 %{_mandir}/man1/ibmssh.1*
@@ -146,6 +150,8 @@ rm -rf $RPM_BUILD_DIR/%{name}-%{version}
 %{_mandir}/man1/mkSimNodeDir.1*
 %{_mandir}/man1/RunSimTest.1*
 %{_mandir}/man1/IBMgtSim.1*
+%endif
+
 # END Files
 
 %changelog
Signature · 6 lines
1.5.4.5

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]