From 2afedcedb0f1f0eb34d58a0ee1f7b05a0782a1df Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 1 Nov 2022 07:15:04 +0100 Subject: [PATCH] Change location of pathfix.py For more info see https://fedoraproject.org/wiki/Changes/Python3.12#pathfix.py_tool_will_be_removed --- petsc.spec | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/petsc.spec b/petsc.spec index 0d8cb3a..533d21b 100644 --- a/petsc.spec +++ b/petsc.spec @@ -583,10 +583,10 @@ pushd %{name}-%{version} %patch7 -p1 -b .backup -find . -name 'setup.py' | xargs pathfix.py -pn -i "%{__python3}" -find . -name 'configure' | xargs pathfix.py -pn -i "%{__python3}" -find config -name '*.py' | xargs pathfix.py -pn -i "%{__python3}" -find src/benchmarks/streams -name '*.py' | xargs pathfix.py -pn -i "%{__python3}" +find . -name 'setup.py' | xargs %{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" +find . -name 'configure' | xargs %{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" +find config -name '*.py' | xargs %{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" +find src/benchmarks/streams -name '*.py' | xargs %{__python3} %{_rpmconfigdir}/redhat/pathfix.py -pn -i "%{__python3}" %if 0%{?el7} %patch2 -p1 -b .backup