Description of problem: When %py3_shebang_flags is %nil, %py3_check_import evals to: ... /usr/bin/python3 - /usr/lib/rpm/redhat/import_all_modules.py ... And hence it executes no code. When %py3_shebang_flags is undefined, %py3_check_import evals to: ... /usr/bin/python3 -%{py3_shebang_flags} /usr/lib/rpm/redhat/import_all_modules.py ... And hence fails. The -%{py3_shebang_flags} flag should be conditionalized on %{?py3_shebang_flags} non-emptines. %py3_shebang_fix already does something like that. Version-Release number of selected component (if applicable): python-rpm-macros-3.9-19.fc33 python-rpm-macros-3.9-40.fc34 python-rpm-macros-3.10-9.fc35 python-rpm-macros-3.10-12.fc36
https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/121
FEDORA-2021-70e7a5dae0 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-70e7a5dae0
FEDORA-2021-70e7a5dae0 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.