From 4cca4ed4811e004880feb3d8b4e3371ecfb43f57 Mon Sep 17 00:00:00 2001 From: Michel Lind Date: Sep 15 2023 22:28:33 +0000 Subject: Support building on EL8 Signed-off-by: Michel Lind --- diff --git a/openmpi.spec b/openmpi.spec index e27fc04..b320973 100644 --- a/openmpi.spec +++ b/openmpi.spec @@ -119,13 +119,16 @@ researchers. For more information, see http://www.open-mpi.org/ . Summary: Development files for openmpi Requires: %{name} = %{epoch}:%{version}-%{release}, gcc-gfortran Provides: mpi-devel -%if !0%{?el7} +%if 0%{?fedora} || 0%{?rhel} >= 9 Requires: rpm-mpi-hooks # Make sure this package is rebuilt with correct Python version when updating # Otherwise mpi.req from rpm-mpi-hooks doesn't work # https://bugzilla.redhat.com/show_bug.cgi?id=1705296 Requires: (python(abi) = %{python3_version} if python3) %endif +%if 0%{?el8} +Requires: python36 +%endif %description devel Contains development headers and libraries for openmpi. @@ -164,7 +167,11 @@ OpenMPI support for Python 2. %package -n python%{python3_pkgversion}-openmpi Summary: OpenMPI support for Python 3 Requires: %{name} = %{epoch}:%{version}-%{release} +%if 0%{?el8} +Requires: python36 +%else Requires: python(abi) = %{python3_version} +%endif %description -n python%{python3_pkgversion}-openmpi OpenMPI support for Python 3.