fix rpmbuild with and w/o ibmgtsim build
Subsystems (2)
PATCH 1/1 fix rpmbuild with and w/o ibmgtsim build
[PATCH] fix rpmbuild with and w/o ibmgtsim build
Signed-off-by Ira Weiny <[email protected]>
--- Makefile.am | 2 +- ibutils.spec.in | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-)
Makefile.am +1 -1
@@ -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
@@ -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]
Yevgeny Kliteynik
AppliedQuoted 6 lines · Ira Weiny
[PATCH] fix rpmbuild with and w/o ibmgtsim build
Signed-off-by Ira Weiny<[email protected]>---
Thanks, applied.
-- Yevgeny
--
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