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:
parent
805bd2623b
commit
dd52b653b0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user