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