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