* [PATCH] fix rpmbuild with and w/o ibmgtsim build
@ 2011-01-06 0:57 Ira Weiny
[not found] ` <20110105165703.06ac4526.weiny2-i2BcT+NCU+M@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Ira Weiny @ 2011-01-06 0:57 UTC (permalink / raw)
To: Yevgeny Kliteynik; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
[PATCH] fix rpmbuild with and w/o ibmgtsim build
Signed-off-by: Ira Weiny <weiny2-eSE4LqFkL++LYFxP40JT4w@public.gmane.org>
---
Makefile.am | 2 +-
ibutils.spec.in | 14 ++++++++++----
2 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 87b071d..cb13dbd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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)
diff --git a/ibutils.spec.in b/ibutils.spec.in
index f044aff..a5d7b76 100644
--- a/ibutils.spec.in
+++ b/ibutils.spec.in
@@ -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
--
1.5.4.5
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-06 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06 0:57 [PATCH] fix rpmbuild with and w/o ibmgtsim build Ira Weiny
[not found] ` <20110105165703.06ac4526.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-01-06 7:28 ` Yevgeny Kliteynik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox