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