1
0

- Add nodejs-default subpackage to provide latest, best supported

nodejs for current architecture and codestream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=20
This commit is contained in:
Adam Majer 2020-06-09 10:43:01 +00:00 committed by Git OBS Bridge
parent e5a84923e4
commit 0f92cc976c
2 changed files with 48 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 9 10:35:06 UTC 2020 - Adam Majer <adam.majer@suse.de>
- Add nodejs-default subpackage to provide latest, best supported
nodejs for current architecture and codestream
-------------------------------------------------------------------
Mon Dec 30 13:49:36 UTC 2019 - Adam Majer <adam.majer@suse.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package nodejs-common
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,8 +25,11 @@
#
###########################################################
%define NODEJS_LTS 12
%define NODEJS_CURRENT 14
Name: nodejs-common
Version: 3.0
Version: 4.0
Release: 0
Summary: Common files for the NodeJS ecosystem
License: MIT
@ -45,6 +48,43 @@ BuildRequires: gcc
Common NodeJS files that allow recursive invocation of Node executable
while retaining the same codestream version.
%package -n nodejs-default
Summary: Deault version of nodejs
Group: Development/Languages/NodeJS
Requires: nodejs-common
# OBSOLETE ARCHES
%ifarch %ix86
Requires: nodejs10
%else
# GENERAL SUPPORT ARCHES
# SLE-12 variants
%if 0%{suse_version} < 1500
Requires: nodejs%{NODEJS_LTS}
%endif
# TW
%if 0%{suse_version} > 1500
Requires: nodejs%{NODEJS_CURRENT}
%endif
# SLE-15 variants, variation based on SP
%if 0%{sle_version} >= 150000 && 0%{sle_version} < 150200
Requires: nodejs10
%endif
%if 0%{sle_version} >= 150200
Requires: nodejs%{NODEJS_LTS}
%endif
# END - GENERAL ARCHES
%endif
%description -n nodejs-default
Depends on the most current and up-to-date version of nodejs for
the current architecture and codestream.
%prep
%build
cp %{S:2} .