2
0
forked from pool/nodejs-common

- 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
This commit is contained in:
Adam Majer 2022-09-20 15:55:49 +00:00 committed by Git OBS Bridge
parent 25a5008cfd
commit c26872b7f6
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Jul 31 15:51:38 UTC 2022 - Adam Majer <adam.majer@suse.de>
- Use NodeJS 18 as default for TW and for SLE15 SP5
-------------------------------------------------------------------
Wed Jan 12 09:17:01 UTC 2022 - Adam Majer <adam.majer@suse.de>

View File

@ -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