diff --git a/ansible-core.spec b/ansible-core.spec index fbd62c9..84c7274 100644 --- a/ansible-core.spec +++ b/ansible-core.spec @@ -3,7 +3,9 @@ # controls whether to generate shell completions # may be useful for bootstrapping purposes -%bcond argcomplete 1 +# +# python3-argcomplete currently FTBFS with python3.12 +%bcond argcomplete %[ %{defined python3_version} && v"%{python3_version}" < v"3.12" ] # disable the python -s shbang flag as we want to be able to find non system modules %undefine _py3_shebang_s