diff --git a/petsc.spec b/petsc.spec index 1196829..b89f3ed 100644 --- a/petsc.spec +++ b/petsc.spec @@ -257,7 +257,11 @@ %endif \ %if %{with ptscotch} \ --with-ptscotch=1 \\\ + %if 0%{?rhel} \ + --with-ptscotch-include=$MPI_INCLUDE \\\ + %else \ --with-ptscotch-include=$MPI_INCLUDE/scotch \\\ + %endif \ --with-ptscotch-lib="-L$MPI_LIB -lptscotch -lscotch -lptscotcherr -lscotcherr" \\\ %endif \ %if %{with mumps} \