forked from autogits/nodejs-common
- set nodejs14 as default for sle15-sp3+
- set nodejs15 as default for TW OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=25
This commit is contained in:
parent
5dafee70fb
commit
b812eb5575
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 19 11:33:38 UTC 2021 - Adam Majer <adam.majer@suse.de>
|
||||||
|
|
||||||
|
- set nodejs14 as default for sle15-sp3+
|
||||||
|
- set nodejs15 as default for TW
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 9 10:35:06 UTC 2020 - Adam Majer <adam.majer@suse.de>
|
Tue Jun 9 10:35:06 UTC 2020 - Adam Majer <adam.majer@suse.de>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package nodejs-common
|
# spec file for package nodejs-common
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -25,8 +25,8 @@
|
|||||||
#
|
#
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
%define NODEJS_LTS 12
|
%define NODEJS_LTS 14
|
||||||
%define NODEJS_CURRENT 14
|
%define NODEJS_CURRENT 15
|
||||||
|
|
||||||
# logic for default version
|
# logic for default version
|
||||||
# OBSOLETE ARCHES
|
# OBSOLETE ARCHES
|
||||||
@ -49,9 +49,12 @@
|
|||||||
# 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
|
||||||
|
%if 0%{?sle_version} < 150300
|
||||||
|
%define default_node_ver 12
|
||||||
|
%else
|
||||||
|
%define default_node_ver NODEJS_LTS
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?sle_version} >= 150200
|
|
||||||
%define default_node_ver %NODEJS_LTS
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# END - GENERAL ARCHES
|
# END - GENERAL ARCHES
|
||||||
@ -63,7 +66,7 @@ Release: 0
|
|||||||
Summary: Common files for the NodeJS ecosystem
|
Summary: Common files for the NodeJS ecosystem
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/NodeJS
|
Group: Development/Languages/NodeJS
|
||||||
Url: https://github.com/AdamMajer/nodejs-packaging
|
URL: https://github.com/AdamMajer/nodejs-packaging
|
||||||
Source1: node.c
|
Source1: node.c
|
||||||
Source2: LICENSE
|
Source2: LICENSE
|
||||||
Requires: nodejs
|
Requires: nodejs
|
||||||
@ -112,6 +115,8 @@ the current architecture and codestream.
|
|||||||
cp %{S:2} .
|
cp %{S:2} .
|
||||||
gcc ${RPM_OPT_FLAGS} -o node %{S:1}
|
gcc ${RPM_OPT_FLAGS} -o node %{S:1}
|
||||||
|
|
||||||
|
echo "Default Node version: " %{default_node_ver}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -D -m 0755 node %{buildroot}%{_bindir}/node
|
install -D -m 0755 node %{buildroot}%{_bindir}/node
|
||||||
ln node %{buildroot}%{_bindir}/npm
|
ln node %{buildroot}%{_bindir}/npm
|
||||||
|
Loading…
Reference in New Issue
Block a user