forked from pool/nodejs18
Accepting request 1031990 from devel:languages:nodejs
- Update to NodeJS 18.12.0 LTS: * Running in 'watch' mode using node --watch restarts the process when an imported file is changed. * fs: add FileHandle.prototype.readLines * http: add writeEarlyHints function to ServerResponse * http2: make early hints generic * util: add default value option to parsearg OBS-URL: https://build.opensuse.org/request/show/1031990 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nodejs18?expand=0&rev=5
This commit is contained in:
commit
50c4a403fc
@ -1,34 +1,34 @@
|
||||
d567b0b7ab71139ee90fd7cdadc11602e183db2a23a5ffb393f92870eac033e2 node-v18.11.0-aix-ppc64.tar.gz
|
||||
db5f8d16967d8b04129d77013101c9b0bb8a3b98e5895cf4bfd9a9af21ff8e27 node-v18.11.0-darwin-arm64.tar.gz
|
||||
0feec3a2b9ef82e1763dc88047565d5c390927e70376919c2fc17e9b47728c29 node-v18.11.0-darwin-arm64.tar.xz
|
||||
3d3a4368c35f0bce45b1dc2eeb0b25765afee8a188441a81db93d16bc08bb861 node-v18.11.0-darwin-x64.tar.gz
|
||||
655487c8e4be33c09fcf80076d30dcfb0980a50857a98e8aa9842a0a8bca4158 node-v18.11.0-darwin-x64.tar.xz
|
||||
bf7565b7172598b4f746d574e56518000a44c5039eb9e6561c190695f88ae922 node-v18.11.0-headers.tar.gz
|
||||
79dcc78fa00e75ff37b7df23b8bfa12ade859bbe4ba01413e327a16f615a2056 node-v18.11.0-headers.tar.xz
|
||||
48e5008774bd36471ece361e7a8795d59a0d40da7e849e13a1ed7f33cf8095a5 node-v18.11.0-linux-arm64.tar.gz
|
||||
c2869d3b9fc82e289470807de98c21f3944ddd741a4cb2ac5fe93a41efbaef13 node-v18.11.0-linux-arm64.tar.xz
|
||||
787bb825140058c59c2f2d9b735596fbd2cb229137712a67c1ee2659e8da33bc node-v18.11.0-linux-armv7l.tar.gz
|
||||
efe3e6e7216a45c4c01aaba9d57f4075404bc2af51121371c5708547a80265b9 node-v18.11.0-linux-armv7l.tar.xz
|
||||
20fc4fc62481f14f180b549dbcea270854b6ca140adef8867e68ff5074d3c28e node-v18.11.0-linux-ppc64le.tar.gz
|
||||
3d550cf0b710e14b0e30aa7b095b4ad709a33937ffe92af9ecce8f57f6daafe2 node-v18.11.0-linux-ppc64le.tar.xz
|
||||
5ef680634c6c66ce59ec4732a6acf6869199ef937ff5832da65fbfd3d15c20bd node-v18.11.0-linux-s390x.tar.gz
|
||||
89d65a429330aacf0dac4a3bee6687b6b1b9392d2f14c5f84a1b79077c1d37d0 node-v18.11.0-linux-s390x.tar.xz
|
||||
5935236185a515b4beb991baabbe0084d552eb5122ab9b3fd0fad018af795cb3 node-v18.11.0-linux-x64.tar.gz
|
||||
3708a27c761c0a6e4035ac291819743383176a67b628809b7563b3f4173e527a node-v18.11.0-linux-x64.tar.xz
|
||||
5295431cb343561620278073bbff86d491557d903103e38bf10d15f93e1bd893 node-v18.11.0.pkg
|
||||
f54dab6bbb44463a1b7b5922d822827b96e1f1a565b79f9bcb8153d0eafc9dd6 node-v18.11.0.tar.gz
|
||||
8b9643dc6fce79c1e99379db0ce64e43601e2e2d7389015fe8985cc4ccd0ce17 node-v18.11.0.tar.xz
|
||||
86d18e9024fb5cd1fc1a10e0b1d0cd3475df7c39ba7fc742b775a8d289af7bb5 node-v18.11.0-win-x64.7z
|
||||
dd324997b66bac55c8ca689093dfafdc5a76dda12446306bd6411d17d08879f7 node-v18.11.0-win-x64.zip
|
||||
38fc1c4355dff0f70f65a0fb5ec5c096c6b14c5124a9c114b42b74c53007e5fa node-v18.11.0-win-x86.7z
|
||||
99119c0181eab9e2d4f718025a08108a3d061cb298049e9da79df2e8be177601 node-v18.11.0-win-x86.zip
|
||||
a0e91887a61279951e60fba929c261a652f710e12d68bc6dabd3760a970c76b9 node-v18.11.0-x64.msi
|
||||
a939768932475c5bf30f719b870283b044325675f5dab84248eccbf5bb795701 node-v18.11.0-x86.msi
|
||||
5dba1c79be04ba7f23fa1b617a917bd948c05710bcef398db81b7e59f2a3319f win-x64/node.exe
|
||||
10b1f6ffd3a10fc33e497ea66019a5f66b748c1f8767fcb22cd3c365b5c30b64 node-v18.12.0-aix-ppc64.tar.gz
|
||||
7aa5ef109086be0adf433b851504f0522a71a02c6d675e729375cd591a854f3c node-v18.12.0-darwin-arm64.tar.gz
|
||||
e37d6b4fbb4ca4ef3af0a095ff9089d7a5c3c80d4bc36d916987406f06573464 node-v18.12.0-darwin-arm64.tar.xz
|
||||
cb3ca15bec3e5732a82bf321af30da8105f61df3934c0e79e6d3e54f84ca7913 node-v18.12.0-darwin-x64.tar.gz
|
||||
e0e830f859ee20f53c830f1ad86477defee79f87915976cbee14caf6204bbf16 node-v18.12.0-darwin-x64.tar.xz
|
||||
9c5910727de8edcb2f6cd9f41ee9efe6a6b20e5ebcf30ad4fa86682d0dab5dcf node-v18.12.0-headers.tar.gz
|
||||
4b6cc138ebe09d0c6d5189a5352a582811ca67b21318240b928f522690a4e632 node-v18.12.0-headers.tar.xz
|
||||
9bb70b30b9d34f2b859cfef73ec3134537408dbf7806d45f104bc1e1d3c832e9 node-v18.12.0-linux-arm64.tar.gz
|
||||
a4b0579dd9a046e1bc99eb5bd739c3a9819170e0138a7fe0c8afc24fcad13ba8 node-v18.12.0-linux-arm64.tar.xz
|
||||
994140b168f39a7d2ccf5c1a1a46a74264d3a1e82a2d76f1a737a5b8a5db4431 node-v18.12.0-linux-armv7l.tar.gz
|
||||
4f2922620760b5cc1ebe8db4ed543100ab02ea39485d8bd84f8f11c46d9a28e5 node-v18.12.0-linux-armv7l.tar.xz
|
||||
bc709119b634de60464f898ad215c4c273e5502f6f42df483e180f830f7f5a66 node-v18.12.0-linux-ppc64le.tar.gz
|
||||
7906a3e5dfc21ed2be755e7867f72b6e839951d514005b01fe8ccfbac179bcb7 node-v18.12.0-linux-ppc64le.tar.xz
|
||||
2eab63f02943722fd2e342938f0b6d6dea132ed5a0a9ba283dc36e3d3ff73ac8 node-v18.12.0-linux-s390x.tar.gz
|
||||
47200196b1acf3931f521b87c57343c3a523825eb0922b7aca8456477df50afc node-v18.12.0-linux-s390x.tar.xz
|
||||
0699c8e02581a9c312d7157331561d36ef23963766eb47daa702edb6fd6735bd node-v18.12.0-linux-x64.tar.gz
|
||||
9429e26d9a35cb079897f0a22622fe89ff597976259a8fcb38b7d08b154789dc node-v18.12.0-linux-x64.tar.xz
|
||||
83a0e2246c4f1b33e37b995b479137d14fc3cfc184cc3f798e41a8a4cca1da85 node-v18.12.0.pkg
|
||||
1fbb44d083ec11d0c208535dac4fb33f9dff7360bbf4b127dd2b9808f3e41106 node-v18.12.0.tar.gz
|
||||
73a7f01e2999eb197763ced666a6cd544ad580eaefb73e0a849603b3e804f42e node-v18.12.0.tar.xz
|
||||
cfa003b9ed643d41167a82802fdc1335a280b4844330423bf15f07dc3148d2bb node-v18.12.0-win-x64.7z
|
||||
56a3a49e0e4701f169bb742ea98f5006800229e2e3bf7e10493642f392416ac8 node-v18.12.0-win-x64.zip
|
||||
3c822e7179c544f7cf1b12ddd0de48e5d65d4c54f0c41d27949cddde4a603469 node-v18.12.0-win-x86.7z
|
||||
4affa3f3861dd791d62159fa323b91d7f555f5c94780b1452584e2df2bbfa4fe node-v18.12.0-win-x86.zip
|
||||
5c9443cc6213f88a9c702b995f04b86cda78f01f47f251ce46b7567e1197a59c node-v18.12.0-x64.msi
|
||||
8a6e8ec6e6a51d1d98052943dd324d0ac53a0f07185d9d7c7ea7c43b3b764a6b node-v18.12.0-x86.msi
|
||||
f5d52e89e7fbe0a758892182f44fb097f6f7c8fe994eb412c8f6e87274e1ea5e win-x64/node.exe
|
||||
1bd376a23d181d85096d1a9c46e6be7fcd20d30f9b8f77a2a847d3dbff8e25c7 win-x64/node.lib
|
||||
a3e3198ce8552eebe19b4357161aca13f6f47b160a5fc961e8e000e434b8ca91 win-x64/node_pdb.7z
|
||||
04f01a0c518184ff780398e4c8517a5ed755867877ba26cd92f37a8cc157328d win-x64/node_pdb.zip
|
||||
b211ce3add6afa447e69af22e5ffe08d324867a7fc9e7944ad51e76226d72c4e win-x86/node.exe
|
||||
9e1687e3662ddc35231ca25a9aac9cf16c88b6d4f07698b01c4ed1ced185c71c win-x64/node_pdb.7z
|
||||
bc13c387a6aad16f73ee15fb2effb28de745cc43c36fd4dd0cbc6bffc19637f9 win-x64/node_pdb.zip
|
||||
c5ea7601d9c284ba3c3e0bfe79a8d34c71e95ab77fa65e7ffeddab3bbe1a503e win-x86/node.exe
|
||||
b1c6dc670911d85ef1704fa56f4cc4c7e1071f4869778398e6d88b3b0b565978 win-x86/node.lib
|
||||
e0815b1c5f4df9efca3ad6b46e328e452242f301b33998c2db23d1b92fb731a6 win-x86/node_pdb.7z
|
||||
46a73edda4d9dd42a33d9e90b9721a8495db3d98bc09d90310f72266be952b20 win-x86/node_pdb.zip
|
||||
eb4e367282a758d8dbcc4ff9ce9999817fe7a841bbb74fe48877c8ba137cd7f7 win-x86/node_pdb.7z
|
||||
8b426361c373c2ac8471ee1f4321074a68c81d8b5776b92bac7c55560f0d7e6f win-x86/node_pdb.zip
|
||||
|
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8b9643dc6fce79c1e99379db0ce64e43601e2e2d7389015fe8985cc4ccd0ce17
|
||||
size 38437152
|
3
node-v18.12.0.tar.xz
Normal file
3
node-v18.12.0.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:73a7f01e2999eb197763ced666a6cd544ad580eaefb73e0a849603b3e804f42e
|
||||
size 38443968
|
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 28 10:31:50 UTC 2022 - Adam Majer <adam.majer@suse.de>
|
||||
|
||||
- Update to NodeJS 18.12.0 LTS:
|
||||
* Running in 'watch' mode using node --watch restarts the process
|
||||
when an imported file is changed.
|
||||
* fs: add FileHandle.prototype.readLines
|
||||
* http: add writeEarlyHints function to ServerResponse
|
||||
* http2: make early hints generic
|
||||
* util: add default value option to parsearg
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 17 13:02:52 UTC 2022 - Adam Majer <adam.majer@suse.de>
|
||||
|
||||
|
@ -15,13 +15,23 @@
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
###########################################################
|
||||
#
|
||||
# WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
|
||||
#
|
||||
# This spec file is generated from a template hosted at
|
||||
# https://github.com/AdamMajer/nodejs-packaging
|
||||
#
|
||||
###########################################################
|
||||
|
||||
# Fedora doesn't have rpm-config-SUSE which provides
|
||||
# ext_man in /usr/lib/rpm/macros.d/macros.obs
|
||||
%if 0%{?fedora_version}
|
||||
%define ext_man .gz
|
||||
%endif
|
||||
|
||||
Name: nodejs18
|
||||
Version: 18.11.0
|
||||
Version: 18.12.0
|
||||
Release: 0
|
||||
|
||||
# Double DWZ memory limits
|
||||
@ -119,12 +129,12 @@ Source1: https://nodejs.org/dist/v%{version}/SHASUMS256.txt
|
||||
Source2: https://nodejs.org/dist/v%{version}/SHASUMS256.txt.sig
|
||||
Source3: nodejs.keyring
|
||||
|
||||
# Python 3.4 compatible node-gyp
|
||||
### https://github.com/nodejs/node-gyp.git
|
||||
### git archive v7.1.2 gyp/ | xz > node-gyp_7.1.2.tar.xz
|
||||
Source5: node-gyp_7.1.2.tar.xz
|
||||
# Only required to run unit tests in NodeJS 10+
|
||||
Source10: update_npm_tarball.sh
|
||||
# Python 3.4 compatible node-gyp
|
||||
### https://github.com/nodejs/node-gyp.git
|
||||
### git archive v7.1.2 gyp/ | xz > node-gyp_7.1.2.tar.xz
|
||||
Source5: node-gyp_7.1.2.tar.xz
|
||||
# Only required to run unit tests in NodeJS 10+
|
||||
Source10: update_npm_tarball.sh
|
||||
Source11: node_modules.tar.xz
|
||||
Source20: bash_output_helper.bash
|
||||
|
||||
@ -135,6 +145,8 @@ Patch5: sle12_python3_compat.patch
|
||||
Patch7: manual_configure.patch
|
||||
Patch13: openssl_binary_detection.patch
|
||||
|
||||
|
||||
|
||||
## Patches specific to SUSE and openSUSE
|
||||
Patch100: linker_lto_jobs.patch
|
||||
# PATCH-FIX-OPENSUSE -- set correct path for dtrace if it is built
|
||||
@ -161,8 +173,8 @@ Patch200: versioned.patch
|
||||
Patch304: new_python3.patch
|
||||
Patch305: qemu_timeouts_arches.patch
|
||||
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: procps
|
||||
BuildRequires: xz
|
||||
BuildRequires: zlib-devel
|
||||
@ -182,10 +194,10 @@ BuildRequires: config(netcfg)
|
||||
%if 0%{?suse_version} == 1110
|
||||
# GCC 5 is only available in the SUSE:SLE-11:SP4:Update repository (SDK).
|
||||
%if %node_version_number >= 8
|
||||
BuildRequires: gcc5-c++
|
||||
BuildRequires: gcc5-c++
|
||||
%define forced_gcc_version 5
|
||||
%else
|
||||
BuildRequires: gcc48-c++
|
||||
BuildRequires: gcc48-c++
|
||||
%define forced_gcc_version 4.8
|
||||
%endif
|
||||
%endif
|
||||
@ -195,15 +207,15 @@ BuildRequires: gcc48-c++
|
||||
# for SLE-12:Update targets
|
||||
%if 0%{?suse_version} == 1315
|
||||
%if %node_version_number >= 17
|
||||
BuildRequires: gcc12-c++
|
||||
BuildRequires: gcc12-c++
|
||||
%define forced_gcc_version 12
|
||||
%else
|
||||
%if %node_version_number >= 14
|
||||
BuildRequires: gcc9-c++
|
||||
BuildRequires: gcc9-c++
|
||||
%define forced_gcc_version 9
|
||||
%else
|
||||
%if %node_version_number >= 8
|
||||
BuildRequires: gcc7-c++
|
||||
BuildRequires: gcc7-c++
|
||||
%define forced_gcc_version 7
|
||||
%endif
|
||||
%endif
|
||||
@ -212,7 +224,7 @@ BuildRequires: gcc7-c++
|
||||
|
||||
%if 0%{?suse_version} == 1500
|
||||
%if %node_version_number >= 17
|
||||
BuildRequires: gcc12-c++
|
||||
BuildRequires: gcc12-c++
|
||||
%define forced_gcc_version 12
|
||||
%endif
|
||||
%endif
|
||||
@ -223,6 +235,7 @@ BuildRequires: gcc12-c++
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
|
||||
|
||||
# Python dependencies
|
||||
%if %node_version_number >= 16
|
||||
|
||||
@ -247,8 +260,8 @@ BuildRequires: python
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} >= 1500 && %{node_version_number} >= 10
|
||||
BuildRequires: group(nobody)
|
||||
BuildRequires: user(nobody)
|
||||
BuildRequires: group(nobody)
|
||||
%endif
|
||||
|
||||
%if ! 0%{with intree_openssl}
|
||||
@ -311,7 +324,7 @@ BuildRequires: valgrind
|
||||
%if %{with libalternatives}
|
||||
Requires: alts
|
||||
%else
|
||||
Requires(postun):%{_sbindir}/update-alternatives
|
||||
Requires(postun): %{_sbindir}/update-alternatives
|
||||
%endif
|
||||
# either for update-alternatives, or their removal
|
||||
Requires(post): %{_sbindir}/update-alternatives
|
||||
@ -350,8 +363,8 @@ ExclusiveArch: not_buildable
|
||||
%endif
|
||||
%endif
|
||||
|
||||
Provides: bundled(libuv) = 1.43.0
|
||||
Provides: bundled(uvwasi) = 0.0.13
|
||||
Provides: bundled(libuv) = 1.43.0
|
||||
Provides: bundled(v8) = 10.2.154.15
|
||||
%if %{with intree_brotli}
|
||||
Provides: bundled(brotli) = 1.0.9
|
||||
@ -359,6 +372,7 @@ Provides: bundled(brotli) = 1.0.9
|
||||
BuildRequires: pkgconfig(libbrotlidec)
|
||||
%endif
|
||||
|
||||
|
||||
Provides: bundled(llhttp) = 6.0.10
|
||||
Provides: bundled(ngtcp2) = 0.8.1
|
||||
|
||||
@ -379,8 +393,8 @@ provided by npm.
|
||||
Summary: Development headers for NodeJS 18.x
|
||||
Group: Development/Languages/NodeJS
|
||||
Provides: nodejs-devel = %{version}
|
||||
Requires: %{name} = %{version}
|
||||
Requires: npm18 = %{version}
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description devel
|
||||
This package provides development headers for Node.js needed for creation
|
||||
@ -397,12 +411,12 @@ Requires: nodejs-common
|
||||
Requires: nodejs18 = %{version}
|
||||
Provides: nodejs-npm = %{version}
|
||||
Obsoletes: nodejs-npm < 4.0.0
|
||||
Provides: npm = %{version}
|
||||
Provides: npm(npm) = 8.19.2
|
||||
Provides: npm = %{version}
|
||||
%if 0%{?suse_version} >= 1500
|
||||
%if %{node_version_number} >= 10
|
||||
Requires: group(nobody)
|
||||
Requires: user(nobody)
|
||||
Requires: group(nobody)
|
||||
%endif
|
||||
%endif
|
||||
Provides: bundled(node-abbrev) = 1.1.1
|
||||
@ -568,8 +582,8 @@ Provides: bundled(node-spdx-exceptions) = 2.3.0
|
||||
Provides: bundled(node-spdx-expression-parse) = 3.0.1
|
||||
Provides: bundled(node-spdx-license-ids) = 3.0.11
|
||||
Provides: bundled(node-ssri) = 9.0.1
|
||||
Provides: bundled(node-string-width) = 4.2.3
|
||||
Provides: bundled(node-string_decoder) = 1.3.0
|
||||
Provides: bundled(node-string-width) = 4.2.3
|
||||
Provides: bundled(node-strip-ansi) = 6.0.1
|
||||
Provides: bundled(node-supports-color) = 7.2.0
|
||||
Provides: bundled(node-tar) = 6.1.11
|
||||
@ -670,12 +684,13 @@ find -name \*~ -print0 -delete
|
||||
find \( -name \*.js.orig -or -name \*.md.orig -or -name \*.1.orig \) -delete
|
||||
|
||||
# downgrade node-gyp to last version that supports python 3.4 for SLE12
|
||||
%if 0%{?use_version} && 0%{?suse_version} < 1500
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1500
|
||||
rm -r deps/npm/node_modules/node-gyp
|
||||
mkdir deps/npm/node_modules/node-gyp
|
||||
tar -C deps/npm/node_modules/node-gyp Jxf %{SOURCE5}
|
||||
%endif
|
||||
|
||||
|
||||
%build
|
||||
# normalize shebang
|
||||
%if %{node_version_number} >= 12
|
||||
@ -764,7 +779,9 @@ EOF
|
||||
%if 0%{with gdb}
|
||||
--gdb \
|
||||
%endif
|
||||
%if %{node_version_number} < 19
|
||||
--without-dtrace \
|
||||
%endif
|
||||
%if %{node_version_number} >= 16 && (0%{?suse_version} > 1550 || 0%{?sle_version} >= 150400)
|
||||
--openssl-default-cipher-list=PROFILE=SYSTEM \
|
||||
%endif
|
||||
@ -1001,9 +1018,11 @@ make test-ci
|
||||
%files devel
|
||||
%defattr(-, root, root)
|
||||
%{_includedir}/node%{node_version_number}
|
||||
%if %{node_version_number} < 19
|
||||
%dir %{_datadir}/systemtap
|
||||
%dir %{_datadir}/systemtap/tapset
|
||||
%{_datadir}/systemtap/tapset/node%{node_version_number}.stp
|
||||
%endif
|
||||
|
||||
%files docs
|
||||
%defattr(-,root,root)
|
||||
@ -1019,7 +1038,6 @@ update-alternatives --remove npm-default %{_bindir}/npm%{node_version_number}
|
||||
update-alternatives --remove npx-default %{_bindir}/npx%{node_version_number}
|
||||
|
||||
%else
|
||||
|
||||
%pre
|
||||
# remove files that are no longer owned but provided by update-alternatives
|
||||
if ! [ -L %{_mandir}/man1/node.1%{ext_man} ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user