5c5e80
%global with_debug 0
5c5e80
5c5e80
# PowerPC, s390x and aarch64 segfault during Debug builds
5c5e80
# https://github.com/nodejs/node/issues/20642
5c5e80
%ifarch %{power64} s390x aarch64
5c5e80
%global with_debug 0
5c5e80
%endif
5c5e80
5c5e80
# bundle dependencies that are not available as Fedora modules
5c5e80
%bcond_with bootstrap
5c5e80
%bcond_without python3_fixup
5c5e80
5c5e80
# == Master Relase ==
6dd088
# This is used by both the nodejs package and the npm subpackage that
5c5e80
# has a separate version - the name is special so that rpmdev-bumpspec
5c5e80
# will bump this rather than adding .1 to the end.
6dd088
%global baserelease 4
5c5e80
5c5e80
%{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
5c5e80
5c5e80
# == Node.js Version ==
5c5e80
# Note: Fedora should only ship LTS versions of Node.js (currently expected
5c5e80
# to be major versions with even numbers). The odd-numbered versions are new
5c5e80
# feature releases that are only supported for nine months, which is shorter
5c5e80
# than a Fedora release lifecycle.
5c5e80
%global nodejs_epoch 1
5c5e80
%global nodejs_major 16
6dd088
%global nodejs_minor 14
6dd088
%global nodejs_patch 0
5c5e80
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
5c5e80
# nodejs_soversion - from NODE_MODULE_VERSION in src/node_version.h
5c5e80
%global nodejs_soversion 93
5c5e80
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}
5c5e80
%global nodejs_release %{baserelease}
5c5e80
5c5e80
%global nodejs_datadir %{_datarootdir}/nodejs
5c5e80
5c5e80
# == Bundled Dependency Versions ==
5c5e80
# v8 - from deps/v8/include/v8-version.h
5c5e80
# Epoch is set to ensure clean upgrades from the old v8 package
5c5e80
%global v8_epoch 2
5c5e80
%global v8_major 9
21bee6
%global v8_minor 4
21bee6
%global v8_build 146
21bee6
%global v8_patch 24
5c5e80
# V8 presently breaks ABI at least every x.y release while never bumping SONAME
5c5e80
%global v8_abi %{v8_major}.%{v8_minor}
5c5e80
%global v8_version %{v8_major}.%{v8_minor}.%{v8_build}.%{v8_patch}
5c5e80
%global v8_release %{nodejs_epoch}.%{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release}
5c5e80
5c5e80
# c-ares - from deps/cares/include/ares_version.h
5c5e80
# https://github.com/nodejs/node/pull/9332
5c5e80
%global c_ares_major 1
21bee6
%global c_ares_minor 18
21bee6
%global c_ares_patch 1
5c5e80
%global c_ares_version %{c_ares_major}.%{c_ares_minor}.%{c_ares_patch}
5c5e80
5c5e80
# llhttp - from deps/llhttp/include/llhttp.h
5c5e80
%global llhttp_major 6
5c5e80
%global llhttp_minor 0
21bee6
%global llhttp_patch 4
5c5e80
%global llhttp_version %{llhttp_major}.%{llhttp_minor}.%{llhttp_patch}
5c5e80
5c5e80
# libuv - from deps/uv/include/uv/version.h
5c5e80
%global libuv_major 1
6dd088
%global libuv_minor 43
5c5e80
%global libuv_patch 0
5c5e80
%global libuv_version %{libuv_major}.%{libuv_minor}.%{libuv_patch}
5c5e80
5c5e80
# nghttp2 - from deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h
5c5e80
%global nghttp2_major 1
21bee6
%global nghttp2_minor 45
21bee6
%global nghttp2_patch 1
5c5e80
%global nghttp2_version %{nghttp2_major}.%{nghttp2_minor}.%{nghttp2_patch}
5c5e80
5c5e80
# nghttp3 - from deps/ngtcp2/nghttp3/lib/includes/nghttp3/version.h
5c5e80
%global nghttp3_major 0
5c5e80
%global nghttp3_minor 1
5c5e80
%global nghttp3_patch 0-DEV
5c5e80
%global nghttp3_version %{nghttp3_major}.%{nghttp3_minor}.%{nghttp3_patch}
5c5e80
5c5e80
# ngtcp2 from deps/ngtcp2/ngtcp2/lib/includes/ngtcp2/version.h
5c5e80
%global ngtcp2_major 0
5c5e80
%global ngtcp2_minor 1
5c5e80
%global ngtcp2_patch 0-DEV
5c5e80
%global ngtcp2_version %{ngtcp2_major}.%{ngtcp2_minor}.%{ngtcp2_patch}
5c5e80
5c5e80
# ICU - from tools/icu/current_ver.dep
6dd088
%global icu_major 70
5c5e80
%global icu_minor 1
5c5e80
%global icu_version %{icu_major}.%{icu_minor}
5c5e80
5c5e80
%global icudatadir %{nodejs_datadir}/icudata
5c5e80
%{!?little_endian: %global little_endian %(%{__python3} -c "import sys;print (0 if sys.byteorder=='big' else 1)")}
5c5e80
# " this line just fixes syntax highlighting for vim that is confused by the above and continues literal
5c5e80
5c5e80
%global sys_icu_version %(/usr/bin/icu-config --version)
5c5e80
5c5e80
%if "%{sys_icu_version}" >= "%{icu_version}"
5c5e80
%global bundled_icu 0
5c5e80
%global icu_flag system-icu
5c5e80
%else
5c5e80
%global bundled_icu 1
5c5e80
%global icu_flag full-icu
5c5e80
%endif
5c5e80
5c5e80
# OpenSSL minimum version
5c5e80
%global openssl_minimum 1:1.1.1
5c5e80
5c5e80
# punycode - from lib/punycode.js
5c5e80
# Note: this was merged into the mainline since 0.6.x
5c5e80
# Note: this will be unmerged in an upcoming major release
5c5e80
%global punycode_major 2
5c5e80
%global punycode_minor 1
5c5e80
%global punycode_patch 0
5c5e80
%global punycode_version %{punycode_major}.%{punycode_minor}.%{punycode_patch}
5c5e80
5c5e80
# npm - from deps/npm/package.json
5c5e80
%global npm_epoch 1
21bee6
%global npm_major 8
6dd088
%global npm_minor 3
6dd088
%global npm_patch 1
5c5e80
%global npm_version %{npm_major}.%{npm_minor}.%{npm_patch}
5c5e80
5c5e80
# uvwasi - from deps/uvwasi/include/uvwasi.h
5c5e80
%global uvwasi_major 0
5c5e80
%global uvwasi_minor 0
6dd088
%global uvwasi_patch 12
5c5e80
%global uvwasi_version %{uvwasi_major}.%{uvwasi_minor}.%{uvwasi_patch}
5c5e80
5c5e80
# histogram_c - assumed from timestamps
5c5e80
%global histogram_major 0
5c5e80
%global histogram_minor 9
5c5e80
%global histogram_patch 7
5c5e80
%global histogram_version %{histogram_major}.%{histogram_minor}.%{histogram_patch}
5c5e80
5c5e80
# In order to avoid needing to keep incrementing the release version for the
5c5e80
# main package forever, we will just construct one for npm that is guaranteed
5c5e80
# to increment safely. Changing this can only be done during an update when the
5c5e80
# base npm version number is increasing.
5c5e80
%global npm_release %{nodejs_epoch}.%{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release}
5c5e80
21bee6
# Node.js 16.9.1 and later comes with an experimental package management tool
21bee6
%global corepack_version 0.10.0
5c5e80
5c5e80
Name: nodejs
5c5e80
Epoch: %{nodejs_epoch}
5c5e80
Version: %{nodejs_version}
5c5e80
Release: %{nodejs_release}%{?dist}
5c5e80
Summary: JavaScript runtime
5c5e80
License: MIT and ASL 2.0 and ISC and BSD
5c5e80
Group: Development/Languages
5c5e80
URL: http://nodejs.org/
5c5e80
5c5e80
ExclusiveArch: %{nodejs_arches}
5c5e80
5c5e80
# nodejs bundles openssl, but we use the system version in Fedora
5c5e80
# because openssl contains prohibited code, we remove openssl completely from
5c5e80
# the tarball, using the script in Source100
5c5e80
Source0: node-v%{nodejs_version}-stripped.tar.gz
5c5e80
Source1: npmrc
5c5e80
Source2: btest402.js
5c5e80
Source3: https://github.com/unicode-org/icu/releases/download/release-%{icu_major}-%{icu_minor}/icu4c-%{icu_major}_%{icu_minor}-src.tgz
5c5e80
Source100: %{name}-tarball.sh
5c5e80
5c5e80
# The native module Requires generator remains in the nodejs SRPM, so it knows
5c5e80
# the nodejs and v8 versions.  The remainder has migrated to the
5c5e80
# nodejs-packaging SRPM.
5c5e80
Source7: nodejs_native.attr
5c5e80
5c5e80
# Disable running gyp on bundled deps we don't use
5c5e80
Patch1: 0001-Disable-running-gyp-on-shared-deps.patch
5c5e80
6dd088
# CVE-2021-43616
6dd088
Patch2: 0001-fix-ci-lock-file-validation.patch
6dd088
5c5e80
BuildRequires: make
5c5e80
BuildRequires: python3-devel
5c5e80
BuildRequires: zlib-devel
5c5e80
BuildRequires: brotli-devel
5c5e80
BuildRequires: gcc >= 8.3.0
5c5e80
BuildRequires: gcc-c++ >= 8.3.0
5c5e80
# needed to generate bundled provides for npm dependencies
5c5e80
# https://src.fedoraproject.org/rpms/nodejs/pull-request/2
5c5e80
# https://pagure.io/nodejs-packaging/pull-request/10
5c5e80
BuildRequires: nodejs-packaging
5c5e80
BuildRequires: chrpath
5c5e80
BuildRequires: libatomic
5c5e80
BuildRequires: systemtap-sdt-devel
5c5e80
5c5e80
%if %{with bootstrap}
5c5e80
Provides: bundled(libuv) = %{libuv_version}
5c5e80
Provides: bundled(nghttp2) = %{nghttp2_version}
5c5e80
%else
5c5e80
BuildRequires: libuv-devel >= 1:%{libuv_version}
5c5e80
Requires: libuv >= 1:%{libuv_version}
5c5e80
BuildRequires: libnghttp2-devel >= %{nghttp2_version}
5c5e80
Requires: libnghttp2 >= %{nghttp2_version}
5c5e80
%endif
5c5e80
5c5e80
# Temporarily bundle llhttp because the upstream doesn't
5c5e80
# provide releases for it.
5c5e80
Provides: bundled(llhttp) = %{llhttp_version}
5c5e80
Provides: bundled(nghttp3) = %{nghttp3_version}
5c5e80
Provides: bundled(ngtcp2) = %{ngtcp2_version}
5c5e80
5c5e80
BuildRequires: openssl-devel >= %{openssl_minimum}
5c5e80
Requires: openssl >= %{openssl_minimum}
5c5e80
5c5e80
# we need the system certificate store
5c5e80
Requires: ca-certificates
5c5e80
5c5e80
# Pull in the full-icu data by default
5c5e80
Recommends: nodejs-full-i18n%{?_isa} = %{nodejs_epoch}:%{version}-%{release}
5c5e80
5c5e80
# we need ABI virtual provides where SONAMEs aren't enough/not present so deps
5c5e80
# break when binary compatibility is broken
5c5e80
Provides: nodejs(abi) = %{nodejs_abi}
5c5e80
Provides: nodejs(abi%{nodejs_major}) = %{nodejs_abi}
5c5e80
Provides: nodejs(v8-abi) = %{v8_abi}
5c5e80
Provides: nodejs(v8-abi%{v8_major}) = %{v8_abi}
5c5e80
5c5e80
# this corresponds to the "engine" requirement in package.json
5c5e80
Provides: nodejs(engine) = %{nodejs_version}
5c5e80
5c5e80
# Node.js currently has a conflict with the 'node' package in Fedora
5c5e80
# The ham-radio group has agreed to rename their binary for us, but
5c5e80
# in the meantime, we're setting an explicit Conflicts: here
5c5e80
Conflicts: node <= 0.3.2-12
5c5e80
5c5e80
# The punycode module was absorbed into the standard library in v0.6.
5c5e80
# It still exists as a seperate package for the benefit of users of older
5c5e80
# versions.  Since we've never shipped anything older than v0.10 in Fedora,
5c5e80
# we don't need the seperate nodejs-punycode package, so we Provide it here so
5c5e80
# dependent packages don't need to override the dependency generator.
5c5e80
# See also: RHBZ#11511811
5c5e80
# UPDATE: punycode will be deprecated and so we should unbundle it in Node v8
5c5e80
# and use upstream module instead
5c5e80
# https://github.com/nodejs/node/commit/29e49fc286080215031a81effbd59eac092fff2f
5c5e80
Provides: nodejs-punycode = %{punycode_version}
5c5e80
Provides: npm(punycode) = %{punycode_version}
5c5e80
5c5e80
# Node.js has forked c-ares from upstream in an incompatible way, so we need
5c5e80
# to carry the bundled version internally.
5c5e80
# See https://github.com/nodejs/node/commit/766d063e0578c0f7758c3a965c971763f43fec85
5c5e80
Provides: bundled(c-ares) = %{c_ares_version}
5c5e80
5c5e80
# Node.js is closely tied to the version of v8 that is used with it. It makes
5c5e80
# sense to use the bundled version because upstream consistently breaks ABI
5c5e80
# even in point releases. Node.js upstream has now removed the ability to build
5c5e80
# against a shared system version entirely.
5c5e80
# See https://github.com/nodejs/node/commit/d726a177ed59c37cf5306983ed00ecd858cfbbef
5c5e80
Provides: bundled(v8) = %{v8_version}
5c5e80
5c5e80
# Node.js is bound to a specific version of ICU which may not match the OS
5c5e80
# We cannot pin the OS to this version of ICU because every update includes
5c5e80
# an ABI-break, so we'll use the bundled copy.
5c5e80
Provides: bundled(icu) = %{icu_version}
5c5e80
5c5e80
# Upstream added new dependencies, but so far they are not available in Fedora
5c5e80
# or there's no option to built it as a shared dependency, so we bundle them
5c5e80
Provides: bundled(uvwasi) = %{uvwasi_version}
5c5e80
Provides: bundled(histogram) = %{histogram_version}
21bee6
Provides: bundled(corepack) = %{corepack_version}
5c5e80
5c5e80
# Make sure we keep NPM up to date when we update Node.js
5c5e80
%if 0%{?rhel} < 8
5c5e80
# EPEL doesn't support Recommends, so make it strict
5c5e80
Requires: npm >= %{npm_epoch}:%{npm_version}-%{npm_release}%{?dist}
5c5e80
%else
5c5e80
Recommends: npm >= %{npm_epoch}:%{npm_version}-%{npm_release}%{?dist}
5c5e80
%endif
5c5e80
5c5e80
%description
5c5e80
Node.js is a platform built on Chrome's JavaScript runtime
5c5e80
for easily building fast, scalable network applications.
5c5e80
Node.js uses an event-driven, non-blocking I/O model that
5c5e80
makes it lightweight and efficient, perfect for data-intensive
5c5e80
real-time applications that run across distributed devices.
5c5e80
5c5e80
5c5e80
%package devel
5c5e80
Summary: JavaScript runtime - development headers
5c5e80
Group: Development/Languages
5c5e80
Requires: %{name}%{?_isa} = %{epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
5c5e80
Requires: openssl-devel%{?_isa}
5c5e80
Requires: zlib-devel%{?_isa}
5c5e80
Requires: brotli-devel%{?_isa}
5c5e80
Requires: nodejs-packaging
5c5e80
5c5e80
%if %{with bootstrap}
5c5e80
# deps are bundled
5c5e80
%else
5c5e80
Requires: libuv-devel%{?_isa}
5c5e80
%endif
5c5e80
5c5e80
%description devel
5c5e80
Development headers for the Node.js JavaScript runtime.
5c5e80
5c5e80
5c5e80
%package full-i18n
5c5e80
Summary: Non-English locale data for Node.js
5c5e80
Requires: %{name}%{?_isa} = %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
5c5e80
5c5e80
%description full-i18n
5c5e80
Optional data files to provide full-icu support for Node.js. Remove this
5c5e80
package to save space if non-English locales are not needed.
5c5e80
5c5e80
5c5e80
%package -n npm
5c5e80
Summary: Node.js Package Manager
5c5e80
Epoch: %{npm_epoch}
5c5e80
Version: %{npm_version}
5c5e80
Release: %{npm_release}%{?dist}
5c5e80
5c5e80
# We used to ship npm separately, but it is so tightly integrated with Node.js
5c5e80
# (and expected to be present on all Node.js systems) that we ship it bundled
5c5e80
# now.
5c5e80
Obsoletes: npm < 0:3.5.4-6
5c5e80
Provides: npm = %{npm_epoch}:%{npm_version}
5c5e80
Requires: nodejs = %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
5c5e80
%if 0%{?fedora} || 0%{?rhel} >= 8
5c5e80
Recommends: nodejs-docs = %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
5c5e80
%endif
5c5e80
5c5e80
# Do not add epoch to the virtual NPM provides or it will break
5c5e80
# the automatic dependency-generation script.
5c5e80
Provides: npm(npm) = %{npm_version}
5c5e80
5c5e80
%description -n npm
5c5e80
npm is a package manager for node.js. You can use it to install and publish
5c5e80
your node programs. It manages dependencies and does other cool stuff.
5c5e80
5c5e80
5c5e80
%package docs
5c5e80
Summary: Node.js API documentation
5c5e80
Group: Documentation
5c5e80
BuildArch: noarch
5c5e80
5c5e80
# We don't require that the main package be installed to
5c5e80
# use the docs, but if it is installed, make sure the
5c5e80
# version always matches
5c5e80
Conflicts: %{name} > %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
5c5e80
Conflicts: %{name} < %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
5c5e80
5c5e80
%description docs
5c5e80
The API documentation for the Node.js JavaScript runtime.
5c5e80
5c5e80
5c5e80
%prep
5c5e80
%autosetup -p1 -n node-v%{nodejs_version}
5c5e80
5c5e80
# remove bundled dependencies that we aren't building
5c5e80
rm -rf deps/zlib
5c5e80
rm -rf deps/brotli
5c5e80
5c5e80
# Replace any instances of unversioned python' with python3
5c5e80
%if %{with python3_fixup}
5c5e80
pathfix.py -i %{__python3} -pn $(find -type f ! -name "*.js")
5c5e80
find . -type f -exec sed -i "s~/usr\/bin\/env python~/usr/bin/python3~" {} \;
5c5e80
find . -type f -exec sed -i "s~/usr\/bin\/python\W~/usr/bin/python3~" {} \;
5c5e80
sed -i "s~usr\/bin\/python2~usr\/bin\/python3~" ./deps/v8/tools/gen-inlining-tests.py
5c5e80
sed -i "s~usr\/bin\/python.*$~usr\/bin\/python3~" ./deps/v8/tools/mb/mb_unittest.py
5c5e80
find . -type f -exec sed -i "s~python -c~python3 -c~" {} \;
5c5e80
%endif
5c5e80
5c5e80
%build
5c5e80
5c5e80
%ifarch s390 s390x %{arm} %ix86
5c5e80
# Decrease debuginfo verbosity to reduce memory consumption during final
5c5e80
# library linking
5c5e80
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
5c5e80
%endif
5c5e80
5c5e80
export CC='gcc'
5c5e80
export CXX='g++'
5c5e80
%{?with_python3_fixup:export NODE_GYP_FORCE_PYTHON=%{__python3}}
5c5e80
5c5e80
# build with debugging symbols and add defines from libuv (#892601)
5c5e80
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
5c5e80
# NULL objects. We need to pass -fno-delete-null-pointer-checks
5c5e80
export CFLAGS='%{optflags} \
5c5e80
               -D_LARGEFILE_SOURCE \
5c5e80
               -D_FILE_OFFSET_BITS=64 \
5c5e80
               -DZLIB_CONST \
5c5e80
               -fno-delete-null-pointer-checks'
5c5e80
export CXXFLAGS='%{optflags} \
5c5e80
                 -D_LARGEFILE_SOURCE \
5c5e80
                 -D_FILE_OFFSET_BITS=64 \
5c5e80
                 -DZLIB_CONST \
5c5e80
                 -fno-delete-null-pointer-checks'
5c5e80
5c5e80
# Explicit new lines in C(XX)FLAGS can break naive build scripts
5c5e80
export CFLAGS="$(echo ${CFLAGS} | tr '\n\\' '  ')"
5c5e80
export CXXFLAGS="$(echo ${CXXFLAGS} | tr '\n\\' '  ')"
5c5e80
5c5e80
export LDFLAGS="%{build_ldflags}"
5c5e80
5c5e80
%if %{with bootstrap}
5c5e80
%{__python3} configure.py --prefix=%{_prefix} \
5c5e80
           --shared-openssl \
5c5e80
           --shared-zlib \
5c5e80
           --shared-brotli \
5c5e80
           --with-dtrace \
5c5e80
           --with-intl=small-icu \
5c5e80
           --openssl-use-def-ca-store \
5c5e80
           --openssl-default-cipher-list=PROFILE=SYSTEM
5c5e80
%else
5c5e80
%{__python3} configure.py --prefix=%{_prefix} \
5c5e80
           --shared-openssl \
5c5e80
           --shared-zlib \
5c5e80
           --shared-brotli \
5c5e80
           --shared-libuv \
5c5e80
           --shared-nghttp2 \
5c5e80
           --with-dtrace \
5c5e80
           --with-intl=small-icu \
5c5e80
           --with-icu-default-data-dir=%{icudatadir} \
5c5e80
           --openssl-use-def-ca-store \
5c5e80
           --openssl-default-cipher-list=PROFILE=SYSTEM
5c5e80
%endif
5c5e80
5c5e80
%if %{?with_debug} == 1
5c5e80
# Setting BUILDTYPE=Debug builds both release and debug binaries
5c5e80
make BUILDTYPE=Debug %{?_smp_mflags}
5c5e80
%else
5c5e80
make BUILDTYPE=Release %{?_smp_mflags}
5c5e80
%endif
5c5e80
5c5e80
# Extract the ICU data and convert it to the appropriate endianness
5c5e80
pushd deps/
5c5e80
tar xfz %SOURCE3
5c5e80
5c5e80
pushd icu/source
5c5e80
5c5e80
mkdir -p converted
5c5e80
%if 0%{?little_endian}
5c5e80
# The little endian data file is included in the ICU sources
5c5e80
install -Dpm0644 data/in/icudt%{icu_major}l.dat converted/
5c5e80
5c5e80
%else
5c5e80
# For the time being, we need to build ICU and use the included `icupkg` tool
5c5e80
# to convert the little endian data file into a big-endian one.
5c5e80
# At some point in the future, ICU releases will start including both data
5c5e80
# files and we should switch to those.
5c5e80
mkdir -p data/out/tmp
5c5e80
5c5e80
%configure
5c5e80
%make_build
5c5e80
5c5e80
icu_root=$(pwd)
5c5e80
LD_LIBRARY_PATH=./lib ./bin/icupkg -tb data/in/icudt%{icu_major}l.dat \
5c5e80
                                       converted/icudt%{icu_major}b.dat
5c5e80
%endif
5c5e80
5c5e80
popd # icu/source
5c5e80
popd # deps
5c5e80
5c5e80
5c5e80
%install
5c5e80
rm -rf %{buildroot}
5c5e80
5c5e80
./tools/install.py install %{buildroot} %{_prefix}
5c5e80
5c5e80
# Set the binary permissions properly
5c5e80
chmod 0755 %{buildroot}/%{_bindir}/node
5c5e80
chrpath --delete %{buildroot}%{_bindir}/node
5c5e80
5c5e80
%if %{?with_debug} == 1
5c5e80
# Install the debug binary and set its permissions
5c5e80
install -Dpm0755 out/Debug/node %{buildroot}/%{_bindir}/node_g
5c5e80
%endif
5c5e80
5c5e80
# own the sitelib directory
5c5e80
mkdir -p %{buildroot}%{_prefix}/lib/node_modules
5c5e80
5c5e80
# ensure Requires are added to every native module that match the Provides from
5c5e80
# the nodejs build in the buildroot
5c5e80
install -Dpm0644 %{SOURCE7} %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs_native.attr
5c5e80
cat << EOF > %{buildroot}%{_rpmconfigdir}/nodejs_native.req
5c5e80
#!/bin/sh
5c5e80
echo 'nodejs(abi%{nodejs_major}) >= %nodejs_abi'
5c5e80
echo 'nodejs(v8-abi%{v8_major}) >= %v8_abi'
5c5e80
EOF
5c5e80
chmod 0755 %{buildroot}%{_rpmconfigdir}/nodejs_native.req
5c5e80
5c5e80
# install documentation
5c5e80
mkdir -p %{buildroot}%{_pkgdocdir}/html
5c5e80
cp -pr doc/* %{buildroot}%{_pkgdocdir}/html
5c5e80
rm -f %{buildroot}%{_pkgdocdir}/html/nodejs.1
5c5e80
5c5e80
# node-gyp needs common.gypi too
5c5e80
mkdir -p %{buildroot}%{_datadir}/node
5c5e80
cp -p common.gypi %{buildroot}%{_datadir}/node
5c5e80
5c5e80
# Install the GDB init tool into the documentation directory
5c5e80
mv %{buildroot}/%{_datadir}/doc/node/gdbinit %{buildroot}/%{_pkgdocdir}/gdbinit
5c5e80
5c5e80
# install NPM docs to mandir
5c5e80
mkdir -p %{buildroot}%{_mandir} \
5c5e80
         %{buildroot}%{_pkgdocdir}/npm
5c5e80
5c5e80
cp -pr deps/npm/man/* %{buildroot}%{_mandir}/
5c5e80
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/man
5c5e80
ln -sf %{_mandir}  %{buildroot}%{_prefix}/lib/node_modules/npm/man
5c5e80
6dd088
# Install Gatsby HTML documentation to %%{_pkgdocdir}
5c5e80
cp -pr deps/npm/docs %{buildroot}%{_pkgdocdir}/npm/
5c5e80
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/docs
5c5e80
5c5e80
ln -sf %{_pkgdocdir}/npm %{buildroot}%{_prefix}/lib/node_modules/npm/docs
5c5e80
5c5e80
# Node tries to install some python files into a documentation directory
5c5e80
# (and not the proper one). Remove them for now until we figure out what to
5c5e80
# do with them.
5c5e80
rm -f %{buildroot}/%{_defaultdocdir}/node/lldb_commands.py \
5c5e80
      %{buildroot}/%{_defaultdocdir}/node/lldbinit
5c5e80
5c5e80
# Some NPM bundled deps are executable but should not be. This causes
5c5e80
# unnecessary automatic dependencies to be added. Make them not executable.
5c5e80
# Skip the npm bin directory or the npm binary will not work.
5c5e80
find %{buildroot}%{_prefix}/lib/node_modules/npm \
5c5e80
    -not -path "%{buildroot}%{_prefix}/lib/node_modules/npm/bin/*" \
5c5e80
    -executable -type f \
5c5e80
    -exec chmod -x {} \;
5c5e80
5c5e80
# The above command is a little overzealous. Add a few permissions back.
6dd088
chmod 0755 %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/node-gyp
5c5e80
chmod 0755 %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
5c5e80
21bee6
# Corepack contains a number of executable"shims", including some for Windows
21bee6
# PowerShell. Drop the executable bit for those so we don't pick up an
21bee6
# automatic dependency on /usr/bin/pwsh that we cannot satisfy.
21bee6
chmod -x %{buildroot}%{_prefix}/lib/node_modules/corepack/shims/*.ps1
21bee6
5c5e80
# Drop the NPM default configuration in place
5c5e80
mkdir -p %{buildroot}%{_sysconfdir}
5c5e80
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/npmrc
5c5e80
5c5e80
# NPM upstream expects it to be in /usr/etc/npmrc, so we'll put a symlink here
5c5e80
# This is done in the interests of keeping /usr read-only.
5c5e80
mkdir -p %{buildroot}%{_prefix}/etc
5c5e80
ln -s %{_sysconfdir}/npmrc %{buildroot}%{_prefix}/etc/npmrc
5c5e80
5c5e80
# Install the full-icu data files
5c5e80
install -Dpm0644 -t %{buildroot}%{icudatadir} deps/icu/source/converted/*
5c5e80
5c5e80
5c5e80
%check
5c5e80
# Fail the build if the versions don't match
5c5e80
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.node, '%{nodejs_version}')"
5c5e80
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.v8.replace(/-node\.\d+$/, ''), '%{v8_version}')"
5c5e80
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.ares.replace(/-DEV$/, ''), '%{c_ares_version}')"
5c5e80
5c5e80
# Ensure we have punycode and that the version matches
5c5e80
%{buildroot}/%{_bindir}/node -e "require(\"assert\").equal(require(\"punycode\").version, '%{punycode_version}')"
5c5e80
5c5e80
# Ensure we have npm and that the version matches
21bee6
# NODE_PATH=%{buildroot}%{_prefix}/lib/node_modules:%{buildroot}%{_prefix}/lib/node_modules/npm/node_modules %{buildroot}/%{_bindir}/node -e "require(\"assert\").equal(require(\"npm\").version, '%{npm_version}')"
21bee6
NODE_PATH=%{buildroot}%{_prefix}/lib/node_modules:%{buildroot}%{_prefix}/lib/node_modules/npm/node_modules %{buildroot}/%{_bindir}/node -e "require(\"assert\").equal(JSON.parse(require(\"fs\").readFileSync(\"%{buildroot}%{_prefix}/lib/node_modules/npm/package.json\")).version, '%{npm_version}')"
5c5e80
5c5e80
# Make sure i18n support is working
5c5e80
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}
5c5e80
5c5e80
5c5e80
%pretrans -n npm -p <lua>
5c5e80
-- Remove all of the symlinks from the bundled npm node_modules directory
5c5e80
-- This scriptlet can be removed in Fedora 31
5c5e80
base_path = "%{_prefix}/lib/node_modules/npm/node_modules/"
5c5e80
d_st = posix.stat(base_path)
5c5e80
if d_st then
5c5e80
  for f in posix.files(base_path) do
5c5e80
    path = base_path..f
5c5e80
    st = posix.stat(path)
5c5e80
    if st and st.type == "link" then
5c5e80
      os.remove(path)
5c5e80
    end
5c5e80
  end
5c5e80
end
5c5e80
5c5e80
-- Replace the npm docs directory with a symlink
5c5e80
-- Drop this scriptlet when F31 is EOL
5c5e80
path = "%{_prefix}/lib/node_modules/npm/doc"
5c5e80
st = posix.stat(path)
5c5e80
if st and st.type == "directory" then
5c5e80
  status = os.rename(path, path .. ".rpmmoved")
5c5e80
  if not status then
5c5e80
    suffix = 0
5c5e80
    while not status do
5c5e80
      suffix = suffix + 1
5c5e80
      status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
5c5e80
    end
5c5e80
    os.rename(path, path .. ".rpmmoved")
5c5e80
  end
5c5e80
end
5c5e80
5c5e80
-- Replace the npm docs directory with a symlink
5c5e80
-- Drop this scriptlet when F31 is EOL
5c5e80
path = "%{_prefix}/lib/node_modules/npm/html"
5c5e80
st = posix.stat(path)
5c5e80
if st and st.type == "directory" then
5c5e80
  status = os.rename(path, path .. ".rpmmoved")
5c5e80
  if not status then
5c5e80
    suffix = 0
5c5e80
    while not status do
5c5e80
      suffix = suffix + 1
5c5e80
      status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
5c5e80
    end
5c5e80
    os.rename(path, path .. ".rpmmoved")
5c5e80
  end
5c5e80
end
5c5e80
5c5e80
-- Replace the npm man directory with a symlink
5c5e80
-- Drop this scriptlet when F31 is EOL
5c5e80
path = "%{_prefix}/lib/node_modules/npm/man"
5c5e80
st = posix.stat(path)
5c5e80
if st and st.type == "directory" then
5c5e80
  status = os.rename(path, path .. ".rpmmoved")
5c5e80
  if not status then
5c5e80
    suffix = 0
5c5e80
    while not status do
5c5e80
      suffix = suffix + 1
5c5e80
      status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
5c5e80
    end
5c5e80
    os.rename(path, path .. ".rpmmoved")
5c5e80
  end
5c5e80
end
5c5e80
5c5e80
5c5e80
%files
5c5e80
%{_bindir}/node
5c5e80
%dir %{_prefix}/lib/node_modules
5c5e80
%dir %{_datadir}/node
5c5e80
%dir %{_datadir}/systemtap
5c5e80
%dir %{_datadir}/systemtap/tapset
5c5e80
%{_datadir}/systemtap/tapset/node.stp
5c5e80
21bee6
# corepack
21bee6
%{_bindir}/corepack
21bee6
%{_prefix}/lib/node_modules/corepack
21bee6
5c5e80
%dir %{_usr}/lib/dtrace
5c5e80
%{_usr}/lib/dtrace/node.d
5c5e80
5c5e80
%{_rpmconfigdir}/fileattrs/nodejs_native.attr
5c5e80
%{_rpmconfigdir}/nodejs_native.req
5c5e80
%license LICENSE
5c5e80
%doc AUTHORS CHANGELOG.md onboarding.md GOVERNANCE.md README.md
5c5e80
%doc %{_mandir}/man1/node.1*
5c5e80
5c5e80
5c5e80
%files devel
5c5e80
%if %{?with_debug} == 1
5c5e80
%{_bindir}/node_g
5c5e80
%endif
5c5e80
%{_includedir}/node
5c5e80
%{_datadir}/node/common.gypi
5c5e80
%{_pkgdocdir}/gdbinit
5c5e80
5c5e80
5c5e80
%files full-i18n
5c5e80
%dir %{icudatadir}
5c5e80
%{icudatadir}/icudt%{icu_major}*.dat
5c5e80
5c5e80
5c5e80
%files -n npm
5c5e80
%{_bindir}/npm
5c5e80
%{_bindir}/npx
5c5e80
%{_prefix}/lib/node_modules/npm
5c5e80
%config(noreplace) %{_sysconfdir}/npmrc
5c5e80
%{_prefix}/etc/npmrc
5c5e80
%ghost %{_sysconfdir}/npmignore
5c5e80
%doc %{_mandir}/man1/npm*.1*
5c5e80
%doc %{_mandir}/man1/npx.1*
5c5e80
%doc %{_mandir}/man5/folders.5*
5c5e80
%doc %{_mandir}/man5/install.5*
5c5e80
%doc %{_mandir}/man5/npmrc.5*
5c5e80
%doc %{_mandir}/man5/package-json.5*
5c5e80
%doc %{_mandir}/man5/package-lock-json.5*
5c5e80
%doc %{_mandir}/man5/npm-shrinkwrap-json.5*
5c5e80
%doc %{_mandir}/man7/config.7*
5c5e80
%doc %{_mandir}/man7/developers.7*
5c5e80
%doc %{_mandir}/man7/orgs.7*
6dd088
%doc %{_mandir}/man7/logging.7*
5c5e80
%doc %{_mandir}/man7/registry.7*
5c5e80
%doc %{_mandir}/man7/removal.7*
5c5e80
%doc %{_mandir}/man7/scope.7*
5c5e80
%doc %{_mandir}/man7/scripts.7*
5c5e80
%doc %{_mandir}/man7/workspaces.7*
5c5e80
5c5e80
5c5e80
%files docs
5c5e80
%doc doc
5c5e80
%dir %{_pkgdocdir}
5c5e80
%{_pkgdocdir}/html
5c5e80
%{_pkgdocdir}/npm/docs
5c5e80
5c5e80
5c5e80
%changelog
6dd088
* Mon Apr 11 2022 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.14.0-4
6dd088
- Apply lock file validation fixes
6dd088
- Resolves CVE-2021-43616
6dd088
- Resolves: RHBZ#2070012
6dd088
21bee6
* Mon Dec 06 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.13.1-3
6dd088
- Resolves: RHBZ#2026329
21bee6
- Add corepack to spec
21bee6
21bee6
* Mon Dec 06 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.13.1-2
6dd088
- Resolves: RHBZ#2026329
21bee6
- Update npm version test
21bee6
21bee6
* Thu Dec 02 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.13.1-1
6dd088
- Resolves: RHBZ#2014132, RHBZ#2014126, RHBZ#2013828, RHBZ#2024920
6dd088
- Resolves: RHBZ#2026329
21bee6
- Rebase to LTS release and to fix multiple low and medium CVEs
21bee6
5c5e80
* Mon Sep 13 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.8.0-1
5c5e80
- Resolves CVE-2021-32803, CVE-2021-32804, CVE-2021-37701, CVE-2021-37712
5c5e80
- Resolves: RHBZ#1993948, RHBZ#1993941, RHBZ#2000151, RHBZ#2002176
5c5e80
5c5e80
* Mon Aug 30 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.7.0-2
5c5e80
- Resolves CVE-2021-22930, CVE-2021-22931, CVE-2021-22939,
5c5e80
- CVE-2021-22940, CVE-2021-32803, CVE-2021-32804, CVE-2021-3672
5c5e80
- Resolves: RHBZ#1988608, RHBZ#1993816, RHBZ#1993810
5c5e80
- Resolves: RHBZ#1993097, RHBZ#1993948, RHBZ#1993941, RHBZ#1994963
5c5e80
- fix python3 in gyp
5c5e80
5c5e80
* Wed Aug 18 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.7.0-1
5c5e80
- Resolves CVE-2021-22930, CVE-2021-22931, CVE-2021-22939,
5c5e80
- CVE-2021-22940, CVE-2021-32803, CVE-2021-32804, CVE-2021-3672
5c5e80
- Resolves: RHBZ#1988608, RHBZ#1993816, RHBZ#1993810
5c5e80
- Resolves: RHBZ#1993097, RHBZ#1993948, RHBZ#1993941, RHBZ#1994963
5c5e80
5c5e80
* Fri Jul 09 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.4.2-1
5c5e80
- Resolves: RHBZ#1979847
5c5e80
- Resolves CVE-2021-22918(libuv)
5c5e80
- Use system cipher list(1842826, 1952915)
5c5e80
5c5e80
* Tue May 11 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:16.1.0-1
5c5e80
- Resolves: RHBZ#1953991
5c5e80
- Rebase to v16.x
5c5e80
- Update version of gcc and gcc-c++ needed
5c5e80
- Remove libs conditionals
5c5e80
- Remove unused patches
5c5e80
- Bundle nghttp3 and ngtcp2
5c5e80
5c5e80
* Mon Mar 01 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.16.0-2
5c5e80
- Resolves RHBZ#1930775
5c5e80
- remove --debug-nghttp2 option
5c5e80
5c5e80
* Mon Mar 01 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.16.0-1
5c5e80
- Resolves CVE-2021-22883 CVE-2021-22884
5c5e80
- Resolves: RHBZ#1934566, RHBZ#1934599
5c5e80
- Rebase, remove ini patch
5c5e80
5c5e80
* Tue Jan 26 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.15.4-2
5c5e80
- Add patch for yarn crash
5c5e80
- Resolves: RHBZ#1915296
5c5e80
5c5e80
* Tue Jan 19 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.15.4-1
5c5e80
- Security rebase to 14.15.4
5c5e80
- https://nodejs.org/en/blog/vulnerability/january-2021-security-releases/
5c5e80
- Resolves: RHBZ#1913001, RHBZ#1912953
5c5e80
- Resolves: RHBZ#1912636, RHBZ#1898602, RHBZ#1898768, RHBZ#1893987, RHBZ#1893184
5c5e80
5c5e80
* Thu Oct 29 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.15.0-1
5c5e80
- Resolves: RHBZ#1858864
5c5e80
- Update to LTS release
5c5e80
5c5e80
* Mon Sep 21 2020 Jan Staněk <jstanek@redhat.com> - 1:14.11.0-1
5c5e80
- Security update to 14.11.0
5c5e80
5c5e80
* Wed Jun 03 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.4.0-1
5c5e80
- Security update to 14.4.0
5c5e80
- Resolves: RHBZ#1815402
5c5e80
5c5e80
* Thu May 21 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.3.0-1
5c5e80
- Update to 14.3.0
5c5e80
- Fix optflags to save memory
5c5e80
- Resolves: RHBZ#1815402
5c5e80
5c5e80
* Wed May 06 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:14.2.0-1
5c5e80
- Update to 14.2.0
5c5e80
- build with python3 only
5c5e80
- some clean up
5c5e80
5c5e80
* Tue Mar 17 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:12.16.1-2
5c5e80
- Fix CVE-2020-10531
5c5e80
5c5e80
* Thu Feb 20 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:12.16.1-1
5c5e80
- Rebase to 12.16.1
5c5e80
5c5e80
* Wed Jan 15 2020 Jan Staněk <jstanek@redhat.com> - 1:12.14.1-1
5c5e80
- Rebase to 12.14.1
5c5e80
5c5e80
* Fri Nov 29 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:12.13.1-1
5c5e80
- Resolves: RHBZ# 1773503, update to 12.13.1
5c5e80
- minor clean up and sync with Fedora spec
5c5e80
- turn off debug builds
5c5e80
5c5e80
* Thu Aug 01 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:12.4.0-2
5c5e80
- Add condition to libs
5c5e80
5c5e80
* Wed Jun 12 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:12.4.0-1
5c5e80
- Update to v12.x
5c5e80
- Add v8-devel and libs subpackages from fedora
5c5e80
5c5e80
* Thu Mar 14 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.14.1-2
5c5e80
- move nodejs-packaging BR out of conditional
5c5e80
5c5e80
* Tue Dec 11 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.14.1-1
5c5e80
- Resolves RHBZ#1644207
5c5e80
- fixes node-gyp permissions
5c5e80
- rebase
5c5e80
5c5e80
* Thu Oct 11 2018 Jan Staněk <jstanek@redhat.com> - 1:10.11.0-2
5c5e80
- BuildRequire nodejs-packaging for proper npm dependency generation
5c5e80
- Resolves: rhbz#1615947
5c5e80
5c5e80
* Mon Oct 08 2018 Jan Staněk <jstanek@redhat.com> - 1:10.11.0-1
5c5e80
- Rebase to 10.11.0
5c5e80
- Import changes from fedora
5c5e80
- Resolves: rhbz#1621766
5c5e80
5c5e80
* Mon Jul 30 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.7.0-5
5c5e80
- Import sources from fedora
5c5e80
- Allow using python2 at %%build and %%install
5c5e80
- turn off debug for aarch64
5c5e80
5c5e80
* Fri Jul 20 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-4
5c5e80
- Fix npm upgrade scriptlet
5c5e80
- Fix unexpected trailing .1 in npm release field
5c5e80
5c5e80
* Fri Jul 20 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-3
5c5e80
- Restore annotations to binaries
5c5e80
- Fix unexpected trailing .1 in release field
5c5e80
5c5e80
* Thu Jul 19 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-2
5c5e80
- Update to 10.7.0
5c5e80
- https://nodejs.org/en/blog/release/v10.7.0/
5c5e80
- https://nodejs.org/en/blog/release/v10.6.0/
5c5e80
5c5e80
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.5.0-1.1
5c5e80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5c5e80
5c5e80
* Thu Jun 21 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.5.0-1
5c5e80
- Update to 10.5.0
5c5e80
- https://nodejs.org/en/blog/release/v10.5.0/
5c5e80
5c5e80
* Thu Jun 14 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.4.1-1
5c5e80
- Update to 10.4.1 to address security issues
5c5e80
- https://nodejs.org/en/blog/release/v10.4.1/
5c5e80
- Resolves: rhbz#1590801
5c5e80
- Resolves: rhbz#1591014
5c5e80
- Resolves: rhbz#1591019
5c5e80
5c5e80
* Thu Jun 07 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.4.0-1
5c5e80
- Update to 10.4.0
5c5e80
- https://nodejs.org/en/blog/release/v10.4.0/
5c5e80
5c5e80
* Wed May 30 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.3.0-1
5c5e80
- Update to 10.3.0
5c5e80
- Update npm to 6.1.0
5c5e80
- https://nodejs.org/en/blog/release/v10.3.0/
5c5e80
5c5e80
* Tue May 29 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.1-2
5c5e80
- Fix up bare 'python' to be python2
5c5e80
- Drop redundant entry in docs section
5c5e80
5c5e80
* Fri May 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.1-1
5c5e80
- Update to 10.2.1
5c5e80
- https://nodejs.org/en/blog/release/v10.2.1/
5c5e80
5c5e80
* Wed May 23 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.0-1
5c5e80
- Update to 10.2.0
5c5e80
- https://nodejs.org/en/blog/release/v10.2.0/
5c5e80
5c5e80
* Thu May 10 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-3
5c5e80
- Fix incorrect rpm macro
5c5e80
5c5e80
* Thu May 10 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-2
5c5e80
- Include upstream v8 fix for ppc64[le]
5c5e80
- Disable debug build on ppc64[le] and s390x
5c5e80
5c5e80
* Wed May 09 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-1
5c5e80
- Update to 10.1.0
5c5e80
- https://nodejs.org/en/blog/release/v10.1.0/
5c5e80
- Reenable node_g binary
5c5e80
5c5e80
* Thu Apr 26 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.0.0-1
5c5e80
- Update to 10.0.0
5c5e80
- https://nodejs.org/en/blog/release/v10.0.0/
5c5e80
- Drop workaround patch
5c5e80
- Temporarily drop node_g binary due to
5c5e80
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85587
5c5e80
5c5e80
* Fri Apr 13 2018 Rafael dos Santos <rdossant@redhat.com> - 1:9.11.1-2
5c5e80
- Use standard Fedora linker flags (bug #1543859)
5c5e80
5c5e80
* Thu Apr 05 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.11.1-1
5c5e80
- Update to 9.11.1
5c5e80
- https://nodejs.org/en/blog/release/v9.11.0/
5c5e80
- https://nodejs.org/en/blog/release/v9.11.1/
5c5e80
5c5e80
* Wed Mar 28 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.10.0-1
5c5e80
- Update to 9.10.0
5c5e80
- https://nodejs.org/en/blog/release/v9.10.0/
5c5e80
5c5e80
* Wed Mar 21 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.9.0-1
5c5e80
- Update to 9.9.0
5c5e80
- https://nodejs.org/en/blog/release/v9.9.0/
5c5e80
5c5e80
* Thu Mar 08 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.8.0-1
5c5e80
- Update to 9.8.0
5c5e80
- https://nodejs.org/en/blog/release/v9.8.0/
5c5e80
5c5e80
* Thu Mar 01 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.7.0-1
5c5e80
- Update to 9.7.0
5c5e80
- https://nodejs.org/en/blog/release/v9.7.0/
5c5e80
- Work around F28 build issue
5c5e80
5c5e80
* Sun Feb 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.6.1-1
5c5e80
- Update to 9.6.1
5c5e80
- https://nodejs.org/en/blog/release/v9.6.1/
5c5e80
- https://nodejs.org/en/blog/release/v9.6.0/
5c5e80
5c5e80
* Mon Feb 05 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.5.0-1
5c5e80
- Package Node.js 9.5.0
5c5e80
5c5e80
* Thu Jan 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.4-2
5c5e80
- Fix incorrect Requires:
5c5e80
5c5e80
* Thu Jan 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.4-1
5c5e80
- Update to 8.9.4
5c5e80
- https://nodejs.org/en/blog/release/v8.9.4/
5c5e80
- Switch to system copy of nghttp2
5c5e80
5c5e80
* Fri Dec 08 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.3-2
5c5e80
- Update to 8.9.3
5c5e80
- https://nodejs.org/en/blog/release/v8.9.3/
5c5e80
- https://nodejs.org/en/blog/release/v8.9.2/
5c5e80
5c5e80
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 1:8.9.1-2
5c5e80
- Rebuild for ICU 60.1
5c5e80
5c5e80
* Thu Nov 09 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.9.1-1
5c5e80
- Update to 8.9.1
5c5e80
5c5e80
* Tue Oct 31 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.0-1
5c5e80
- Update to 8.9.0
5c5e80
- Drop upstreamed patch
5c5e80
5c5e80
* Thu Oct 26 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.8.1-1
5c5e80
- Update to 8.8.1 to fix a regression
5c5e80
5c5e80
* Wed Oct 25 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.8.0-1
5c5e80
- Security update to 8.8.0
5c5e80
- https://nodejs.org/en/blog/release/v8.8.0/
5c5e80
5c5e80
* Sun Oct 15 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.7.0-1
5c5e80
- Update to 8.7.0
5c5e80
- https://nodejs.org/en/blog/release/v8.7.0/
5c5e80
5c5e80
* Fri Oct 06 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.6.0-2
5c5e80
- Use bcond macro instead of bootstrap conditional
5c5e80
5c5e80
* Wed Sep 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.6.0-1
5c5e80
- Fix nghttp2 version
5c5e80
- Update to 8.6.0
5c5e80
- https://nodejs.org/en/blog/release/v8.6.0/
5c5e80
5c5e80
* Wed Sep 20 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.5.0-3
5c5e80
- Build with bootstrap + bundle libuv for modularity
5c5e80
- backport patch for aarch64 debug build
5c5e80
5c5e80
* Wed Sep 13 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.5.0-2
5c5e80
- Disable debug builds on aarch64 due to https://github.com/nodejs/node/issues/15395
5c5e80
5c5e80
* Tue Sep 12 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.5.0-1
5c5e80
- Update to v8.5.0
5c5e80
- https://nodejs.org/en/blog/release/v8.5.0/
5c5e80
5c5e80
* Thu Sep 07 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.4.0-2
5c5e80
- Refactor openssl BR
5c5e80
5c5e80
* Wed Aug 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.4.0-1
5c5e80
- Update to v8.4.0
5c5e80
- https://nodejs.org/en/blog/release/v8.4.0/
5c5e80
- http2 is now supported, add bundled nghttp2
5c5e80
- remove openssl 1.0.1 patches, we won't be using them in fedora
5c5e80
5c5e80
* Thu Aug 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.3.0-1
5c5e80
- Update to v8.3.0
5c5e80
- https://nodejs.org/en/blog/release/v8.3.0/
5c5e80
- update V8 to 6.0
5c5e80
- update minimal gcc and g++ requirements to 4.9.4
5c5e80
5c5e80
* Wed Aug 09 2017 Tom Hughes <tom@compton.nu> - 1:8.2.1-2
5c5e80
- Bump release to fix broken dependencies
5c5e80
5c5e80
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.2.1-1.2
5c5e80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5c5e80
5c5e80
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.2.1-1.1
5c5e80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5c5e80
5c5e80
* Fri Jul 21 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.2.1-1
5c5e80
- Update to v8.2.1
5c5e80
- https://nodejs.org/en/blog/release/v8.2.1/
5c5e80
5c5e80
* Thu Jul 20 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.2.0-1
5c5e80
- Update to v8.2.0
5c5e80
- https://nodejs.org/en/blog/release/v8.2.0/
5c5e80
- Update npm to 5.3.0
5c5e80
- Adds npx command
5c5e80
5c5e80
* Tue Jul 18 2017 Igor Gnatenko <ignatenko@redhat.com> - 1:8.1.4-3
5c5e80
- s/BuildRequires/Requires/ for http-parser-devel%%{?_isa}
5c5e80
5c5e80
* Mon Jul 17 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.4-2
5c5e80
- Rename python-devel to python2-devel
5c5e80
- own %%{_pkgdocdir}/npm
5c5e80
5c5e80
* Tue Jul 11 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.1.4-1
5c5e80
- Update to v8.1.4
5c5e80
- https://nodejs.org/en/blog/release/v8.1.4/
5c5e80
- Drop upstreamed c-ares patch
5c5e80
5c5e80
* Thu Jun 29 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.3-1
5c5e80
- Update to v8.1.3
5c5e80
- https://nodejs.org/en/blog/release/v8.1.3/
5c5e80
5c5e80
* Wed Jun 28 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.2-1
5c5e80
- Update to v8.1.2
5c5e80
- remove GCC 7 patch, as it is now fixed in node >= 6.12
5c5e80