Use py3_shebang_fix macro
As documented in https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_shebang_macros
This commit is contained in:
parent
967d1e9cb7
commit
e87e2f553b
10
clang.spec
10
clang.spec
@ -125,7 +125,7 @@ BuildRequires: python3-lit
|
|||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
BuildRequires: libatomic
|
BuildRequires: libatomic
|
||||||
|
|
||||||
# We need python3-devel for pathfix.py.
|
# We need python3-devel for %%py3_shebang_fix
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
|
|
||||||
# For reproducible pyc file generation
|
# For reproducible pyc file generation
|
||||||
@ -270,8 +270,8 @@ Requires: python3
|
|||||||
# failing test case
|
# failing test case
|
||||||
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
|
rm test/clang-tidy/checkers/altera-struct-pack-align.cpp
|
||||||
|
|
||||||
pathfix.py -i %{__python3} -pn \
|
%py3_shebang_fix \
|
||||||
clang-tidy/tool/*.py \
|
clang-tidy/tool/ \
|
||||||
clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
|
||||||
|
|
||||||
%setup -q -n %{clang_srcdir}
|
%setup -q -n %{clang_srcdir}
|
||||||
@ -280,8 +280,8 @@ pathfix.py -i %{__python3} -pn \
|
|||||||
# failing test case
|
# failing test case
|
||||||
rm test/CodeGen/profile-filter.c
|
rm test/CodeGen/profile-filter.c
|
||||||
|
|
||||||
pathfix.py -i %{__python3} -pn \
|
%py3_shebang_fix \
|
||||||
tools/clang-format/*.py \
|
tools/clang-format/ \
|
||||||
tools/clang-format/git-clang-format \
|
tools/clang-format/git-clang-format \
|
||||||
utils/hmaptool/hmaptool \
|
utils/hmaptool/hmaptool \
|
||||||
tools/scan-view/bin/scan-view \
|
tools/scan-view/bin/scan-view \
|
||||||
|
Loading…
Reference in New Issue
Block a user