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