Fix %{python3_version} conditional

If %{python3_version} expands to an empty string (this can happen when python3-rpm-macros
is installed but %__python3 is not), specfile parsing will fail.
This commit is contained in:
Maxwell G 2023-07-10 19:36:03 +00:00
parent 805bd2623b
commit dd52b653b0
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -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