diff --git a/python313.changes b/python313.changes index 7fa89c2..ea04a7f 100644 --- a/python313.changes +++ b/python313.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 28 09:46:40 UTC 2025 - Matej Cepl + +- Don't use %elif, it is supported only from rpm 4.15.0, which is + not in SLE-15. + ------------------------------------------------------------------- Fri May 16 13:44:12 UTC 2025 - Matej Cepl diff --git a/python313.spec b/python313.spec index 2e91972..3c26f11 100644 --- a/python313.spec +++ b/python313.spec @@ -83,19 +83,20 @@ # No experimental_jit in SLES, there's no clang >=18 %if 0%{?suse_version} <= 1600 %bcond_with experimental_jit -# Disable experimental_jit for primary python. -# llvm is not part of ring0 and experimental_jit requires clang >= 18 -%elif !%{primary_interpreter} -# Currently supported architectures -# https://peps.python.org/pep-0744/#support -%ifarch x86_64 %{x86_64} aarch64 -%bcond_without experimental_jit %else -%bcond_with experimental_jit -%endif - -%else -%bcond_with experimental_jit + # Disable experimental_jit for primary python. + # llvm is not part of ring0 and experimental_jit requires clang >= 18 + %if !%{primary_interpreter} + # Currently supported architectures + # https://peps.python.org/pep-0744/#support + %ifarch x86_64 %{x86_64} aarch64 + %bcond_without experimental_jit + %else + %bcond_with experimental_jit + %endif + %else + %bcond_with experimental_jit + %endif %endif # %%if 0%%{?sle_version} && 0%%{?suse_version} < 1550