Use %py3_shebang_fix instead of calling pathfix.py manually

As documented here:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_shebang_macros
This commit is contained in:
Timm Bäder 2021-09-23 14:47:00 +02:00
parent efdfe5532f
commit 9e342d2430
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ BuildRequires: valgrind-devel
%endif
# LLVM's LineEditor library will use libedit if it is available.
BuildRequires: libedit-devel
# We need python3-devel for pathfix.py.
# We need python3-devel for %%py3_shebang_fix
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@ -184,7 +184,7 @@ LLVM's modified googletest sources.
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n %{llvm_srcdir} -p2
pathfix.py -i %{__python3} -pn \
%py3_shebang_fix \
test/BugPoint/compile-custom.ll.py \
tools/opt-viewer/*.py \
utils/update_cc_test_checks.py