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