From ff46220c28acdb86edbf1679e80f1970afe9d952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 7 May 2019 11:18:12 +0200 Subject: [PATCH] Move module files under /usr/share openmpi does this, so it must be a good thing. --- mpich.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/mpich.spec b/mpich.spec index d420dbf..ce9b37a 100644 --- a/mpich.spec +++ b/mpich.spec @@ -1,7 +1,7 @@ Summary: A high-performance implementation of MPI Name: mpich Version: 3.2.1 -Release: 10%{?dist} +Release: 11%{?dist} License: MIT URL: http://www.mpich.org/ @@ -142,7 +142,7 @@ mv %{buildroot}%{_includedir}/%{name}-*/*.mod %{buildroot}%{_fmoddir}/%{name}/ sed -r -i 's|^modincdir=.*|modincdir=%{_fmoddir}/%{name}|' %{buildroot}%{_libdir}/%{name}/bin/mpifort # Install the module file -mkdir -p %{buildroot}%{_sysconfdir}/modulefiles/mpi +mkdir -p %{buildroot}%{_datadir}/modulefiles/mpi sed -r 's|%{_bindir}|%{_libdir}/%{name}/bin|; s|@LIBDIR@|%{_libdir}/%{name}|; s|@MPINAME@|%{name}|; @@ -152,7 +152,7 @@ sed -r 's|%{_bindir}|%{_libdir}/%{name}/bin|; s|@fortranmoddir@|%{_fmoddir}|; ' \ %{buildroot}%{_sysconfdir}/modulefiles/mpi/%{name}-%{_arch} + >%{buildroot}%{_datadir}/modulefiles/mpi/%{name}-%{_arch} mkdir -p %{buildroot}%{_sysconfdir}/profile.d cat >%{buildroot}%{_sysconfdir}/profile.d/mpich-%{_arch}.sh < - 3.2.1-11 +- Add a guard for python3 version (#1705296) +- Module files are moved to /usr/share/modulefiles/mpi/ + * Tue May 7 2019 Zbigniew Jędrzejewski-Szmek - 3.2.1-10 - Drop all custom compilation and link flags (#1573088)