From c26872b7f65586af01c13cc3391a839d776383990c3238f004c3379d6286c2bb Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Tue, 20 Sep 2022 15:55:49 +0000 Subject: [PATCH] - Use NodeJS 18 as default for TW and for SLE15 SP5 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=52 --- nodejs-common.changes | 5 +++++ nodejs-common.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/nodejs-common.changes b/nodejs-common.changes index bf586ad..2c5e4d7 100644 --- a/nodejs-common.changes +++ b/nodejs-common.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Jul 31 15:51:38 UTC 2022 - Adam Majer + +- Use NodeJS 18 as default for TW and for SLE15 SP5 + ------------------------------------------------------------------- Wed Jan 12 09:17:01 UTC 2022 - Adam Majer diff --git a/nodejs-common.spec b/nodejs-common.spec index 229491b..265469e 100644 --- a/nodejs-common.spec +++ b/nodejs-common.spec @@ -25,8 +25,8 @@ # ########################################################### -%define NODEJS_LTS 16 -%define NODEJS_CURRENT 17 +%define NODEJS_LTS 18 +%define NODEJS_CURRENT 18 %if 0%{?suse_version} > 1500 || 0%{?fedora_version} %bcond_without libalternatives @@ -60,6 +60,10 @@ %endif %if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 150500 +%define default_node_ver 16 +%endif + +%if 0%{?sle_version} >= 150500 && 0%{?sle_version} < 150600 %define default_node_ver %NODEJS_LTS %endif @@ -129,6 +133,7 @@ Depends on the most current and up-to-date version of nodejs for the current architecture and codestream. %prep + %build cp %{S:2} . gcc ${RPM_OPT_FLAGS} %?libalternatives_cflags -o node %{S:1} %?libalternatives_lflags