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