diff --git a/ansible-core.spec b/ansible-core.spec index 581abeb..da50bee 100644 --- a/ansible-core.spec +++ b/ansible-core.spec @@ -132,7 +132,7 @@ This package installs extensive documentation for ansible-core %autopatch -M 4999 -p1 # Python 3.12 specific patches # Set `-D '_has_python312 1'` to test locally -%if 0%{?_has_python312} || v"%{python3_version}" >= v"3.12" +%if 0%{?_has_python312} || v"0%{?python3_version}" >= v"3.12" %autopatch -m 5000 -p1 %endif