Use %py3_shebang_fix instead of direct call of pathfix.py

For more info see https://fedoraproject.org/wiki/Changes/Python3.12#pathfix.py_tool_will_be_removed
This commit is contained in:
Lumir Balhar 2022-11-01 07:09:14 +01:00 committed by whot
parent 0a4f789b30
commit ad65e5bf75

View File

@ -66,7 +66,7 @@ intended to be run by users.
%prep
%autosetup -S git
# Replace whatever the source uses with the approved call
pathfix.py -i %{__python3} -p -n $(git grep -l '#!/usr/bin/.*python3')
%py3_shebang_fix $(git grep -l '#!/usr/bin/.*python3')
%build
%meson -Ddebug-gui=false \