From abc714a41f1020dd596586baab67a012a536bb63 Mon Sep 17 00:00:00 2001 From: sagitter Date: Oct 01 2019 18:01:10 +0000 Subject: Fix MPICH Requires again --- diff --git a/petsc.spec b/petsc.spec index 72ec1db..a54cb72 100644 --- a/petsc.spec +++ b/petsc.spec @@ -34,8 +34,6 @@ %global dts devtoolset-8- %endif -%global mpichversion %(rpm -qi mpich | awk -F': ' '/Version/ {print $2}') - # ## PETSC looks incompatible with serial MUMPS %bcond_with mumps_serial @@ -284,7 +282,9 @@ BuildRequires: fftw-mpich-devel BuildRequires: openblas-devel, openblas-srpm-macros %endif Requires: gcc-gfortran%{?_isa} -Requires: mpich%{?_isa} = %{mpichversion} + +%global mpichversion %(rpm -qi mpich | awk -F': ' '/Version/ {print $2}') +Requires: mpich%{?_isa} = %{?mpichversion} %description mpich PETSc, pronounced PET-see (the S is silent), is a suite of data structures