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