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