5488cf
# The following macros control the usage of dependencies bundled from upstream.
5488cf
#
5488cf
# When to use what:
5488cf
# - Regular (presumably non-modular) build: use neither (the default in Fedora)
5488cf
# - Early bootstrapping build that is not intended to be shipped:
5488cf
#     use --with=bootstrap; this will bundle deps and add `~bootstrap` release suffix
5488cf
# - Build with some dependencies not avalaible in necessary versions (i.e. module build):
5488cf
#     use --with=bundled; will bundle deps, but do not add the suffix
5488cf
#
5488cf
# create bootstrapping build with bundled deps and extra release suffix
5488cf
%bcond_with bootstrap
5488cf
# bundle dependencies that are not available in CentOS
5488cf
# currently hardcoded to bundle; see Fedora spec on how to make this dependent on bootstrap
5488cf
%bcond_without bundled
89116a
89116a
%if 0%{?rhel} && 0%{?rhel} < 9
402b71
%bcond_without python3_fixup
89116a
%else
89116a
%bcond_with python3_fixup
89116a
%endif
402b71
402b71
# LTO is currently broken on Node.js builds
402b71
%define _lto_cflags %{nil}
402b71
89116a
# Heavy-handed approach to avoiding issues with python
89116a
# bytecompiling files in the node_modules/ directory
89116a
%global __python %{__python3}
89116a
402b71
# == Master Relase ==
89116a
# This is used by both the nodejs package and the npm subpackage that
402b71
# has a separate version - the name is special so that rpmdev-bumpspec
402b71
# will bump this rather than adding .1 to the end.
a515d1
%global baserelease 3
402b71
402b71
%{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
402b71
402b71
# == Node.js Version ==
402b71
# Note: Fedora should only ship LTS versions of Node.js (currently expected
402b71
# to be major versions with even numbers). The odd-numbered versions are new
402b71
# feature releases that are only supported for nine months, which is shorter
402b71
# than a Fedora release lifecycle.
402b71
%global nodejs_epoch 1
402b71
%global nodejs_major 16
a515d1
%global nodejs_minor 18
a515d1
%global nodejs_patch 1
402b71
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
402b71
# nodejs_soversion - from NODE_MODULE_VERSION in src/node_version.h
402b71
%global nodejs_soversion 93
402b71
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}
402b71
%global nodejs_release %{baserelease}
402b71
402b71
%global nodejs_datadir %{_datarootdir}/nodejs
402b71
402b71
# == Bundled Dependency Versions ==
402b71
# v8 - from deps/v8/include/v8-version.h
402b71
# Epoch is set to ensure clean upgrades from the old v8 package
402b71
%global v8_epoch 2
402b71
%global v8_major 9
89116a
%global v8_minor 4
89116a
%global v8_build 146
a515d1
%global v8_patch 26
402b71
# V8 presently breaks ABI at least every x.y release while never bumping SONAME
402b71
%global v8_abi %{v8_major}.%{v8_minor}
402b71
%global v8_version %{v8_major}.%{v8_minor}.%{v8_build}.%{v8_patch}
402b71
%global v8_release %{nodejs_epoch}.%{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release}
402b71
402b71
# c-ares - from deps/cares/include/ares_version.h
402b71
# https://github.com/nodejs/node/pull/9332
89116a
%global c_ares_version 1.18.1
402b71
402b71
# llhttp - from deps/llhttp/include/llhttp.h
a515d1
%global llhttp_version 6.0.10
402b71
402b71
# libuv - from deps/uv/include/uv/version.h
89116a
%global libuv_version 1.43.0
402b71
402b71
# nghttp2 - from deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h
a515d1
%global nghttp2_version 1.47.0
402b71
402b71
# nghttp3 - from deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h
402b71
%global nghttp3_major 0
a515d1
%global nghttp3_minor 7
a515d1
%global nghttp3_patch 0
402b71
%global nghttp3_version %{nghttp3_major}.%{nghttp3_minor}.%{nghttp3_patch}
402b71
402b71
# ngtcp2 from deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h
402b71
%global ngtcp2_major 0
a515d1
%global ngtcp2_minor 8
a515d1
%global ngtcp2_patch 1
402b71
%global ngtcp2_version %{ngtcp2_major}.%{ngtcp2_minor}.%{ngtcp2_patch}
402b71
402b71
# ICU - from tools/icu/current_ver.dep
a515d1
%global icu_major 71
402b71
%global icu_minor 1
402b71
%global icu_version %{icu_major}.%{icu_minor}
402b71
402b71
%global icudatadir %{nodejs_datadir}/icudata
402b71
%{!?little_endian: %global little_endian %(%{__python3} -c "import sys;print (0 if sys.byteorder=='big' else 1)")}
402b71
# " this line just fixes syntax highlighting for vim that is confused by the above and continues literal
402b71
402b71
%global sys_icu_version %(/usr/bin/icu-config --version)
402b71
402b71
%if "%{sys_icu_version}" >= "%{icu_version}"
402b71
%global bundled_icu 0
402b71
%global icu_flag system-icu
402b71
%else
402b71
%global bundled_icu 1
402b71
%global icu_flag full-icu
402b71
%endif
402b71
402b71
# OpenSSL minimum version
402b71
%global openssl_minimum 1:1.1.1
402b71
402b71
# punycode - from lib/punycode.js
402b71
# Note: this was merged into the mainline since 0.6.x
402b71
# Note: this will be unmerged in an upcoming major release
89116a
%global punycode_version 2.1.0
402b71
402b71
# npm - from deps/npm/package.json
402b71
%global npm_epoch 1
a515d1
%global npm_version 8.19.2
402b71
402b71
# In order to avoid needing to keep incrementing the release version for the
402b71
# main package forever, we will just construct one for npm that is guaranteed
402b71
# to increment safely. Changing this can only be done during an update when the
402b71
# base npm version number is increasing.
402b71
%global npm_release %{nodejs_epoch}.%{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release}
402b71
89116a
# uvwasi - from deps/uvwasi/include/uvwasi.h
a515d1
%global uvwasi_version 0.0.13
89116a
89116a
# histogram_c - assumed from timestamps
a515d1
%global histogram_version 0.11.2
402b71
402b71
Name: nodejs
402b71
Epoch: %{nodejs_epoch}
402b71
Version: %{nodejs_version}
402b71
Release: %{nodejs_release}%{?dist}
402b71
Summary: JavaScript runtime
402b71
License: MIT and ASL 2.0 and ISC and BSD
402b71
Group: Development/Languages
402b71
URL: http://nodejs.org/
402b71
402b71
ExclusiveArch: %{nodejs_arches}
402b71
402b71
# nodejs bundles openssl, but we use the system version in Fedora
402b71
# because openssl contains prohibited code, we remove openssl completely from
402b71
# the tarball, using the script in Source100
402b71
Source0: node-v%{nodejs_version}-stripped.tar.gz
402b71
Source1: npmrc
402b71
Source2: btest402.js
402b71
Source3: https://github.com/unicode-org/icu/releases/download/release-%{icu_major}-%{icu_minor}/icu4c-%{icu_major}_%{icu_minor}-src.tgz
402b71
Source100: %{name}-tarball.sh
402b71
402b71
# The native module Requires generator remains in the nodejs SRPM, so it knows
402b71
# the nodejs and v8 versions.  The remainder has migrated to the
402b71
# nodejs-packaging SRPM.
402b71
Source7: nodejs_native.attr
402b71
a515d1
# These are full sources for dependencies included as WASM blobs in the source of Node itself.
a515d1
# Note: These sources would also include pre-compiled WASM blobs… so they are adjusted not to.
a515d1
# Recipes for creating these blobs are included in the sources.
a515d1
a515d1
# Version: jq '.version' deps/cjs-module-lexer/package.json
a515d1
# Original: https://github.com/nodejs/cjs-module-lexer/archive/refs/tags/1.2.2.tar.gz
a515d1
# Adjustments: rm -f cjs-module-lexer-1.2.2/lib/lexer.wasm
a515d1
Source101: cjs-module-lexer-1.2.2.tar.gz
a515d1
# The WASM blob was made using wasi-sdk v11; compiler libraries are linked in.
a515d1
# Version source: Makefile
a515d1
Source102: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-11/wasi-sdk-wasi-sdk-11.tar.gz
a515d1
a515d1
# Version: jq '.version' deps/undici/src/package.json
a515d1
# Original: https://github.com/nodejs/undici/archive/refs/tags/v5.10.0.tar.gz
a515d1
# Adjustments: rm -f undici-5.10.0/lib/llhttp/llhttp*.wasm*
a515d1
Source111: undici-5.10.0.tar.gz
a515d1
# The WASM blob was made using wasi-sdk v14; compiler libraries are linked in.
a515d1
# Version source: build/Dockerfile
a515d1
Source112: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-14/wasi-sdk-wasi-sdk-14.tar.gz
a515d1
402b71
# Disable running gyp on bundled deps we don't use
402b71
Patch1: 0001-Disable-running-gyp-on-shared-deps.patch
a515d1
Patch2: 0002-install-keep-installing-dtrace-and-systemtap-files.patch
5488cf
402b71
BuildRequires: make
402b71
BuildRequires: python3-devel
402b71
BuildRequires: python3-setuptools
89116a
BuildRequires: python3-jinja2
89116a
%if !%{with python3_fixup}
89116a
BuildRequires: python-unversioned-command
89116a
%endif
402b71
BuildRequires: zlib-devel
402b71
BuildRequires: brotli-devel
402b71
BuildRequires: gcc >= 8.3.0
402b71
BuildRequires: gcc-c++ >= 8.3.0
89116a
BuildRequires: jq
402b71
# needed to generate bundled provides for npm dependencies
402b71
# https://src.fedoraproject.org/rpms/nodejs/pull-request/2
402b71
# https://pagure.io/nodejs-packaging/pull-request/10
402b71
BuildRequires: nodejs-packaging
402b71
BuildRequires: chrpath
402b71
BuildRequires: libatomic
402b71
BuildRequires: systemtap-sdt-devel
402b71
5488cf
%if %{with bundled}
5488cf
Provides:      bundled(libuv) = %{libuv_version}
89116a
%else
5488cf
BuildRequires:  libuv-devel >= 1:%{libuv_version}
5488cf
Requires:       libuv-devel >= 1:%{libuv_version}
89116a
%endif
5488cf
5488cf
%if %{with bundled} || !(0%{?fedora} || 0%{?rhel} >= 9)
5488cf
Provides:      bundled(nghttp2) = %{nghttp2_version}
5488cf
%else
5488cf
BuildRequires:  libnghttp2-devel >= %{nghttp2_version}
5488cf
Requires:       libnghttp2-devel >= %{nghttp2_version}
402b71
%endif
402b71
402b71
# Temporarily bundle llhttp because the upstream doesn't
402b71
# provide releases for it.
402b71
Provides: bundled(llhttp) = %{llhttp_version}
402b71
Provides: bundled(nghttp3) = %{nghttp3_version}
402b71
Provides: bundled(ngtcp2) = %{ngtcp2_version}
402b71
402b71
BuildRequires: openssl-devel >= %{openssl_minimum}
402b71
Requires: openssl >= %{openssl_minimum}
402b71
402b71
# we need the system certificate store
402b71
Requires: ca-certificates
402b71
402b71
Requires: nodejs-libs%{?_isa} = %{nodejs_epoch}:%{version}-%{release}
402b71
402b71
# Pull in the full-icu data by default
402b71
Recommends: nodejs-full-i18n%{?_isa} = %{nodejs_epoch}:%{version}-%{release}
402b71
402b71
# we need ABI virtual provides where SONAMEs aren't enough/not present so deps
402b71
# break when binary compatibility is broken
402b71
Provides: nodejs(abi) = %{nodejs_abi}
402b71
Provides: nodejs(abi%{nodejs_major}) = %{nodejs_abi}
402b71
Provides: nodejs(v8-abi) = %{v8_abi}
402b71
Provides: nodejs(v8-abi%{v8_major}) = %{v8_abi}
402b71
402b71
# this corresponds to the "engine" requirement in package.json
402b71
Provides: nodejs(engine) = %{nodejs_version}
402b71
402b71
# Node.js currently has a conflict with the 'node' package in Fedora
402b71
# The ham-radio group has agreed to rename their binary for us, but
402b71
# in the meantime, we're setting an explicit Conflicts: here
402b71
Conflicts: node <= 0.3.2-12
402b71
402b71
# The punycode module was absorbed into the standard library in v0.6.
402b71
# It still exists as a seperate package for the benefit of users of older
402b71
# versions.  Since we've never shipped anything older than v0.10 in Fedora,
402b71
# we don't need the seperate nodejs-punycode package, so we Provide it here so
402b71
# dependent packages don't need to override the dependency generator.
402b71
# See also: RHBZ#11511811
402b71
# UPDATE: punycode will be deprecated and so we should unbundle it in Node v8
402b71
# and use upstream module instead
402b71
# https://github.com/nodejs/node/commit/29e49fc286080215031a81effbd59eac092fff2f
402b71
Provides: nodejs-punycode = %{punycode_version}
402b71
Provides: npm(punycode) = %{punycode_version}
402b71
402b71
# Node.js has forked c-ares from upstream in an incompatible way, so we need
402b71
# to carry the bundled version internally.
402b71
# See https://github.com/nodejs/node/commit/766d063e0578c0f7758c3a965c971763f43fec85
402b71
Provides: bundled(c-ares) = %{c_ares_version}
402b71
402b71
# Node.js is closely tied to the version of v8 that is used with it. It makes
402b71
# sense to use the bundled version because upstream consistently breaks ABI
402b71
# even in point releases. Node.js upstream has now removed the ability to build
402b71
# against a shared system version entirely.
402b71
# See https://github.com/nodejs/node/commit/d726a177ed59c37cf5306983ed00ecd858cfbbef
402b71
Provides: bundled(v8) = %{v8_version}
402b71
402b71
# Node.js is bound to a specific version of ICU which may not match the OS
402b71
# We cannot pin the OS to this version of ICU because every update includes
402b71
# an ABI-break, so we'll use the bundled copy.
402b71
Provides: bundled(icu) = %{icu_version}
402b71
402b71
# Upstream added new dependencies, but so far they are not available in Fedora
402b71
# or there's no option to built it as a shared dependency, so we bundle them
402b71
Provides: bundled(uvwasi) = %{uvwasi_version}
402b71
Provides: bundled(histogram) = %{histogram_version}
402b71
402b71
%if 0%{?fedora}
402b71
# Make sure to pull in the appropriate packaging macros when building RPMs
402b71
Requires: (nodejs-packaging if rpm-build)
402b71
%endif
402b71
402b71
# Make sure we keep NPM up to date when we update Node.js
402b71
Recommends: npm >= %{npm_epoch}:%{npm_version}-%{npm_release}%{?dist}
402b71
402b71
%description
402b71
Node.js is a platform built on Chrome's JavaScript runtime
402b71
for easily building fast, scalable network applications.
402b71
Node.js uses an event-driven, non-blocking I/O model that
402b71
makes it lightweight and efficient, perfect for data-intensive
402b71
real-time applications that run across distributed devices.
402b71
402b71
402b71
%package devel
402b71
Summary: JavaScript runtime - development headers
402b71
Group: Development/Languages
402b71
Requires: %{name}%{?_isa} = %{epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
402b71
Requires: openssl-devel%{?_isa}
402b71
Requires: zlib-devel%{?_isa}
402b71
Requires: brotli-devel%{?_isa}
402b71
Requires: nodejs-packaging
402b71
5488cf
%if %{without bundled}
402b71
Requires: libuv-devel%{?_isa}
402b71
%endif
402b71
402b71
%description devel
402b71
Development headers for the Node.js JavaScript runtime.
402b71
402b71
402b71
%package libs
402b71
Summary: Node.js and v8 libraries
402b71
402b71
# Compatibility for obsolete v8 package
402b71
%if 0%{?__isa_bits} == 64
402b71
Provides: libv8.so.%{v8_major}()(64bit)
402b71
Provides: libv8_libbase.so.%{v8_major}()(64bit)
402b71
Provides: libv8_libplatform.so.%{v8_major}()(64bit)
402b71
%else
402b71
# 32-bits
402b71
Provides: libv8.so.%{v8_major}
402b71
Provides: libv8_libbase.so.%{v8_major}
402b71
Provides: libv8_libplatform.so.%{v8_major}
402b71
%endif
402b71
402b71
Provides: v8 = %{v8_epoch}:%{v8_version}-%{nodejs_release}%{?dist}
402b71
Provides: v8%{?_isa} = %{v8_epoch}:%{v8_version}-%{nodejs_release}%{?dist}
402b71
Obsoletes: v8 < 1:6.7.17-10
402b71
402b71
%description libs
402b71
Libraries to support Node.js and provide stable v8 interfaces.
402b71
402b71
402b71
%package full-i18n
402b71
Summary: Non-English locale data for Node.js
402b71
Requires: %{name}%{?_isa} = %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
402b71
402b71
%description full-i18n
402b71
Optional data files to provide full-icu support for Node.js. Remove this
402b71
package to save space if non-English locales are not needed.
402b71
402b71
402b71
%package -n v8-devel
402b71
Summary: v8 - development headers
402b71
Epoch: %{v8_epoch}
402b71
Version: %{v8_version}
402b71
Release: %{v8_release}%{?dist}
402b71
Requires: %{name}-devel%{?_isa} = %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
402b71
402b71
%description -n v8-devel
402b71
Development headers for the v8 runtime.
402b71
402b71
402b71
%package -n npm
402b71
Summary: Node.js Package Manager
402b71
Epoch: %{npm_epoch}
402b71
Version: %{npm_version}
402b71
Release: %{npm_release}%{?dist}
402b71
402b71
# We used to ship npm separately, but it is so tightly integrated with Node.js
402b71
# (and expected to be present on all Node.js systems) that we ship it bundled
402b71
# now.
402b71
Obsoletes: npm < 0:3.5.4-6
402b71
Provides: npm = %{npm_epoch}:%{npm_version}
402b71
Requires: nodejs = %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
402b71
Recommends: nodejs-docs = %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
402b71
402b71
# Do not add epoch to the virtual NPM provides or it will break
402b71
# the automatic dependency-generation script.
402b71
Provides: npm(npm) = %{npm_version}
402b71
402b71
%description -n npm
402b71
npm is a package manager for node.js. You can use it to install and publish
402b71
your node programs. It manages dependencies and does other cool stuff.
402b71
402b71
402b71
%package docs
402b71
Summary: Node.js API documentation
402b71
Group: Documentation
402b71
BuildArch: noarch
402b71
402b71
# We don't require that the main package be installed to
402b71
# use the docs, but if it is installed, make sure the
402b71
# version always matches
402b71
Conflicts: %{name} > %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
402b71
Conflicts: %{name} < %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
402b71
402b71
%description docs
402b71
The API documentation for the Node.js JavaScript runtime.
402b71
402b71
402b71
%prep
402b71
%autosetup -p1 -n node-v%{nodejs_version}
402b71
402b71
# remove bundled dependencies that we aren't building
402b71
rm -rf deps/zlib
402b71
rm -rf deps/brotli
89116a
rm -rf deps/v8/third_party/jinja2
89116a
rm -rf tools/inspector_protocol/jinja2
402b71
a515d1
# check for correct versions of dependencies we are bundling
a515d1
check_wasm_dep() {
a515d1
  local -r name="$1" source="$2" packagejson="$3"
a515d1
  local -r expected_version="$(jq -r '.version' "${packagejson}")"
a515d1
a515d1
  if ls "${source}"|grep -q --fixed-strings "${expected_version}"; then
a515d1
    printf '%s version matches\n' "${name}" >&2
a515d1
  else
a515d1
    printf '%s version MISMATCH: %s !~ %s\n' "${name}" "${expected_version}" "${source}" >&2
a515d1
    return 1
a515d1
  fi
a515d1
}
a515d1
a515d1
check_wasm_dep cjs-module-lexer '%{SOURCE101}' deps/cjs-module-lexer/package.json
a515d1
check_wasm_dep undici           '%{SOURCE111}' deps/undici/src/package.json
a515d1
402b71
# Replace any instances of unversioned python' with python3
402b71
%if %{with python3_fixup}
402b71
pathfix.py -i %{__python3} -pn $(find -type f ! -name "*.js")
402b71
find . -type f -exec sed -i "s~/usr\/bin\/env python~/usr/bin/python3~" {} \;
402b71
find . -type f -exec sed -i "s~/usr\/bin\/python\W~/usr/bin/python3~" {} \;
402b71
sed -i "s~usr\/bin\/python2~usr\/bin\/python3~" ./deps/v8/tools/gen-inlining-tests.py
402b71
sed -i "s~usr\/bin\/python.*$~usr\/bin\/python3~" ./deps/v8/tools/mb/mb_unittest.py
402b71
find . -type f -exec sed -i "s~python -c~python3 -c~" {} \;
402b71
%endif
402b71
402b71
%build
402b71
# When compiled on armv7hl this package generates an out of range
402b71
# reference to the literal pool.  This is most likely a GCC issue.
402b71
%ifarch armv7hl
402b71
%define _lto_cflags %{nil}
402b71
%endif
402b71
402b71
%ifarch s390 s390x %{arm} %ix86
402b71
# Decrease debuginfo verbosity to reduce memory consumption during final
402b71
# library linking
402b71
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
402b71
%endif
402b71
402b71
export CC='%{__cc}'
402b71
export CXX='%{__cxx}'
402b71
%{?with_python3_fixup:export NODE_GYP_FORCE_PYTHON=%{__python3}}
402b71
402b71
# build with debugging symbols and add defines from libuv (#892601)
402b71
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
402b71
# NULL objects. We need to pass -fno-delete-null-pointer-checks
5488cf
extra_cflags=(
5488cf
    -D_LARGEFILE_SOURCE
5488cf
    -D_FILE_OFFSET_BITS=64
5488cf
    -DZLIB_CONST
5488cf
    -fno-delete-null-pointer-checks
5488cf
)
5488cf
export CFLAGS="%{optflags} ${extra_cflags[*]}" CXXFLAGS="%{optflags} ${extra_cflags[*]}"
402b71
export LDFLAGS="%{build_ldflags}"
402b71
402b71
%{__python3} configure.py --prefix=%{_prefix} \
402b71
           --shared \
402b71
           --libdir=%{_lib} \
402b71
           --shared-openssl \
402b71
           --shared-zlib \
402b71
           --shared-brotli \
5488cf
           %{!?with_bundled:--shared-libuv} \
5488cf
           %{!?with_bundled:--shared-nghttp2} \
a515d1
           %{?with_bundled:--without-dtrace}%{!?with_bundled:--with-dtrace} \
402b71
           --with-intl=small-icu \
402b71
           --with-icu-default-data-dir=%{icudatadir} \
a515d1
           --without-corepack \
402b71
           --openssl-use-def-ca-store \
402b71
           --openssl-default-cipher-list=PROFILE=SYSTEM
402b71
402b71
make BUILDTYPE=Release %{?_smp_mflags}
402b71
402b71
# Extract the ICU data and convert it to the appropriate endianness
402b71
pushd deps/
402b71
tar xfz %SOURCE3
402b71
402b71
pushd icu/source
402b71
402b71
mkdir -p converted
402b71
%if 0%{?little_endian}
402b71
# The little endian data file is included in the ICU sources
402b71
install -Dpm0644 data/in/icudt%{icu_major}l.dat converted/
402b71
402b71
%else
402b71
# For the time being, we need to build ICU and use the included `icupkg` tool
402b71
# to convert the little endian data file into a big-endian one.
402b71
# At some point in the future, ICU releases will start including both data
402b71
# files and we should switch to those.
402b71
mkdir -p data/out/tmp
402b71
402b71
%configure
402b71
%make_build
402b71
402b71
icu_root=$(pwd)
402b71
LD_LIBRARY_PATH=./lib ./bin/icupkg -tb data/in/icudt%{icu_major}l.dat \
402b71
                                       converted/icudt%{icu_major}b.dat
402b71
%endif
402b71
402b71
popd # icu/source
402b71
popd # deps
402b71
402b71
402b71
%install
402b71
rm -rf %{buildroot}
402b71
402b71
./tools/install.py install %{buildroot} %{_prefix}
402b71
402b71
# Set the binary permissions properly
402b71
chmod 0755 %{buildroot}/%{_bindir}/node
402b71
chrpath --delete %{buildroot}%{_bindir}/node
402b71
402b71
# Install library symlink
402b71
ln -s libnode.so.%{nodejs_soversion} %{buildroot}%{_libdir}/libnode.so
402b71
402b71
# Install v8 compatibility symlinks
402b71
for header in %{buildroot}%{_includedir}/node/libplatform %{buildroot}%{_includedir}/node/v8*.h; do
402b71
    header=$(basename ${header})
402b71
    ln -s ./node/${header} %{buildroot}%{_includedir}/${header}
402b71
done
402b71
ln -s ./node/cppgc %{buildroot}%{_includedir}/cppgc
402b71
for soname in libv8 libv8_libbase libv8_libplatform; do
402b71
    ln -s libnode.so.%{nodejs_soversion} %{buildroot}%{_libdir}/${soname}.so
402b71
    ln -s libnode.so.%{nodejs_soversion} %{buildroot}%{_libdir}/${soname}.so.%{v8_major}
402b71
done
402b71
402b71
# own the sitelib directory
402b71
mkdir -p %{buildroot}%{_prefix}/lib/node_modules
402b71
402b71
# ensure Requires are added to every native module that match the Provides from
402b71
# the nodejs build in the buildroot
402b71
install -Dpm0644 %{SOURCE7} %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs_native.attr
402b71
cat << EOF > %{buildroot}%{_rpmconfigdir}/nodejs_native.req
402b71
#!/bin/sh
402b71
echo 'nodejs(abi%{nodejs_major}) >= %nodejs_abi'
402b71
echo 'nodejs(v8-abi%{v8_major}) >= %v8_abi'
402b71
EOF
402b71
chmod 0755 %{buildroot}%{_rpmconfigdir}/nodejs_native.req
402b71
402b71
# install documentation
402b71
mkdir -p %{buildroot}%{_pkgdocdir}/html
402b71
cp -pr doc/* %{buildroot}%{_pkgdocdir}/html
402b71
rm -f %{buildroot}%{_pkgdocdir}/html/nodejs.1
402b71
402b71
# node-gyp needs common.gypi too
402b71
mkdir -p %{buildroot}%{_datadir}/node
402b71
cp -p common.gypi %{buildroot}%{_datadir}/node
402b71
402b71
# Install the GDB init tool into the documentation directory
402b71
mv %{buildroot}/%{_datadir}/doc/node/gdbinit %{buildroot}/%{_pkgdocdir}/gdbinit
402b71
402b71
# install NPM docs to mandir
402b71
mkdir -p %{buildroot}%{_mandir} \
402b71
         %{buildroot}%{_pkgdocdir}/npm
402b71
402b71
cp -pr deps/npm/man/* %{buildroot}%{_mandir}/
402b71
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/man
402b71
ln -sf %{_mandir}  %{buildroot}%{_prefix}/lib/node_modules/npm/man
402b71
89116a
# Install Gatsby HTML documentation to %%{_pkgdocdir}
402b71
cp -pr deps/npm/docs %{buildroot}%{_pkgdocdir}/npm/
402b71
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/docs
402b71
402b71
ln -sf %{_pkgdocdir}/npm %{buildroot}%{_prefix}/lib/node_modules/npm/docs
402b71
402b71
# Node tries to install some python files into a documentation directory
402b71
# (and not the proper one). Remove them for now until we figure out what to
402b71
# do with them.
402b71
rm -f %{buildroot}/%{_defaultdocdir}/node/lldb_commands.py \
402b71
      %{buildroot}/%{_defaultdocdir}/node/lldbinit
402b71
402b71
# Some NPM bundled deps are executable but should not be. This causes
402b71
# unnecessary automatic dependencies to be added. Make them not executable.
402b71
# Skip the npm bin directory or the npm binary will not work.
402b71
find %{buildroot}%{_prefix}/lib/node_modules/npm \
402b71
    -not -path "%{buildroot}%{_prefix}/lib/node_modules/npm/bin/*" \
402b71
    -executable -type f \
402b71
    -exec chmod -x {} \;
402b71
402b71
# The above command is a little overzealous. Add a few permissions back.
89116a
chmod 0755 %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp
402b71
chmod 0755 %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
402b71
402b71
# Drop the NPM default configuration in place
402b71
mkdir -p %{buildroot}%{_sysconfdir}
402b71
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/npmrc
402b71
402b71
# NPM upstream expects it to be in /usr/etc/npmrc, so we'll put a symlink here
402b71
# This is done in the interests of keeping /usr read-only.
402b71
mkdir -p %{buildroot}%{_prefix}/etc
402b71
ln -s %{_sysconfdir}/npmrc %{buildroot}%{_prefix}/etc/npmrc
402b71
402b71
# Install the full-icu data files
402b71
install -Dpm0644 -t %{buildroot}%{icudatadir} deps/icu/source/converted/*
402b71
402b71
402b71
%check
402b71
# Fail the build if the versions don't match
402b71
LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.node, '%{nodejs_version}')"
402b71
LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.v8.replace(/-node\.\d+$/, ''), '%{v8_version}')"
402b71
LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.ares.replace(/-DEV$/, ''), '%{c_ares_version}')"
402b71
402b71
# Ensure we have punycode and that the version matches
402b71
LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{buildroot}/%{_bindir}/node -e "require(\"assert\").equal(require(\"punycode\").version, '%{punycode_version}')"
402b71
402b71
# Ensure we have npm and that the version matches
89116a
LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{buildroot}%{_bindir}/node %{buildroot}%{_bindir}/npm version --json |jq -e '.npm == "%{npm_version}"'
402b71
402b71
# Make sure i18n support is working
402b71
NODE_PATH=%{buildroot}%{_prefix}/lib/node_modules:%{buildroot}%{_prefix}/lib/node_modules/npm/node_modules LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{buildroot}/%{_bindir}/node --icu-data-dir=%{buildroot}%{icudatadir} %{SOURCE2}
402b71
402b71
402b71
%pretrans -n npm -p <lua>
402b71
-- Replace the npm man directory with a symlink
402b71
-- Drop this scriptlet when F31 is EOL
402b71
path = "%{_prefix}/lib/node_modules/npm/man"
402b71
st = posix.stat(path)
402b71
if st and st.type == "directory" then
402b71
  status = os.rename(path, path .. ".rpmmoved")
402b71
  if not status then
402b71
    suffix = 0
402b71
    while not status do
402b71
      suffix = suffix + 1
402b71
      status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
402b71
    end
402b71
    os.rename(path, path .. ".rpmmoved")
402b71
  end
402b71
end
402b71
402b71
402b71
%files
402b71
%{_bindir}/node
402b71
%dir %{_prefix}/lib/node_modules
402b71
%dir %{_datadir}/node
402b71
%dir %{_datadir}/systemtap
402b71
%dir %{_datadir}/systemtap/tapset
402b71
%{_datadir}/systemtap/tapset/node.stp
402b71
a515d1
%if %{without bundled}
402b71
%dir %{_usr}/lib/dtrace
402b71
%{_usr}/lib/dtrace/node.d
a515d1
%endif
402b71
402b71
%{_rpmconfigdir}/fileattrs/nodejs_native.attr
402b71
%{_rpmconfigdir}/nodejs_native.req
a515d1
%license LICENSE
402b71
%doc AUTHORS CHANGELOG.md onboarding.md GOVERNANCE.md README.md
402b71
%doc %{_mandir}/man1/node.1*
402b71
402b71
402b71
%files devel
402b71
%{_includedir}/node
402b71
%{_libdir}/libnode.so
402b71
%{_datadir}/node/common.gypi
402b71
%{_pkgdocdir}/gdbinit
402b71
402b71
402b71
%files full-i18n
402b71
%dir %{icudatadir}
402b71
%{icudatadir}/icudt%{icu_major}*.dat
402b71
402b71
402b71
%files libs
402b71
%license LICENSE
402b71
%{_libdir}/libnode.so.%{nodejs_soversion}
402b71
%{_libdir}/libv8.so.%{v8_major}
402b71
%{_libdir}/libv8_libbase.so.%{v8_major}
402b71
%{_libdir}/libv8_libplatform.so.%{v8_major}
402b71
%dir %{nodejs_datadir}/
402b71
402b71
402b71
%files -n v8-devel
402b71
%{_includedir}/libplatform
402b71
%{_includedir}/v8*.h
402b71
%{_includedir}/cppgc
402b71
%{_libdir}/libv8.so
402b71
%{_libdir}/libv8_libbase.so
402b71
%{_libdir}/libv8_libplatform.so
402b71
402b71
402b71
%files -n npm
402b71
%{_bindir}/npm
402b71
%{_bindir}/npx
402b71
%{_prefix}/lib/node_modules/npm
402b71
%config(noreplace) %{_sysconfdir}/npmrc
402b71
%{_prefix}/etc/npmrc
402b71
%ghost %{_sysconfdir}/npmignore
402b71
%doc %{_mandir}/man1/npm*.1*
402b71
%doc %{_mandir}/man1/npx.1*
402b71
%doc %{_mandir}/man5/folders.5*
402b71
%doc %{_mandir}/man5/install.5*
402b71
%doc %{_mandir}/man5/npmrc.5*
402b71
%doc %{_mandir}/man5/package-json.5*
402b71
%doc %{_mandir}/man5/package-lock-json.5*
402b71
%doc %{_mandir}/man5/npm-shrinkwrap-json.5*
402b71
%doc %{_mandir}/man7/config.7*
a515d1
%doc %{_mandir}/man7/dependency-selectors.7*
402b71
%doc %{_mandir}/man7/developers.7*
89116a
%doc %{_mandir}/man7/logging.7*
a515d1
%doc %{_mandir}/man7/orgs.7*
a515d1
%doc %{_mandir}/man7/package-spec.7*
402b71
%doc %{_mandir}/man7/registry.7*
402b71
%doc %{_mandir}/man7/removal.7*
402b71
%doc %{_mandir}/man7/scope.7*
402b71
%doc %{_mandir}/man7/scripts.7*
402b71
%doc %{_mandir}/man7/workspaces.7*
402b71
402b71
402b71
%files docs
402b71
%doc doc
402b71
%dir %{_pkgdocdir}
402b71
%{_pkgdocdir}/html
402b71
%{_pkgdocdir}/npm/docs
402b71
402b71
402b71
%changelog
a515d1
* Wed Dec 07 2022 Jan Staněk <jstanek@redhat.com> - 1:16.18.1-3
a515d1
- Update sources of undici WASM blobs
a515d1
  Resolves: rhbz#2151617
a515d1
a515d1
* Mon Dec 05 2022 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.18.1-2
a515d1
- Add back libs and v8-devel subpackages
a515d1
- Related: RHBZ#2121126
a515d1
- Record previously fixed CVE
a515d1
- Resolves: CVE-2021-44906
a515d1
a515d1
* Wed Nov 16 2022 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.18.1-1
a515d1
- Rebase + CVEs
a515d1
- Resolves: #2142808
a515d1
- Resolves: #2142826, #2131745, #2142855
a515d1
a515d1
* Tue Sep 27 2022 Jan Staněk <jstanek@redhat.com> - 16.17.1-1
a515d1
- Rebase to version 16.17.1
a515d1
  Resolves: CVE-2022-35255 CVE-2022-35256
a515d1
a515d1
* Tue Aug 23 2022 Jan Staněk <jstanek@redhat.com> - 16.16.0-1
a515d1
- Rebase to version 16.16.0
a515d1
  Resolves: RHBZ#2106290
a515d1
  Resolves: CVE-2022-32212 CVE-2022-32213 CVE-2022-32214 CVE-2022-32215
a515d1
  Resolves: CVE-2022-29244
a515d1
5488cf
* Thu Apr 21 2022 Jan Staněk <jstanek@redhat.com> - 16.14.0-5
5488cf
- Decouple dependency bundling from bootstrapping
5488cf
5488cf
* Tue Apr 05 2022 Jan Staněk <jstanek@redhat.com> - 16.14.0-4
5488cf
- Apply lock file validation fixes
5488cf
  Resolves: CVE-2021-43616
5488cf
5488cf
* Thu Mar 31 2022 Jan Staněk <jstanek@redhat.com> - 16.14.0-3
5488cf
- Refactor bootstap handling and configure script invocation
5488cf
  Resolves: rhbz#2056969
408308
89116a
* Sun Feb 13 2022 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.14.0-2
89116a
- Build with bootstrap by default due to old versions of dependencies available
89116a
- Resolves: #2042995, #2042970, #2042981, #2042989
89116a
- Resolves: #2029936, #2024890, #2014499, #2014135
89116a
- Resolves: #2013834, #1945299
89116a
89116a
* Fri Feb 11 2022 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.14.0-1
89116a
- Update to latest version
89116a
- Use jinja and jq
89116a
- Don't fix python3
89116a
- Resolves: CVE-2022-21824, CVE-2021-44531, CVE-2021-44532, CVE-2021-44533
89116a
- Resolves CVE-2020-15095
89116a
- Resolves: CVE-2021-3918, CVE-2021-22959, CVE-2021-22960
89116a
- Resolves: CVE-2021-3807, CVE-2021-27290
89116a
425df7
* Wed Sep 29 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.10.0-1
425df7
- Rebase to 16.10.0, add corepack, fix PowerShell dependency
425df7
- Resolves: RHBZ#2000539, #2000548, #2000549, #2002177
425df7
402b71
* Thu Aug 12 2021 Jan Staněk <jstanek@redhat.com> - 1:16.6.2-1
402b71
- Rebase to 16.6.2
402b71
  Resolves: CVE-2021-22931 CVE-2021-22939 CVE-2021-22940
402b71
402b71
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:16.5.0-3
402b71
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
402b71
  Related: rhbz#1991688
402b71
402b71
* Thu Jul 22 2021 Zuzana Svetlikova 
402b71
- Bump for gating
402b71
- Resolves: RHBZ#1979926
402b71
402b71
* Tue Jul 20 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.5.0-1
402b71
- Rebase to 16.5.0
402b71
- Fixes CVE-2021-22918(libuv)
402b71
- Resolves: RHBZ#1979926
402b71
402b71
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 1:16.3.0-2
402b71
- Rebuilt for RHEL 9 BETA for openssl 3.0
402b71
  Related: rhbz#1971065
402b71
425df7
* Tue Jun 01 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.3.0-1
402b71
- Resolves: RHBZ#1953491
402b71
- Rebase to 16.3.0
402b71
- includes https://github.com/nodejs/node/pull/38732
402b71
425df7
* Thu May 20 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.2.0-1
402b71
- Resolves: RHBZ#1953491
402b71
- Rebase to 16.2.0
402b71
- includes https://github.com/nodejs/node/pull/38633 (FIPS for OpenSSL 3.0)
402b71
425df7
* Wed May 19 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.1.0-1
402b71
- Resolves: RHBZ#1953491
402b71
- Support for OpenSSL 3.0.0
402b71
- Rebase to v16.x
402b71
- Update version of gcc and gcc-c++ needed
402b71
- Bundle nghttp3 and ngtcp2
402b71
402b71
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com>
402b71
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
402b71
402b71
* Tue Mar 30 2021 Jonathan Wakely <jwakely@redhat.com> - 1:14.16.0-4
402b71
- Rebuilt for removed libstdc++ symbol (#1937698)
402b71
425df7
* Tue Mar 09 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.16.0-3
402b71
- Only require nodejs-packaging on Fedora
402b71
- remove --debug-nghttp2 (#1930775)
402b71
- always build with systemtap
402b71
402b71
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:14.15.4-2
402b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
402b71
402b71
* Mon Jan 04 2021 Stephen Gallagher <sgallagh@redhat.com> - 1:14.15.4-1
402b71
- Update to 14.15.4
402b71
402b71
* Wed Dec 02 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.15.1-1
402b71
- Update to 14.15.1
402b71
402b71
* Tue Oct 20 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.14.0-2
402b71
- Don't build with LTO on aarch64
402b71
402b71
* Mon Oct 19 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.14.0-1
402b71
- Update to 14.14.0
402b71
402b71
* Fri Oct 09 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.13.1-1
402b71
- Update to 14.13.1
402b71
402b71
* Thu Oct 01 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.13.0-1
402b71
- Update to 14.13.0
402b71
402b71
* Wed Sep 16 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.11.0-1
402b71
- Update to 14.11.0
402b71
402b71
* Tue Sep 08 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.10.0-1
402b71
- Update to 14.10.0
402b71
402b71
* Fri Aug 21 2020 Jeff Law <law@redhat.com> - 1:14.7.0-2
402b71
- Narrow LTO opt-out to just armv7hl
402b71
402b71
* Fri Jul 31 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.7.0-1
402b71
- Update to 14.7.0
402b71
402b71
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:14.5.0-2
402b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
402b71
402b71
* Tue Jul 07 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.5.0-1
402b71
- Update to 14.5.0
402b71
402b71
* Tue Jul 07 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.4.0-3
402b71
- Update for new packaging guidelines
402b71
402b71
* Tue Jun 30 2020 Jeff Law <law@redhat.com> - 1:14.4.0-2
402b71
- Disable LTO
402b71
402b71
* Wed Jun 03 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.4.0-1
402b71
- Security update to 14.4.0
402b71
402b71
* Thu May 21 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.3.0-1
402b71
- Update to 14.3.0
402b71
402b71
* Wed May 06 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.2.0-1
402b71
- Update to 14.2.0
402b71
402b71
* Wed Apr 29 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:14.1.0-1
402b71
- Update to 14.1.0
402b71
402b71
* Fri Apr 24 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.0.0-2
402b71
- Keep the fix scripts for Koji
402b71
402b71
* Thu Apr 23 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.0.0-1
402b71
- Update to 14.0.0
402b71
- v14.x should be python3 compatible, so commented out py sed scripts
402b71
402b71
* Wed Apr 15 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:13.13.0-1
402b71
- Update to 13.13.0
402b71
- Add bundled uvwasi and histogram_c provides
402b71
- Add shared brotli dependency
402b71
- Remove icustrip.py patch, which was merged in upstream
402b71
402b71
* Tue Mar 17 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:13.11.0-2
402b71
- Fix python3 issue in icustrip.py
402b71
402b71
* Mon Mar 16 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:13.11.0-1
402b71
- Update to 13.11.0
402b71
402b71
* Wed Feb 26 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:13.9.0-2
402b71
- Build with python 3 only
402b71
402b71
* Tue Feb 25 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:13.9.0-1
402b71
- Release Node.js 13.9.0
402b71
402b71
* Tue Feb 25 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:12.16.1-1
402b71
- Update to 12.16.1
402b71
- Fixes six regressions introduced in 12.16.0
402b71
402b71
* Fri Feb 14 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:12.16.0-1
402b71
- Update to 12.16.0
402b71
- Drop upstreamed patch
402b71
402b71
* Thu Feb 06 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:12.15.0-1
402b71
- Update to 12.15.0
402b71
402b71
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.14.1-4
402b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
402b71
402b71
* Mon Jan 13 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:12.14.1-3
402b71
- Fix issue with header symlinks in v8-devel
402b71
402b71
* Tue Jan 07 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:12.14.1-2
402b71
- Drop unneeded dependency on http-parser-devel
402b71
402b71
* Tue Jan 07 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:12.14.1-1
402b71
- Update to 12.14.1
402b71
- https://github.com/nodejs/node/blob/v12.14.1/doc/changelogs/CHANGELOG_V12.md
402b71
402b71
* Mon Jan 06 2020 Stephen Gallagher <sgallagh@redhat.com> - 1:12.14.0-2
402b71
- Update to 12.14.0
402b71
- https://github.com/nodejs/node/blob/v12.14.0/doc/changelogs/CHANGELOG_V12.md
402b71
- Add new subpackage nodejs-full-i18n to enable optional non-English locale
402b71
  support
402b71
- Update documentation packaging for NPM
402b71
402b71
* Mon Dec 02 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.13.1-1
402b71
- Update to 12.13.1
402b71
- https://github.com/nodejs/node/blob/v12.13.1/doc/changelogs/CHANGELOG_V12.md
402b71
402b71
* Tue Oct 29 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.13.0-6
402b71
- Add proper i18n support
402b71
402b71
* Tue Oct 29 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.13.0-5
402b71
- Fix issue with NPM docs being replaced with a symlink
402b71
402b71
* Mon Oct 28 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.13.0-2
402b71
- Simplify npmrc default configuration
402b71
402b71
* Mon Oct 28 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.13.0-1
402b71
- Update to 12.13.0 (LTS)
402b71
- https://github.com/nodejs/node/blob/v12.13.0/doc/changelogs/CHANGELOG_V12.md
402b71
- NPM no longer clobbers RPM-installed Node.js modules
402b71
- Drop no-longer needed patch to suppress `npm update -g npm` message
402b71
402b71
* Wed Sep 04 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.10.0-1
402b71
- Update to 12.10.0
402b71
- https://github.com/nodejs/node/blob/v12.10.0/doc/changelogs/CHANGELOG_V12.md#12.10.0
402b71
402b71
* Wed Aug 21 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.9.0-1
402b71
- Update to 12.9.0
402b71
- https://github.com/nodejs/node/blob/v12.9.0/doc/changelogs/CHANGELOG_V12.md#12.9.0
402b71
402b71
* Thu Aug 15 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.8.2-1
402b71
- Update to 12.8.1
402b71
- Resolves: CVE-2019-9511 "Data Dribble"
402b71
- Resolves: CVE-2019-9512 "Ping Flood"
402b71
- Resolves: CVE-2019-9513 "Resource Loop"
402b71
- Resolves: CVE-2019-9514 "Reset Flood"
402b71
- Resolves: CVE-2019-9515 "Settings Flood"
402b71
- Resolves: CVE-2019-9516 "0-Length Headers Leak"
402b71
- Resolves: CVE-2019-9517 "Internal Data Buffering"
402b71
- Resolves: CVE-2019-9518 "Empty Frames Flood"
402b71
- https://github.com/nodejs/node/blob/v12.8.1/doc/changelogs/CHANGELOG_V12.md#12.8.1
402b71
402b71
* Mon Aug 05 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.7.0-3
402b71
- Fix epoch dependencies
402b71
- Carry data files for ICU
402b71
402b71
* Fri Aug 02 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.7.0-2
402b71
- Change v8-devel release field to avoid duplicated package names
402b71
402b71
* Thu Aug 01 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.7.0-1
402b71
- Update to 12.7.0
402b71
- https://nodejs.org/en/blog/release/v12.7.0/
402b71
402b71
* Tue Jul 30 2019 Tom Hughes <tom@compton.nu> - 1:12.6.0-2
402b71
- Bump release to fix dependencies
402b71
402b71
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.6.0-1.1
402b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
402b71
402b71
* Thu Jun 27 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.6.0-1
402b71
- Update to 12.6.0
402b71
- https://nodejs.org/en/blog/release/v12.6.0/
402b71
- https://nodejs.org/en/blog/release/v12.5.0/
402b71
402b71
* Tue Jun 04 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.4.0-1
402b71
- Update to 12.4.0
402b71
- https://nodejs.org/en/blog/release/v12.4.0/
402b71
402b71
* Fri May 24 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.3.1-1
402b71
- Update to 12.3.1
402b71
- https://nodejs.org/en/blog/release/v12.3.1/
402b71
- https://nodejs.org/en/blog/release/v12.3.0/
402b71
402b71
* Wed May 15 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.2.0-1
402b71
- Update to 12.2.0
402b71
- https://nodejs.org/en/blog/release/v12.2.0/
402b71
402b71
* Tue Apr 30 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.1.0-1
402b71
- Update to 12.1.0
402b71
- https://nodejs.org/en/blog/release/v12.1.0/
402b71
402b71
* Wed Apr 24 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.0.0-3
402b71
- Fix upgrade bug for v8-devel (BZ #1702609)
402b71
402b71
* Tue Apr 23 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.0.0-2
402b71
- Node.js 12.x requires OpenSSL 1.1.1+
402b71
402b71
* Tue Apr 23 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:12.0.0-1
402b71
- Release 12.0.0
402b71
- https://nodejs.org/en/blog/release/v12.0.0/
402b71
402b71
* Thu Apr 11 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:11.13.0-1
402b71
- Update to 11.13.0
402b71
- https://nodejs.org/en/blog/release/v11.13.0/
402b71
- https://nodejs.org/en/blog/release/v11.12.0/
402b71
- https://nodejs.org/en/blog/release/v11.11.0/
402b71
402b71
* Fri Mar 01 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:11.10.1-1
402b71
- Update to 11.10.1
402b71
- https://nodejs.org/en/blog/release/v11.10.1/
402b71
- https://nodejs.org/en/blog/release/v11.10.0/
402b71
- https://nodejs.org/en/blog/release/v11.9.0/
402b71
- https://nodejs.org/en/blog/release/v11.8.0/
402b71
402b71
* Fri Jan 18 2019 Stephen Gallagher <sgallagh@redhat.com> - 1:11.7.0-1
402b71
- Update to 11.7.0
402b71
- https://nodejs.org/en/blog/release/v11.7.0/
402b71
- https://nodejs.org/en/blog/release/v11.6.0/
402b71
- https://nodejs.org/en/blog/release/v11.5.0/
402b71
- https://nodejs.org/en/blog/release/v11.4.0/
402b71
402b71
* Thu Nov 29 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:11.3.0-1
402b71
- Update to 11.3.0
402b71
- https://nodejs.org/en/blog/release/v11.2.0/
402b71
- https://nodejs.org/en/blog/release/v11.3.0/
402b71
402b71
* Fri Nov 02 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:11.1.0-1
402b71
- Update to 11.1.0
402b71
- https://nodejs.org/en/blog/release/v11.1.0/
402b71
402b71
* Thu Nov 01 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:11.0.0-1
402b71
- Update to 11.0.0
402b71
- https://nodejs.org/en/blog/release/v11.0.0/
402b71
402b71
* Thu Nov 01 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.13.0-1
402b71
- Update to 10.13.0
402b71
- https://nodejs.org/en/blog/release/v10.13.0/
402b71
402b71
* Thu Oct 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.12.0-1
402b71
- Update to 10.12.0
402b71
- https://nodejs.org/en/blog/release/v10.12.0/
402b71
402b71
* Wed Oct 10 2018 Jan Staněk <jstanek@redhat.com> - 1:10.11.0-2
402b71
- Add non-bootstrap BR for nodejs-packaging
402b71
402b71
* Thu Sep 20 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.11.0-1
402b71
- Update to 10.11.0
402b71
- https://nodejs.org/en/blog/release/v10.11.0/
402b71
402b71
* Wed Sep 19 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.10.0-2
402b71
- Really, finally fix npm dep executable permissions
402b71
402b71
* Tue Sep 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.10.0-1
402b71
- Update to 10.10.0
402b71
- https://nodejs.org/en/blog/release/v10.10.0/
402b71
- Fix issue with npm permissions
402b71
402b71
* Tue Aug 21 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.9.0-2
402b71
- Clean up automatic dependencies for npm
402b71
402b71
* Thu Aug 16 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.9.0-1
402b71
- Update to 10.9.0
402b71
- https://nodejs.org/en/blog/release/v10.9.0/
402b71
402b71
* Tue Aug 07 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.8.0-1
402b71
- Update to 10.8.0
402b71
- https://nodejs.org/en/blog/release/v10.8.0/
402b71
402b71
* Fri Jul 20 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-4
402b71
- Fix npm upgrade scriptlet
402b71
- Fix unexpected trailing .1 in npm release field
402b71
402b71
* Fri Jul 20 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-3
402b71
- Restore annotations to binaries
402b71
- Fix unexpected trailing .1 in release field
402b71
402b71
* Thu Jul 19 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-2
402b71
- Update to 10.7.0
402b71
- https://nodejs.org/en/blog/release/v10.7.0/
402b71
- https://nodejs.org/en/blog/release/v10.6.0/
402b71
402b71
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.5.0-1.1
402b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
402b71
402b71
* Thu Jun 21 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.5.0-1
402b71
- Update to 10.5.0
402b71
- https://nodejs.org/en/blog/release/v10.5.0/
402b71
402b71
* Thu Jun 14 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.4.1-1
402b71
- Update to 10.4.1 to address security issues
402b71
- https://nodejs.org/en/blog/release/v10.4.1/
402b71
- Resolves: rhbz#1590801
402b71
- Resolves: rhbz#1591014
402b71
- Resolves: rhbz#1591019
402b71
402b71
* Thu Jun 07 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.4.0-1
402b71
- Update to 10.4.0
402b71
- https://nodejs.org/en/blog/release/v10.4.0/
402b71
402b71
* Wed May 30 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.3.0-1
402b71
- Update to 10.3.0
402b71
- Update npm to 6.1.0
402b71
- https://nodejs.org/en/blog/release/v10.3.0/
402b71
402b71
* Tue May 29 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.1-2
402b71
- Fix up bare 'python' to be python2
402b71
- Drop redundant entry in docs section
402b71
402b71
* Fri May 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.1-1
402b71
- Update to 10.2.1
402b71
- https://nodejs.org/en/blog/release/v10.2.1/
402b71
402b71
* Wed May 23 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.0-1
402b71
- Update to 10.2.0
402b71
- https://nodejs.org/en/blog/release/v10.2.0/
402b71
402b71
* Thu May 10 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-3
402b71
- Fix incorrect rpm macro
402b71
402b71
* Thu May 10 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-2
402b71
- Include upstream v8 fix for ppc64[le]
402b71
- Disable debug build on ppc64[le] and s390x
402b71
402b71
* Wed May 09 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-1
402b71
- Update to 10.1.0
402b71
- https://nodejs.org/en/blog/release/v10.1.0/
402b71
- Reenable node_g binary
402b71
402b71
* Thu Apr 26 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.0.0-1
402b71
- Update to 10.0.0
402b71
- https://nodejs.org/en/blog/release/v10.0.0/
402b71
- Drop workaround patch
402b71
- Temporarily drop node_g binary due to
402b71
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85587
402b71
402b71
* Fri Apr 13 2018 Rafael dos Santos <rdossant@redhat.com> - 1:9.11.1-2
402b71
- Use standard Fedora linker flags (bug #1543859)
402b71
402b71
* Thu Apr 05 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.11.1-1
402b71
- Update to 9.11.1
402b71
- https://nodejs.org/en/blog/release/v9.11.0/
402b71
- https://nodejs.org/en/blog/release/v9.11.1/
402b71
402b71
* Wed Mar 28 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.10.0-1
402b71
- Update to 9.10.0
402b71
- https://nodejs.org/en/blog/release/v9.10.0/
402b71
402b71
* Wed Mar 21 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.9.0-1
402b71
- Update to 9.9.0
402b71
- https://nodejs.org/en/blog/release/v9.9.0/
402b71
402b71
* Thu Mar 08 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.8.0-1
402b71
- Update to 9.8.0
402b71
- https://nodejs.org/en/blog/release/v9.8.0/
402b71
402b71
* Thu Mar 01 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.7.0-1
402b71
- Update to 9.7.0
402b71
- https://nodejs.org/en/blog/release/v9.7.0/
402b71
- Work around F28 build issue
402b71
402b71
* Sun Feb 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.6.1-1
402b71
- Update to 9.6.1
402b71
- https://nodejs.org/en/blog/release/v9.6.1/
402b71
- https://nodejs.org/en/blog/release/v9.6.0/
402b71
402b71
* Mon Feb 05 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.5.0-1
402b71
- Package Node.js 9.5.0
402b71
402b71
* Thu Jan 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.4-2
402b71
- Fix incorrect Requires:
402b71
402b71
* Thu Jan 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.4-1
402b71
- Update to 8.9.4
402b71
- https://nodejs.org/en/blog/release/v8.9.4/
402b71
- Switch to system copy of nghttp2
402b71
402b71
* Fri Dec 08 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.3-2
402b71
- Update to 8.9.3
402b71
- https://nodejs.org/en/blog/release/v8.9.3/
402b71
- https://nodejs.org/en/blog/release/v8.9.2/
402b71
402b71
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 1:8.9.1-2
402b71
- Rebuild for ICU 60.1
402b71
402b71
* Thu Nov 09 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.9.1-1
402b71
- Update to 8.9.1
402b71
402b71
* Tue Oct 31 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.0-1
402b71
- Update to 8.9.0
402b71
- Drop upstreamed patch
402b71
402b71
* Thu Oct 26 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.8.1-1
402b71
- Update to 8.8.1 to fix a regression
402b71
402b71
* Wed Oct 25 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.8.0-1
402b71
- Security update to 8.8.0
402b71
- https://nodejs.org/en/blog/release/v8.8.0/
402b71
402b71
* Sun Oct 15 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.7.0-1
402b71
- Update to 8.7.0
402b71
- https://nodejs.org/en/blog/release/v8.7.0/
402b71
402b71
* Fri Oct 06 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.6.0-2
402b71
- Use bcond macro instead of bootstrap conditional
402b71
402b71
* Wed Sep 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.6.0-1
402b71
- Fix nghttp2 version
402b71
- Update to 8.6.0
402b71
- https://nodejs.org/en/blog/release/v8.6.0/
402b71
402b71
* Wed Sep 20 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.5.0-3
402b71
- Build with bootstrap + bundle libuv for modularity
402b71
- backport patch for aarch64 debug build
402b71
402b71
* Wed Sep 13 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.5.0-2
402b71
- Disable debug builds on aarch64 due to https://github.com/nodejs/node/issues/15395
402b71
402b71
* Tue Sep 12 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.5.0-1
402b71
- Update to v8.5.0
402b71
- https://nodejs.org/en/blog/release/v8.5.0/
402b71
402b71
* Thu Sep 07 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.4.0-2
402b71
- Refactor openssl BR
402b71
402b71
* Wed Aug 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.4.0-1
402b71
- Update to v8.4.0
402b71
- https://nodejs.org/en/blog/release/v8.4.0/
402b71
- http2 is now supported, add bundled nghttp2
402b71
- remove openssl 1.0.1 patches, we won't be using them in fedora
402b71
402b71
* Thu Aug 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.3.0-1
402b71
- Update to v8.3.0
402b71
- https://nodejs.org/en/blog/release/v8.3.0/
402b71
- update V8 to 6.0
402b71
- update minimal gcc and g++ requirements to 4.9.4
402b71
402b71
* Wed Aug 09 2017 Tom Hughes <tom@compton.nu> - 1:8.2.1-2
402b71
- Bump release to fix broken dependencies
402b71
402b71
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.2.1-1.2
402b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
402b71
402b71
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.2.1-1.1
402b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
402b71
402b71
* Fri Jul 21 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.2.1-1
402b71
- Update to v8.2.1
402b71
- https://nodejs.org/en/blog/release/v8.2.1/
402b71
402b71
* Thu Jul 20 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.2.0-1
402b71
- Update to v8.2.0
402b71
- https://nodejs.org/en/blog/release/v8.2.0/
402b71
- Update npm to 5.3.0
402b71
- Adds npx command
402b71
402b71
* Tue Jul 18 2017 Igor Gnatenko <ignatenko@redhat.com> - 1:8.1.4-3
402b71
- s/BuildRequires/Requires/ for http-parser-devel%%{?_isa}
402b71
402b71
* Mon Jul 17 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.4-2
402b71
- Rename python-devel to python2-devel
402b71
- own %%{_pkgdocdir}/npm
402b71
402b71
* Tue Jul 11 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.1.4-1
402b71
- Update to v8.1.4
402b71
- https://nodejs.org/en/blog/release/v8.1.4/
402b71
- Drop upstreamed c-ares patch
402b71
402b71
* Thu Jun 29 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.3-1
402b71
- Update to v8.1.3
402b71
- https://nodejs.org/en/blog/release/v8.1.3/
402b71
402b71
* Wed Jun 28 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.2-1
402b71
- Update to v8.1.2
402b71
- remove GCC 7 patch, as it is now fixed in node >= 6.12
402b71