From c9da4b0fca61c3753e5bb8e54c245bf27dbcef9f Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Tue, 22 Jun 2021 08:10:42 -0600 Subject: [PATCH] Only need environment-modules for EL7 --- openmpi.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmpi.spec b/openmpi.spec index 8c1bb87..12b81bb 100644 --- a/openmpi.spec +++ b/openmpi.spec @@ -90,7 +90,7 @@ BuildRequires: rpm-mpi-hooks %endif Provides: mpi -%if 0%{?rhel} +%if 0%{?rhel} == 7 # Need this for /etc/profile.d/modules.sh Requires: environment-modules %endif