Allow multiline arguments processing for %%py3_check_import
Fixes the regression introduced with the macro reimplementation. Resolves: rhbz#2018809
This commit is contained in:
parent
f6c1d3b3d1
commit
a3ce038993
6 changed files with 33 additions and 14 deletions
|
|
@ -75,8 +75,11 @@
|
|||
PATH="%{buildroot}%{_bindir}:$PATH"\\\
|
||||
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}"\\\
|
||||
PYTHONDONTWRITEBYTECODE=1\\\
|
||||
%{__python3} -%{py3_shebang_flags} %{_rpmconfigdir}/redhat/import_all_modules.py %{?**}
|
||||
}
|
||||
%{__python3} -%{py3_shebang_flags} %{_rpmconfigdir}/redhat/import_all_modules.py\\\
|
||||
%{lua:
|
||||
-- handle multiline arguments correctly, see https://bugzilla.redhat.com/2018809
|
||||
local args=rpm.expand('%{?**}'):gsub("[%s\\\\]*%s+", " ");print(args)
|
||||
}}
|
||||
|
||||
# This only supports Python 3.5+ and will never work with Python 2.
|
||||
# Hence, it has no Python version in the name.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue