From 6d5d3f96b081962b0505752cd776af183eab8d9544a0959c06efb11f1ce56e67 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 28 May 2025 09:47:26 +0000 Subject: [PATCH] - Don't use %elif, it is supported only from rpm 4.15.0, which is not in SLE-15. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python313?expand=0&rev=98 --- python313.changes | 6 ++++++ python313.spec | 25 +++++++++++++------------ 2 files changed, 19 insertions(+), 12 deletions(-) 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