- Enable 32-bit arches again on latest node for TW

- Set TW to nodejs16
- Set nodejs14 for SP3 as default and nodejs16 for SP4

- Provide nodejs(engine) by nodejs-common: nodejs-packaging happens
  to read the engines parameter from the json files and it's a
  nice-to-have if OBS can find out what the default nodejs engine
  to use.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=39
This commit is contained in:
Adam Majer 2021-05-07 14:22:59 +00:00 committed by Git OBS Bridge
parent 4b5e870fdb
commit 0fb4b5559d
2 changed files with 31 additions and 17 deletions

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Thu May 6 12:50:02 UTC 2021 - Adam Majer <adam.majer@suse.de>
- Enable 32-bit arches again on latest node for TW
- Set TW to nodejs16
- Set nodejs14 for SP3 as default and nodejs16 for SP4
-------------------------------------------------------------------
Thu Apr 29 09:33:20 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Provide nodejs(engine) by nodejs-common: nodejs-packaging happens
to read the engines parameter from the json files and it's a
nice-to-have if OBS can find out what the default nodejs engine
to use.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 15 12:35:21 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org> Thu Apr 15 12:35:21 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -25,21 +25,14 @@
# #
########################################################### ###########################################################
%define NODEJS_LTS 14 %define NODEJS_LTS 16
%define NODEJS_CURRENT 15 %define NODEJS_CURRENT 16
# logic for default version
# OBSOLETE ARCHES
%ifarch %ix86 %{arm}
%define default_node_ver 10
%else
# GENERAL SUPPORT ARCHES
# SLE-12 variants # SLE-12 variants
%if 0%{?suse_version} < 1500 %if 0%{?suse_version} < 1500
%define default_node_ver %NODEJS_LTS %define default_node_ver %NODEJS_LTS
%endif
%else
# TW # TW
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
@ -50,21 +43,26 @@
# SLE-15 variants, variation based on SP # SLE-15 variants, variation based on SP
%if 0%{?sle_version} >= 150000 && 0%{?sle_version} < 150200 %if 0%{?sle_version} >= 150000 && 0%{?sle_version} < 150200
%define default_node_ver 10 %define default_node_ver 10
%else %endif
%if 0%{?sle_version} < 150300
%if 0%{?sle_version} >= 150200 && 0%{?sle_version} < 150300
%define default_node_ver 12 %define default_node_ver 12
%else %endif
%if 0%{?sle_version} >= 150300 && 0%{?sle_version} < 150400
%define default_node_ver 14
%endif
%if 0%{?sle_version} >= 150400 && 0%{?sle_version} < 150500
%define default_node_ver %NODEJS_LTS %define default_node_ver %NODEJS_LTS
%endif %endif
# SLE-15 variants # SLE-15 variants
%endif %endif
# TW # TW
%endif %endif
# END - GENERAL ARCHES
%endif
Name: nodejs-common Name: nodejs-common
Version: 4.1 Version: 4.1
Release: 0 Release: 0
@ -91,6 +89,7 @@ Group: Development/Languages/NodeJS
Requires: nodejs%{default_node_ver} Requires: nodejs%{default_node_ver}
Requires: nodejs-common Requires: nodejs-common
Provides: nodejs = %default_node_ver Provides: nodejs = %default_node_ver
Provides: nodejs(engine) = %default_node_ver
%description -n nodejs-default %description -n nodejs-default
Depends on the most current and recommended version of nodejs for Depends on the most current and recommended version of nodejs for