From 5ddc713fa17e7f2ea7234f6b0ccbd7fb9acb276d3b46c293f592bedfb137c3dd Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Wed, 20 Nov 2024 11:08:20 +0100 Subject: [PATCH] fix build on SLE15 --- nodejs22.changes | 5 +++++ nodejs22.spec | 10 ++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/nodejs22.changes b/nodejs22.changes index acaa8a5..7a8df76 100644 --- a/nodejs22.changes +++ b/nodejs22.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 20 10:04:23 UTC 2024 - Adam Majer + +- BuildRequire python311 for SLE15 + ------------------------------------------------------------------- Mon Nov 18 12:02:26 UTC 2024 - Adam Majer diff --git a/nodejs22.spec b/nodejs22.spec index 2f6d3a8..245e2ab 100644 --- a/nodejs22.spec +++ b/nodejs22.spec @@ -240,12 +240,18 @@ BuildRequires: gcc-c++ # Python dependencies %if %node_version_number >= 14 -%if 0%{?suse_version} && 0%{?suse_version} < 1500 +%if 0%{?suse_version} +%if 0%{?suse_version} < 1500 BuildRequires: python36 %define forced_python_version 3.6m -%else +%endif +%if %{?suse_version} == 1500 +BuildRequires: python311 +%endif +%if %{?suse_version} > 1500 BuildRequires: python3 %endif +%endif %else %if %node_version_number >= 12