perf-tools/mpiP: preserve module file path
@@ -43,6 +43,7 @@ BuildRequires: python
# Default library install path
%global install_path %{OHPC_LIBS}/%{compiler_family}/%{mpi_family}/%{pname}/%version
+%global module_dir %{compiler_family}-%{mpi_family}
%description
@@ -94,8 +95,8 @@ make %{?_smp_mflags} shared
make DESTDIR=$RPM_BUILD_ROOT install
# OpenHPC module file
-%{__mkdir} -p %{buildroot}%{OHPC_MODULEDEPS}/%{compiler_family}-%{mpi_family}/%{pname}
-%{__cat} << EOF > %{buildroot}/%{OHPC_MODULEDEPS}/%{compiler_family}-%{mpi_family}/%{pname}/%{version}
+%{__mkdir} -p %{buildroot}%{OHPC_MODULEDEPS}/%{module_dir}/%{pname}
+%{__cat} << EOF > %{buildroot}/%{OHPC_MODULEDEPS}/%{module_dir}/%{pname}/%{version}
#%Module1.0#####################################################################
proc ModulesHelp { } {
@@ -121,7 +122,7 @@ setenv %{PNAME}_LIB %{install_path}/lib
EOF
-%{__cat} << EOF > %{buildroot}/%{OHPC_MODULEDEPS}/%{compiler_family}-%{mpi_family}/%{pname}/.version.%{version}
+%{__cat} << EOF > %{buildroot}/%{OHPC_MODULEDEPS}/%{module_dir}/%{pname}/.version.%{version}
#%Module1.0#####################################################################
##
## version file for %{pname}-%{version}
