From fdb9072f4efea4b4f768eb1dd589683f27d1382d Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Tue, 1 Nov 2022 07:19:09 +0100 Subject: [PATCH] Switch from pathfix.py to %py3_shebang_fix For more info see https://fedoraproject.org/wiki/Changes/Python3.12#pathfix.py_tool_will_be_removed --- scipy.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scipy.spec b/scipy.spec index d2b59a3..f94f6f6 100644 --- a/scipy.spec +++ b/scipy.spec @@ -42,7 +42,6 @@ BuildRequires: fftw-devel, suitesparse-devel BuildRequires: %{blaslib}-devel BuildRequires: gcc-gfortran, swig, gcc-c++ BuildRequires: qhull-devel -BuildRequires: /usr/bin/pathfix.py BuildRequires: pybind11-devel BuildRequires: python3-pybind11 >= 2.4.0 @@ -154,7 +153,7 @@ export SCIPY_USE_PYTHRAN=0%{?with_pythran} %py3_install # Some files got ambiguous python shebangs, we fix them after everything else is done -pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitearch} +%py3_shebang_fix %{buildroot}%{python3_sitearch} %check # check against the reference BLAS/LAPACK