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