From 0fa32b980572e1a7a93ee88b7b0c755d0d67209e Mon Sep 17 00:00:00 2001 From: sagitter Date: Sun, 3 Dec 2017 16:55:36 +0100 Subject: [PATCH] Fix Fortran MPI library path on epel --- petsc.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/petsc.spec b/petsc.spec index cb48cd7..5aa7f5b 100644 --- a/petsc.spec +++ b/petsc.spec @@ -129,7 +129,7 @@ Name: petsc Summary: Portable Extensible Toolkit for Scientific Computation Version: %{releasever}.1 -Release: 1%{?dist} +Release: 2%{?dist} License: BSD URL: https://www.mcs.anl.gov/petsc Source0: http://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-%{version}.tar.gz @@ -1029,8 +1029,12 @@ make -C buildmpich_dir test %{_libdir}/openmpi/lib/libpetsc.so %{_libdir}/openmpi/lib/%{name}-%{version}/ %{_includedir}/openmpi-%{_arch}/%{name}/ +%if 0%{?rhel} +%{_fmoddir}/openmpi-%{_arch}/%{name}/ +%else %{_fmoddir}/openmpi/%{name}/ %endif +%endif %if %{with mpich} %files mpich @@ -1041,10 +1045,17 @@ make -C buildmpich_dir test %{_libdir}/mpich/lib/libpetsc.so %{_libdir}/mpich/lib/%{name}-%{version}/ %{_includedir}/mpich-%{_arch}/%{name}/ +%if 0%{?rhel} +%{_fmoddir}/mpich-%{_arch}/%{name}/ +%else %{_fmoddir}/mpich/%{name}/ %endif +%endif %changelog +* Sun Dec 03 2017 Antonio Trande - 3.8.1-2 +- Fix Fortran MPI library path on epel + * Wed Nov 22 2017 Antonio Trande - 3.8.1-1 - Update to 3.8.1 - Disable Sundials