Define and use %{_py3_shebang_s} in the shebang macros for easier opt-out
This is in-line with https://fedoraproject.org/wiki/Changes/PythonSafePath#Opting_out Backported from https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/141
This commit is contained in:
parent
bb20c6908e
commit
d83a32823c
4 changed files with 12 additions and 2 deletions
|
|
@ -10,7 +10,8 @@
|
|||
%python3_cache_tag %(RPM_BUILD_ROOT= %{__python3} -Ic "import sys; print(sys.implementation.cache_tag)")
|
||||
%py3dir %{_builddir}/python3-%{name}-%{version}-%{release}
|
||||
|
||||
%py3_shbang_opts -s
|
||||
%_py3_shebang_s s
|
||||
%py3_shbang_opts -%{?_py3_shebang_s}
|
||||
%py3_shbang_opts_nodash %(opts=%{py3_shbang_opts}; echo ${opts#-})
|
||||
%py3_shebang_flags %(opts=%{py3_shbang_opts}; echo ${opts#-})
|
||||
%py3_shebang_fix %{expand:\\\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue