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