diff --git a/petsc.spec b/petsc.spec index 361512f..546d863 100644 --- a/petsc.spec +++ b/petsc.spec @@ -369,7 +369,6 @@ find . -name 'setup.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2} find . -name 'configure' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|' find config -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|' find src/benchmarks/streams -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python2}|' -%patch0 -p0 %patch3 -p0 popd @@ -380,6 +379,10 @@ pushd build64 popd %endif +pushd %{name}-%{version} +%patch0 -p0 +popd + %if %{with openmpi} cp -a %{name}-%{version} buildopenmpi_dir %endif