%else
BuildRequires: openmpi2-devel
%endif
-%endif # openmpi
-%endif # mpi
+# openmpi
+%endif
+# mpi
+%endif
%description tests
This package contains a set of test binaries and scripts that are intended
%endif
%if %{with mpi}
-%if %{mpi_name} == "mpich"
+%if "%{mpi_name}" == "mpich"
%{?_mpich_load}
%endif
-%if %{mpi_name} == "openmpi"
+%if "%{mpi_name}" == "openmpi"
%{?_openmpi_load}
%endif
-%endif # mpi
+# mpi
+%endif
%if %{with mofed}
o2ib_path=$(find /usr/src/ofa_kernel/ -type d -name ofed_scripts | xargs dirname)
make %{?_smp_mflags} -s %{?make_args}
%if %{with mpi}
-%if %{mpi_name} == "mpich"
+%if "%{mpi_name}" == "mpich"
%{?_mpich_unload}
%endif
-%if %{mpi_name} == "openmpi"
+%if "%{mpi_name}" == "openmpi"
%{?_openmpi_unload}
%endif
-%endif # mpi
+# mpi
+%endif
%install
%if %{with mpi}
-%if %{mpi_name} == "mpich"
+%if "%{mpi_name}" == "mpich"
%{?_mpich_load}
%endif
-%if %{mpi_name} == "openmpi"
+%if "%{mpi_name}" == "openmpi"
%{?_openmpi_load}
%endif
-%endif # mpi
+# mpi
+%endif
make install DESTDIR=$RPM_BUILD_ROOT
%if %{with lustre_tests}
:> lustre-tests.files
%if %{with mpi}
-%if %{mpi_name} == "mpich"
+%if "%{mpi_name}" == "mpich"
%{?_mpich_load}
%endif
-%if %{mpi_name} == "openmpi"
+%if "%{mpi_name}" == "openmpi"
%{?_openmpi_load}
%endif
-%endif # mpi
+# mpi
+%endif
echo '%{_libdir}/lustre/tests/*' >>lustre-tests.files
echo '%{_bindir}/mcreate' >>lustre-tests.files
echo '%{_bindir}/munlink' >>lustre-tests.files