From 93f5c6683a14bb45c0df30554efbea3978d3dc2b Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 1 Nov 2022 07:19:17 +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 --- scons.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scons.spec b/scons.spec index b553a3d..c5252d4 100644 --- a/scons.spec +++ b/scons.spec @@ -157,7 +157,7 @@ for file in %{name}-%{version}/src/*.txt; do done %if 0%{?el7} || 0%{?el9} || 0%{?fedora} || 0%{?eln} -pathfix.py -i %{__python3} -pn %{name}-%{version}/scripts/scons.py +%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -i %{__python3} -pn %{name}-%{version}/scripts/scons.py %else pathfix3.8.py -i %{__python3} -pn %{name}-%{version}/scripts/scons.py %endif @@ -168,7 +168,7 @@ sed -i -e 's!env.AddPostAction(tgz_file, Delete(man_pages))! !g' %{name}-%{versi %if %{with python3_other} cp -a %{name}-%{version} %{name}-%{version}-py%{python3_other_pkgversion} -pathfix.py -i %{__python3_other} -pn %{name}-%{version}-py%{python3_other_pkgversion}/scripts/scons.py +%{__python3} %{_rpmconfigdir}/redhat/pathfix.py -i %{__python3_other} -pn %{name}-%{version}-py%{python3_other_pkgversion}/scripts/scons.py %endif %build