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