Blame SPECS/nodejs.spec

3f476a
%{?scl:%scl_package nodejs}
3f476a
%{!?scl:%global pkg_name %{name}}
3f476a
3f476a
# Enable debug build
3f476a
%bcond_with debug
3f476a
# Enable bootstrapping – enabled by default
3f476a
%bcond_without bootstrap
3f476a
3f476a
# When running parallel build, ld tends to run out of memory/be killed by signal 9
3f476a
# Put parallel compilation behind bcond for now
3f476a
%bcond_with parallel_build
3f476a
3f476a
# ARM builds currently break on the Debug builds, so we'll just
3f476a
# build the standard runtime until that gets sorted out.
3f476a
%ifarch %{arm} aarch64 %{power64}
3f476a
%undefine with_debug
3f476a
%endif
3f476a
3f476a
# == Node.js Version ==
3f476a
# Note: Fedora should only ship LTS versions of Node.js (currently expected
3f476a
# to be major versions with even numbers). The odd-numbered versions are new
3f476a
# feature releases that are only supported for nine months, which is shorter
3f476a
# than a Fedora release lifecycle.
3f476a
%global nodejs_major 14
4fb6d9
%global nodejs_minor 21
dfe84b
%global nodejs_patch 1
3f476a
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
3f476a
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}
4fb6d9
%global nodejs_release 3
4fb6d9
4fb6d9
%global nodejs_datadir %{_datarootdir}/nodejs
3f476a
3f476a
# == Bundled Dependency Versions ==
3f476a
# v8 - from deps/v8/include/v8-version.h
3f476a
%global v8_major 8
3f476a
%global v8_minor 4
3f476a
%global v8_build 371
f0ceb1
%global v8_patch 23
3f476a
# V8 presently breaks ABI at least every x.y release while never bumping SONAME
3f476a
%global v8_abi %{v8_major}.%{v8_minor}
3f476a
%global v8_version %{v8_major}.%{v8_minor}.%{v8_build}.%{v8_patch}
3f476a
3f476a
# c-ares - from deps/cares/include/ares_version.h
3f476a
%global c_ares_major 1
9500a8
%global c_ares_minor 18
9500a8
%global c_ares_patch 1
3f476a
%global c_ares_version %{c_ares_major}.%{c_ares_minor}.%{c_ares_patch}
3f476a
3f476a
# llhttp - from deps/llhttp/include/llhttp.h
3f476a
%global llhttp_major 2
3f476a
%global llhttp_minor 1
dfe84b
%global llhttp_patch 6
3f476a
%global llhttp_version %{llhttp_major}.%{llhttp_minor}.%{llhttp_patch}
3f476a
3f476a
# libuv - from deps/uv/include/uv/version.h
3f476a
%global libuv_major 1
9500a8
%global libuv_minor 42
3f476a
%global libuv_patch 0
3f476a
%global libuv_version %{libuv_major}.%{libuv_minor}.%{libuv_patch}
3f476a
3f476a
# nghttp2 - from deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h
3f476a
%global nghttp2_major 1
f0ceb1
%global nghttp2_minor 42
3f476a
%global nghttp2_patch 0
3f476a
%global nghttp2_version %{nghttp2_major}.%{nghttp2_minor}.%{nghttp2_patch}
3f476a
4fb6d9
# ICU – from tools/icu/current_ver.dep
4fb6d9
%global icu_major 70
4fb6d9
%global icu_minor 1
4fb6d9
%global icu_version %{icu_major}.%{icu_minor}
4fb6d9
4fb6d9
%global icudatadir %{nodejs_datadir}/icudata
4fb6d9
%{!?little_endian: %global little_endian %(%{__python3} -c "import sys;print(0 if sys.byteorder=='big' else 1)")}
4fb6d9
# " this line just fixes syntax highlighting for vim that is confused by the above and continues literal
4fb6d9
4fb6d9
%global sys_icu_version %(/usr/bin/icu-config --version)
4fb6d9
4fb6d9
%if "%{sys_icu_version}" >= "%{icu_version}"
4fb6d9
%global bundled_icu 0
4fb6d9
%global icu_flag system-icu
4fb6d9
%else
4fb6d9
%global bundled_icu 1
4fb6d9
%global icu_flag full-icu
4fb6d9
%endif
4fb6d9
3f476a
# punycode - from lib/punycode.js
3f476a
%global punycode_major 2
3f476a
%global punycode_minor 1
3f476a
%global punycode_patch 0
3f476a
%global punycode_version %{punycode_major}.%{punycode_minor}.%{punycode_patch}
3f476a
3f476a
# npm - from deps/npm/package.json
3f476a
%global npm_major 6
3f476a
%global npm_minor 14
effb77
%global npm_patch 17
3f476a
%global npm_version %{npm_major}.%{npm_minor}.%{npm_patch}
3f476a
3f476a
# uvwasi - from deps/uvwasi/include/uvwasi.h
3f476a
%global uvwasi_major 0
3f476a
%global uvwasi_minor 0
3f476a
%global uvwasi_patch 11
3f476a
%global uvwasi_version %{uvwasi_major}.%{uvwasi_minor}.%{uvwasi_patch}
3f476a
3f476a
# zlib version - from deps/zlib/zlib.h
3f476a
# Note: Only required/bundled on RHEL-7
3f476a
%global zlib_major 1
3f476a
%global zlib_minor 2
3f476a
%global zlib_patch 11
3f476a
%global zlib_version %{zlib_major}.%{zlib_minor}.%{zlib_patch}
3f476a
3f476a
# histogram_c - assumed from timestamps
3f476a
%global histogram_major 0
3f476a
%global histogram_minor 9
3f476a
%global histogram_patch 7
3f476a
%global histogram_version %{histogram_major}.%{histogram_minor}.%{histogram_patch}
3f476a
3f476a
# In order to avoid needing to keep incrementing the release version for the
3f476a
# main package forever, we will just construct one for npm that is guaranteed
3f476a
# to increment safely. Changing this can only be done during an update when the
3f476a
# base npm version number is increasing.
3f476a
%global npm_release %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release}
3f476a
3f476a
# Filter out the NPM bundled dependencies so we aren't providing them
3f476a
%global __provides_exclude_from ^%{nodejs_sitelib}/npm/node_modules.*$
3f476a
%global __requires_exclude_from ^%{nodejs_sitelib}/npm/node_modules.*$
3f476a
3f476a
3f476a
Name: %{?scl_prefix}nodejs
3f476a
Version: %{nodejs_version}
3f476a
Release: %{nodejs_release}%{?dist}
3f476a
Summary: JavaScript runtime
3f476a
License: MIT and ASL 2.0 and ISC and BSD
3f476a
Group: Development/Languages
3f476a
URL: http://nodejs.org/
3f476a
3f476a
# nodejs bundles openssl, but we use the system version in Fedora
3f476a
# because openssl contains prohibited code, we remove openssl completely from
3f476a
# the tarball, using the script in Source100
3f476a
Source0: node-v%{nodejs_version}-stripped.tar.gz
3f476a
Source100: %{pkg_name}-tarball.sh
3f476a
# Use separate shim library to smooth the rough edges of API incompatibility
3f476a
# between OpenSSL versions
f0ceb1
Source1: https://github.com/sclorg/node-ssl-shim/archive/70e39fdc1db4525191acc765f9d524ddb58a1756/node-ssl-shim-70e39fd.tar.gz
3f476a
4fb6d9
Source2: btest402.js
4fb6d9
Source3: https://github.com/unicode-org/icu/releases/download/release-%{icu_major}-%{icu_minor}/icu4c-%{icu_major}_%{icu_minor}-src.tgz
4fb6d9
4fb6d9
# These are full sources for dependencies included as WASM blobs in the source of Node itself.
4fb6d9
# Note: These sources would also include pre-compiled WASM blobs… so they are adjusted not to.
4fb6d9
# Recipes for creating these blobs are included in the sources.
4fb6d9
4fb6d9
# Version: jq '.version' deps/cjs-module-lexer/package.json
4fb6d9
# Original: https://github.com/nodejs/cjs-module-lexer/archive/refs/tags/1.2.2.tar.gz
4fb6d9
# Adjustments: rm -f cjs-module-lexer-1.2.2/lib/lexer.wasm
4fb6d9
Source101: cjs-module-lexer-1.2.2.tar.gz
4fb6d9
# The WASM blob was made using wasi-sdk v11; compiler libraries are linked in.
4fb6d9
# Version source: Makefile
4fb6d9
Source102: https://github.com/WebAssembly/wasi-sdk/archive/wasi-sdk-11/wasi-sdk-wasi-sdk-11.tar.gz
4fb6d9
3f476a
# Patches for making nodejs compatible with older openssl
3f476a
# Squashed and exported from https://gitlab.cee.redhat.com/nodejs/node
3f476a
# – please submit changes to the appropriate branch there (redhat/%%{version}).
3f476a
Patch1: 0001-Link-with-ssl-shim.patch
3f476a
Patch2: 0002-Use-OpenSSL-1.0-API.patch
3f476a
Patch3: 0003-Backport-necessary-OpenSSL-features.patch
3f476a
Patch4: 0004-Disable-unsupported-OpenSSL-features.patch
3f476a
Patch5: 0005-Adjust-tests-expectations.patch
3f476a
Patch6: 0006-Disable-tests-for-unsupported-features.patch
3f476a
Patch7: 0007-Disable-tests-for-known-issues.patch
3f476a
3f476a
# Remove libuv attempts to use statx syscall – rhbz#1760184
3f476a
Patch10: deps-Remove-statx-from-libuv.patch
3f476a
# Make icutrim work with python 2
3f476a
Patch11: Make-icutrim.py-Python-2-compatible.patch
3f476a
9500a8
# Address various CVEs in bundled deps
9500a8
Patch21: deps-ansi-regex-fix-potential-ReDoS.patch
4fb6d9
Patch22: deps-node-fetch-npm-backport-CVE-2022-0235-fix.patch
4fb6d9
Patch23: deps-qs-parse-ignore-__proto__-keys.patch
4fb6d9
Patch24: deps-minimist-improve-redos-protection.patch
407d75
3f476a
3f476a
%{?scl:Requires: %{scl}-runtime}
3f476a
%{?scl:BuildRequires: %{scl}-runtime}
3f476a
BuildRequires: python-devel
3f476a
#BuildRequires: libicu-devel
3f476a
BuildRequires: zlib-devel
3f476a
BuildRequires: devtoolset-9-gcc
3f476a
BuildRequires: devtoolset-9-gcc-c++
3f476a
# needed for tests
3f476a
BuildRequires: procps-ng
3f476a
BuildRequires: systemtap-sdt-devel
3f476a
BuildRequires: chrpath
3f476a
BuildRequires: devtoolset-9-libatomic-devel
3f476a
3f476a
3f476a
BuildRequires: openssl-devel >= 1:1.0.2
3f476a
3f476a
Requires: ca-certificates
3f476a
3f476a
#we need ABI virtual provides where SONAMEs aren't enough/not present so deps
3f476a
#break when binary compatibility is broken
3f476a
Provides: %{?scl_prefix}nodejs(abi) = %{nodejs_abi}
3f476a
Provides: %{?scl_prefix}nodejs(abi%{nodejs_major}) = %{nodejs_abi}
3f476a
Provides: %{?scl_prefix}nodejs(v8-abi) = %{v8_abi}
3f476a
Provides: %{?scl_prefix}nodejs(v8-abi%{v8_major}) = %{v8_abi}
3f476a
3f476a
#this corresponds to the "engine" requirement in package.json
3f476a
Provides: %{?scl_prefix}nodejs(engine) = %{nodejs_version}
3f476a
3f476a
# Node.js currently has a conflict with the 'node' package in Fedora
3f476a
# The ham-radio group has agreed to rename their binary for us, but
3f476a
# in the meantime, we're setting an explicit Conflicts: here
3f476a
Conflicts: node <= 0.3.2-12
3f476a
3f476a
# The punycode module was absorbed into the standard library in v0.6.
3f476a
# It still exists as a seperate package for the benefit of users of older
3f476a
# versions.  Since we've never shipped anything older than v0.10 in Fedora,
3f476a
# we don't need the seperate nodejs-punycode package, so we Provide it here so
3f476a
# dependent packages don't need to override the dependency generator.
3f476a
# See also: RHBZ#11511811
3f476a
# UPDATE: punycode will be deprecated and so we should unbundle it in Node v8
3f476a
# and use upstream module instead
3f476a
# https://github.com/nodejs/node/commit/29e49fc286080215031a81effbd59eac092fff2f
3f476a
Provides: %{?scl_prefix}nodejs-punycode = %{punycode_version}
3f476a
Provides: %{?scl_prefix}npm(punycode) = %{punycode_version}
3f476a
3f476a
3f476a
# Node.js has forked c-ares from upstream in an incompatible way, so we need
3f476a
# to carry the bundled version internally.
3f476a
# See https://github.com/nodejs/node/commit/766d063e0578c0f7758c3a965c971763f43fec85
3f476a
Provides: bundled(%{?scl_prefix}c-ares) = %{c_ares_version}
3f476a
3f476a
# Node.js is closely tied to the version of v8 that is used with it. It makes
3f476a
# sense to use the bundled version because upstream consistently breaks ABI
3f476a
# even in point releases. Node.js upstream has now removed the ability to build
3f476a
# against a shared system version entirely.
3f476a
# See https://github.com/nodejs/node/commit/d726a177ed59c37cf5306983ed00ecd858cfbbef
3f476a
Provides: bundled(%{?scl_prefix}v8) = %{v8_version}
3f476a
3f476a
# Node.js and http-parser share an upstream. The http-parser upstream does not
3f476a
# do releases often and is almost always far behind the bundled version
3f476a
Provides: bundled(%{?scl_prefix}llhttp) = %{llhttp_version}
3f476a
3f476a
# We now bundle libuv in SCL too
3f476a
Provides: bundled(%{?scl_prefix}libuv) = %{libuv_version}
3f476a
3f476a
# Node.js provides http2 support, but shared option is not yet available
3f476a
Provides: bundled(%{?scl_prefix}nghttp2) = %{nghttp2_version}
3f476a
3f476a
# Bundle zlib on RHEL7, as the system version is too old
3f476a
Provides: bundled(%{?scl_prefix}zlib) = %{zlib_version}
3f476a
4fb6d9
# Bundle icu if not using the system one
4fb6d9
%if "%{icu_flag}" != "system-icu"
4fb6d9
Provides: bundled(%{?scl_prefix}icu) = %{icu_version}
4fb6d9
%endif
4fb6d9
3f476a
# Bundle uvwasi, since it is not available on RHEL7
3f476a
Provides: bundled(%{?scl_prefix}uvwasi) = %{uvwasi_version}
3f476a
f0ceb1
Provides: bundled(%{?scl_prefix}histogram) = %{histogram_version}
3f476a
3f476a
# Make sure we keep NPM up to date when we update Node.js
3f476a
Requires: %{?scl_prefix}npm = %{npm_version}-%{npm_release}%{?dist}
3f476a
3f476a
%description
3f476a
Node.js is a platform built on Chrome's JavaScript runtime
3f476a
for easily building fast, scalable network applications.
3f476a
Node.js uses an event-driven, non-blocking I/O model that
3f476a
makes it lightweight and efficient, perfect for data-intensive
3f476a
real-time applications that run across distributed devices.
3f476a
3f476a
3f476a
%package devel
3f476a
Summary: JavaScript runtime - development headers
3f476a
Group: Development/Languages
3f476a
Requires: %{?scl_prefix}%{pkg_name}%{?_isa} = %{nodejs_version}-%{nodejs_release}%{?dist}
3f476a
Requires: openssl-devel%{?_isa}
3f476a
Requires: zlib-devel%{?_isa}
3f476a
Requires: %{?scl_prefix}runtime
3f476a
3f476a
%if !%{with bootstrap}
3f476a
Requires: %{?scl_prefix}http-parser-devel%{?_isa}
3f476a
%endif
3f476a
3f476a
3f476a
%description devel
3f476a
Development headers for the Node.js JavaScript runtime.
3f476a
3f476a
4fb6d9
%package full-i18n
4fb6d9
Summary: Non-English locale data for Node.js
4fb6d9
Requires: %{name}%{?_isa} = %{nodejs_version}-%{nodejs_release}%{?dist}
4fb6d9
4fb6d9
%description full-i18n
4fb6d9
Optional data files to provide full-icu support for Node.js. Remove this
4fb6d9
package to save space if non-English locales are not needed.
4fb6d9
4fb6d9
3f476a
%package -n %{?scl_prefix}npm
3f476a
Summary: Node.js Package Manager
3f476a
Version: %{npm_version}
3f476a
Release: %{npm_release}%{?dist}
3f476a
3f476a
# We used to ship npm separately, but it is so tightly integrated with Node.js
3f476a
# (and expected to be present on all Node.js systems) that we ship it bundled
3f476a
# now.
3f476a
Provides: %{?scl_prefix}npm = %{npm_version}
3f476a
Requires: %{?scl_prefix}nodejs = %{nodejs_version}-%{nodejs_release}%{?dist}
3f476a
3f476a
3f476a
%description -n %{?scl_prefix}npm
3f476a
npm is a package manager for node.js. You can use it to install and publish
3f476a
your node programs. It manages dependencies and does other cool stuff.
3f476a
3f476a
3f476a
%package docs
3f476a
Summary: Node.js API documentation
3f476a
Group: Documentation
3f476a
BuildArch: noarch
3f476a
3f476a
%description docs
3f476a
The API documentation for the Node.js JavaScript runtime.
3f476a
3f476a
3f476a
%prep
3f476a
%autosetup -p1 -n node-v%{nodejs_version}
3f476a
3f476a
# Add SSL shim files to dependencies
3f476a
tar -C deps/ -xzf "%{SOURCE1}" && mv deps/node-ssl-shim* deps/node-ssl-shim
3f476a
3f476a
# fix file permissions on source and header files
3f476a
find deps/ -name '*.c' -o -name '*.h' -exec chmod 0644 '{}' +
3f476a
3f476a
3f476a
%build
3f476a
3f476a
%{?scl:scl enable %{scl} devtoolset-9 - << \EOF}
3f476a
3f476a
# _pkgdocdir does not support subpackage with different version
3f476a
%{?rhel7:%global _pkgdocdir %{_docdir}/%{name}-%{nodejs_version}}
3f476a
3f476a
set -ex
3f476a
3f476a
# Install ssl shim as bundled dependency
3f476a
%{make_install} -C deps/node-ssl-shim prefix=.
3f476a
3f476a
# build with debugging symbols and add defines from libuv (#892601)
3f476a
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
3f476a
# NULL objects. We need to pass -fno-delete-null-pointer-checks
3f476a
extra_cflags=(
3f476a
    -g
3f476a
    -D_LARGEFILE_SOURCE
3f476a
    -D_FILE_OFFSET_BITS=64
3f476a
    -DZLIB_CONST
3f476a
    -fno-delete-null-pointer-checks
3f476a
)
3f476a
export CFLAGS="%{optflags} ${extra_cflags[*]}" CXXFLAGS="%{optflags} ${extra_cflags[*]}"
3f476a
3f476a
# This is not autotools, even if it resembles it
3f476a
./configure --prefix=%{_prefix} \
3f476a
    %{?with_debug:--debug} \
4fb6d9
    --with-dtrace \
4fb6d9
    --with-intl=%{icu_flag} --with-icu-default-data-dir=%{icudatadir} \
3f476a
    --shared-openssl --openssl-use-def-ca-store --openssl-is-fips \
effb77
    --without-corepack \
3f476a
    %{!?el7:--shared-zlib} \
3775ff
    %{!?with_bootstrap:--shared-http-parser}
3f476a
3f476a
%make_build %{!?with_parallel_build:-j1}
3f476a
4fb6d9
# Extract the ICU data and convert it to the appropriate endianness
4fb6d9
pushd deps/
4fb6d9
tar -xzf '%{SOURCE3}'
4fb6d9
pushd icu/source
4fb6d9
4fb6d9
mkdir -p converted
4fb6d9
4fb6d9
%if 0%{?little_endian}
4fb6d9
# The little endian data file is included in the ICU sources
4fb6d9
install -Dpm0644 data/in/icudt%{icu_major}l.dat converted/
4fb6d9
%else
4fb6d9
# For the time being, we need to build ICU and use the included `icupkg` tool
4fb6d9
# to convert the little endian data file into a big-endian one.
4fb6d9
# At some point in the future, ICU releases will start including both data
4fb6d9
# files and we should switch to those.
4fb6d9
mkdir -p data/out/tmp
4fb6d9
4fb6d9
%configure
4fb6d9
%make_build
4fb6d9
4fb6d9
icu_root=$(pwd)
4fb6d9
LD_LIBRARY_PATH=./lib ./bin/icupkg -tb data/in/icudt%{icu_major}l.dat converted/icudt%{icu_major}b.dat
4fb6d9
%endif
4fb6d9
4fb6d9
popd # icu/source
4fb6d9
popd # deps
4fb6d9
3f476a
%{?scl:EOF}
3f476a
3f476a
3f476a
%install
3f476a
./tools/install.py install %{buildroot} %{_prefix}
3f476a
3f476a
# Set the binary permissions properly
3f476a
chmod 0755 %{buildroot}/%{_bindir}/node
3f476a
3f476a
%if %{with debug}
3f476a
# Install the debug binary and set its permissions
3f476a
install -Dpm0755 out/Debug/node %{buildroot}/%{_bindir}/node_g
3f476a
%endif
3f476a
3f476a
# own the sitelib directory
3f476a
mkdir -p %{buildroot}%{nodejs_sitelib}
3f476a
3f476a
#install documentation
3f476a
mkdir -p %{buildroot}%{_pkgdocdir}/html
3f476a
cp -pr doc/* %{buildroot}%{_pkgdocdir}/html
3f476a
rm -f %{buildroot}%{_pkgdocdir}/html/nodejs.1
3f476a
3f476a
#node-gyp needs common.gypi too
3f476a
mkdir -p %{buildroot}%{_datadir}/node
3f476a
cp -p common.gypi %{buildroot}%{_datadir}/node
3f476a
3f476a
# install NPM docs to mandir
3f476a
mkdir -p %{buildroot}%{_mandir} \
3f476a
         %{buildroot}%{_pkgdocdir}/npm
3f476a
3f476a
cp -pr deps/npm/man/* %{buildroot}%{_mandir}/
3f476a
rm -rf %{buildroot}%{_prefix}/%{nodejs_sitelib}/npm/man
3f476a
ln -sf %{_mandir}  %{buildroot}%{nodejs_sitelib}/npm/man
3f476a
3f476a
# Install Gatsby HTML documentation to %%{_pkgdocdir}
3f476a
cp -pr deps/npm/docs %{buildroot}%{_pkgdocdir}/npm/
3f476a
rm -rf %{buildroot}%{nodejs_sitelib}/npm/docs
3f476a
3f476a
ln -sf %{_pkgdocdir}/npm %{buildroot}%{nodejs_sitelib}/npm/docs
3f476a
3f476a
# Install the GDB init tool into the documentation directory
3f476a
mv %{buildroot}/%{_datadir}/doc/node/gdbinit %{buildroot}/%{_pkgdocdir}/gdbinit
3f476a
3f476a
# Node tries to install some python files into a documentation directory
3f476a
# (and not the proper one). Remove them for now until we figure out what to
3f476a
# do with them.
3f476a
rm -f %{buildroot}/%{_defaultdocdir}/node/lldb_commands.py \
3f476a
      %{buildroot}/%{_defaultdocdir}/node/lldbinit
3f476a
3f476a
# Since the old version of NPM was unbundled, there are a lot of symlinks in
3f476a
# it's node_modules directory. We need to keep these as symlinks to ensure we
3f476a
# can backtrack on this if we decide to.
3f476a
3f476a
# Rename the npm node_modules directory to node_modules.bundled
3f476a
mv %{buildroot}/%{nodejs_sitelib}/npm/node_modules \
3f476a
   %{buildroot}/%{nodejs_sitelib}/npm/node_modules.bundled
3f476a
3f476a
# Recreate all the symlinks
3f476a
mkdir -p %{buildroot}/%{nodejs_sitelib}/npm/node_modules
3f476a
FILES=%{buildroot}/%{nodejs_sitelib}/npm/node_modules.bundled/*
3f476a
for f in $FILES
3f476a
do
3f476a
  module=`basename $f`
3f476a
  ln -s ../node_modules.bundled/$module %{buildroot}%{nodejs_sitelib}/npm/node_modules/$module
3f476a
done
3f476a
4fb6d9
# Install the full-icu data files
4fb6d9
mkdir -p '%{buildroot}%{icudatadir}'
4fb6d9
install -Dpm0644 -t %{buildroot}%{icudatadir} deps/icu/source/converted/*
4fb6d9
3f476a
3f476a
%check
3f476a
%{?scl:scl enable %{scl} devtoolset-9 - << \EOF}
3f476a
set -ex
3f476a
# Fail the build if the versions don't match
3f476a
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.node, '%{nodejs_version}')"
3f476a
%{buildroot}/%{_bindir}/node -e "require('assert').ok(process.versions.v8.startsWith('%{v8_version}'))"
3f476a
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.ares.replace(/-DEV$/, ''), '%{c_ares_version}')"
3f476a
3f476a
# Ensure we have punycode and that the version matches
3f476a
%{buildroot}/%{_bindir}/node -e "require('assert').equal(require('punycode').version, '%{punycode_version}')"
3f476a
3f476a
# Ensure we have npm and that the version matches
3f476a
NODE_PATH=%{buildroot}%{nodejs_sitelib} %{buildroot}/%{_bindir}/node -e "require('assert').equal(require('npm').version, '%{npm_version}')"
3f476a
4fb6d9
# Make sure i18n support is working
4fb6d9
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}
4fb6d9
3f476a
# Only run suites that we are expected to pass
3f476a
RUN_SUITES=(
3f476a
    abort
3f476a
    async-hooks
3f476a
    cctest
3f476a
    es-module
3f476a
    parallel
3f476a
    sequential
3f476a
)
3f476a
python2 tools/test.py "${RUN_SUITES[@]}" || :  # FIXME – disable all failing tests to catch new failures
3f476a
3f476a
%{?scl:EOF}
3f476a
3f476a
%files
3f476a
%{_bindir}/node
3f476a
%{_mandir}/man1/node.*
3f476a
%dir %{_pkgdocdir}
3f476a
%dir %{nodejs_sitelib}
3f476a
%dir %{_datadir}/node
3f476a
%dir %{_datadir}/systemtap
3f476a
%dir %{_datadir}/systemtap/tapset
3f476a
%{_datadir}/systemtap/tapset/node.stp
3f476a
3f476a
%dir %{_prefix}/lib/dtrace
3f476a
%{_prefix}/lib/dtrace/node.d
3f476a
3f476a
%license LICENSE
3f476a
%doc AUTHORS CHANGELOG.md onboarding.md GOVERNANCE.md README.md
3f476a
3f476a
%files devel
3f476a
%if %{with debug}
3f476a
%{_bindir}/node_g
3f476a
%endif
3f476a
%{_includedir}/node
3f476a
%{_datadir}/node/common.gypi
3f476a
%{_pkgdocdir}/gdbinit
3f476a
4fb6d9
%files full-i18n
4fb6d9
%dir %{icudatadir}
4fb6d9
%{icudatadir}/icudt%{icu_major}*.dat
4fb6d9
3f476a
%files -n %{?scl_prefix}npm
3f476a
%{_bindir}/npm
3f476a
%{_bindir}/npx
3f476a
%{nodejs_sitelib}/npm
3f476a
%ghost %{_sysconfdir}/npmrc
3f476a
%ghost %{_sysconfdir}/npmignore
3f476a
%doc %{_mandir}/man1/npm*.1*
3f476a
%doc %{_mandir}/man1/npx.1*
3f476a
%doc %{_mandir}/man5/folders.5*
3f476a
%doc %{_mandir}/man5/install.5*
3f476a
%doc %{_mandir}/man5/npmrc.5*
3f476a
%doc %{_mandir}/man5/package-json.5*
3f476a
%doc %{_mandir}/man5/package-lock-json.5*
3f476a
%doc %{_mandir}/man5/package-locks.5*
3f476a
%doc %{_mandir}/man5/shrinkwrap-json.5*
3f476a
%doc %{_mandir}/man7/config.7*
3f476a
%doc %{_mandir}/man7/developers.7*
3f476a
%doc %{_mandir}/man7/disputes.7*
3f476a
%doc %{_mandir}/man7/orgs.7*
3f476a
%doc %{_mandir}/man7/registry.7*
3f476a
%doc %{_mandir}/man7/removal.7*
3f476a
%doc %{_mandir}/man7/scope.7*
3f476a
%doc %{_mandir}/man7/scripts.7*
3f476a
%doc %{_mandir}/man7/semver.7*
3f476a
3f476a
3f476a
%files docs
3f476a
%dir %{_pkgdocdir}
3f476a
%{_pkgdocdir}/html
3f476a
%{_pkgdocdir}/npm/docs
3f476a
3f476a
3f476a
%changelog
4fb6d9
* Thu Jan 26 2023 Jan Staněk <jstanek@redhat.com> - 14.21.1-3
4fb6d9
- Properly apply upstream patch for CVE-2022-3517
4fb6d9
  Resolves: CVE-2022-3517
4fb6d9
4fb6d9
* Tue Jan 10 2023 Jan Staněk <jstanek@redhat.com> - 14.21.1-2
4fb6d9
- Provide full-i18n subpackage
4fb6d9
  Resolves: rhbz#2009880
4fb6d9
- Properly backport CVE-2022-0235 fix
4fb6d9
  Resolves: CVE-2022-0235
4fb6d9
- Fix prototype poisoning in qs dependency
4fb6d9
  Resolves: CVE-2022-24999
4fb6d9
4fb6d9
* Wed Nov 16 2022 Jan Staněk <jstanek@redhat.com> - 14.21.1-1
4fb6d9
- Rebase to version 14.21.1
4fb6d9
  Resolves: rhbz#2129806 CVE-2022-43548
4fb6d9
dfe84b
* Fri Oct 07 2022 Jan Staněk <jstanek@redhat.com> - 14.20.1-2
dfe84b
- Record additional fixes included in current version
dfe84b
  Resolves: CVE-2021-44531 CVE-2021-44532 CVE-2021-44533 CVE-2022-21824
dfe84b
  Resolves: CVE-2022-0235 CVE-2021-44906
dfe84b
dfe84b
* Thu Sep 29 2022 Jan Staněk <jstanek@redhat.com> - 14.20.1-1
dfe84b
- Rebase to version 14.20.1
dfe84b
  Resolves: CVE-2022-35256
dfe84b
effb77
* Tue Jul 26 2022 Jan Staněk <jstanek@redhat.com> - 14.20.0-2
effb77
- Disable corepack
effb77
effb77
* Tue Jul 12 2022 Jan Staněk <jstanek@redhat.com> - 14.20.0-1
effb77
- Rebase to 14.20.0
effb77
  Resolves: CVE-2022-32212 CVE-2022-32213 CVE-2022-32214 CVE-2022-32215
effb77
9500a8
* Thu Dec 09 2021 Jan Staněk <jstanek@redhat.com> - 14.18.2-1
9500a8
- Rebase to 14.18.2
9500a8
  Resolves: rhbz#2031770 rhbz#2031774
9500a8
9500a8
* Mon Nov 01 2021 Jan Staněk <jstanek@redhat.com> - 14.18.1-1
9500a8
- Rebase to 14.18.1
9500a8
  Resolves: rhbz#2031773 rhbz#2031772
9500a8
9500a8
* Wed Sep 01 2021 Jan Staněk <jstanek@redhat.com> - 14.17.6-1
9500a8
- Rebase to 14.17.6
9500a8
  Resolves: rhbz#2031767 rhbz#2031769
9500a8
- Drop CVE-2021-23343-path-parse-redos.patch: fixed upstream
9500a8
9500a8
* Thu Aug 19 2021 Zuzana Svetlikova <zsvetlik@redhat.com> - 14.17.5-1.1
9500a8
- Fix parallel builds
9500a8
407d75
* Thu Aug 12 2021 Jan Staněk <jstanek@redhat.com> - 14.17.5-1
407d75
- Rebase to 14.17.5
407d75
  Resolves: CVE-2021-22931 CVE-2021-22939 CVE-2021-22940
407d75
407d75
* Thu Aug 05 2021 Jan Staněk <jstanek@redhat.com> - 14.17.4-1
407d75
- Rebase to 14.17.4 with additional fixes (update-handling-on-rst_stream-frames.patch)
407d75
  Resolves: CVE-2021-22930
407d75
- Patch bundled(nodejs-path-parse) for CVE-2021-23343
407d75
  Resolves: rhbz#1986745
407d75
f0ceb1
* Wed Jul 07 2021 Jan Staněk <jstanek@redhat.com> - 14.17.2-1
f0ceb1
- Rebase to 14.17.2
407d75
  Resolves: CVE-2021-22918, CVE-2021-23362, CVE-2021-27290, CVE-2021-33502
f0ceb1
- Remove upstreamed deps-y18n-CVE-2020-7774.patch
f0ceb1
3775ff
* Tue Feb 23 2021 Jan Staněk <jstanek@redhat.com> - 14.16.0-1
3775ff
- Rebase to 14.16.0
3775ff
- Resolves: CVE-2021-22883 CVE-2021-22884
3775ff
710ffe
* Wed Jan 27 2021 Jan Staněk <jstanek@redhat.com> - 14.15.4-2
710ffe
- Patch bundled y18n for CVE-2020-7774
710ffe
- Resolves: CVE-2020-7774
710ffe
710ffe
* Tue Jan 05 2021 Jan Staněk <jstanek@redhat.com> - 14.15.4-1
710ffe
- Rebase to 14.15.4
710ffe
- Resolves: CVE-2020-8265 CVE-2020-8287
710ffe
3f476a
* Thu Oct 29 2020 Jan Staněk <jstanek@redhat.com> - 14.15.0-1
3f476a
- Rebase to 14.15.0
3f476a
3f476a
* Wed Sep 16 2020 Jan Staněk <jstanek@redhat.com> - 14.11.0-1
3f476a
- Rebase to 14.11.0
3f476a
3f476a
* Thu Aug 27 2020 Jan Staněk <jstanek@redhat.com> - 14.8.0-1
3f476a
- Rebase to 14.8.0
3f476a
- Enable FIPS when building (--openssl-is-fips)
3f476a
3f476a
* Wed Jul 29 2020 Jan Staněk <jstanek@redhat.com> - 14.6.0-1
3f476a
- Rebase to 14.6.0
3f476a
3f476a
* Tue Jun 30 2020 Jan Staněk <jstanek@redhat.com> - 12.18.2-1
3f476a
- Rebase to 12.18.2
3f476a
3f476a
* Wed Jun 24 2020 Jan Staněk <jstanek@redhat.com> - 12.18.1-1
3f476a
- Rebase to 12.18.1
3f476a
- Use devtoolset-9
3f476a
3f476a
* Wed Feb 19 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 12.16.1
3f476a
- Resolves: RHBZ#1800404, RHBZ#1800403, RHBZ#1800378, RHBZ#1774113
3f476a
- Resolves: RHBZ#1803154, RHBZ#1803157, RHBZ#1803160 (nmp CVEs)
3f476a
- also 1793482
3f476a
- use devtoolset-8, build with -j4
3f476a
- added uvwasi bundled dependency
3f476a
- revert more features #23188, #30637, #29598, #29292, #29489, #30055, #30053
3f476a
3f476a
* Thu Jan 16 2020 Jan Staněk <jstanek@redhat.com> - 12.14.1-1
3f476a
- Rebase to 12.14.1
3f476a
3f476a
* Thu Nov 14 2019 Jan Staněk <jstanek@redhat.com> - 12.10.0-4
3f476a
- Patch more OpenSSL features
3f476a
- Adjust test suite to (mostly) pass without patched OpenSSL features
3f476a
3f476a
* Thu Oct 10 2019 Jan Staněk <jstanek@redhat.com> - 12.10.0-3
3f476a
- Revert statx utilization in libuv to workaround s390x container issue
3f476a
- Resolves: rhbz#1760184
3f476a
3f476a
* Sat Oct 05 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 12.10.0-2
3f476a
- Add some missing flags, merge patches into one
3f476a
3f476a
* Sat Oct 05 2019 Honza Horak <hhorak@redhat.com> - 12.10.0-1.1
3f476a
- Rebase to 12.10.0 and apply patches for openssl compatibility
3f476a
  (patches prepared by Zuzana and Jan)
3f476a
3f476a
* Tue Aug 13 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 12.8.0-1
3f476a
- Resolves: RHBZ#1717846
3f476a
- update to v12.x
3f476a
- build without crypto for now
3f476a
3f476a
* Thu Apr 04 2019 Jan Staněk <jstanek@redhat.com> - 10.10.0-3
3f476a
- Rebuild with bundled zlib
3f476a
- Resolves: rhbz#1677710
3f476a
3f476a
* Wed Oct 31 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 10.10.0-2
3f476a
- Resolves: RHBZ#1584252
3f476a
- comment out native.req file to prevent conflict with other Node.js
3f476a
- installations (rhbz#1637922)
3f476a
3f476a
* Fri Sep 14 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 10.10.0-1
3f476a
- rebase to v10.10.0
3f476a
- update patches for openssl
3f476a
- TODO: remove useless comments, fix failing tests, update bundled provides
3f476a
3f476a
* Thu Jul 19 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 10.1.0-1
3f476a
- Initial v10 packaging
3f476a
- patch crypto/openssl 1.1.0 -> 1.0.2
3f476a
- remove scl prefixes from bundled dependencies
3f476a
- TODO: update patches and dependencies
3f476a
3f476a
* Tue Feb 06 2018 Zuzana Svetlikova <zsvtelik@redhat.com> - 8.9.4-2
3f476a
- Resolves: RHBZ#1513560 #1542079
3f476a
- fix outdated minizlib dependency in npm node_modules tree
3f476a
- https://github.com/nodejs/node/pull/16509
3f476a
3f476a
* Mon Jan 15 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.9.4-1
3f476a
- Resolves: RHBZ#1513560
3f476a
- rebase to LTS
3f476a
3f476a
* Wed Sep 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.6.0-1
3f476a
- Resolves: RHBZ#1490389
3f476a
- Update, v8.5.0 contains a CVE
3f476a
3f476a
* Thu Sep 21 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.5.0-1
3f476a
- Resolves: RHBZ#1490389
3f476a
- Update to latest version, bundle nghttp2
3f476a
3f476a
* Thu Aug 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.3.0-2
3f476a
- Handle failing test in better manner
3f476a
- run more tests
3f476a
3f476a
* Thu Aug 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.3.0-1
3f476a
- Update to 8.3.0
3f476a
- update V8 to 6.0
3f476a
- update libuv to 1.13.1
3f476a
- add bundled provides for npm modules
3f476a
- enable aarch64 builds
3f476a
3f476a
* Mon Jul 24 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.2.1-1
3f476a
- Update to 8.2.1
3f476a
- update npm to 5.3.0, add npx command
3f476a
3f476a
* Wed Jul 12 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.4-1
3f476a
- Security update (https://nodejs.org/en/blog/vulnerability/july-2017-security-releases/)
3f476a
- Fixes RHBZ#1463132 and RHBZ#1469706
3f476a
3f476a
* Wed Jun 28 2017 Joe Orton <jorton@redhat.com> - 8.1.2-7
3f476a
- disable debug build on aarch64
3f476a
3f476a
* Wed Jun 28 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-6
3f476a
- Build aarm64 without icu
3f476a
- switch to dts 7
3f476a
3f476a
* Tue Jun 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-5
3f476a
- Switch to DTS
3f476a
3f476a
* Tue Jun 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-4
3f476a
- Add %%BuildArch
3f476a
3f476a
* Sat Jun 24 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-3
3f476a
- Patch CVE-2017-1000381
3f476a
3f476a
* Fri Jun 23 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-2
3f476a
- some clean up after fedora
3f476a
3f476a
* Mon Jun 19 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-1
3f476a
- Initial v8.x build, npm@5.0.3
3f476a
- remove merged certs patch
3f476a
- build with updated system openssl
3f476a
- use fedora-style packaging, bundle npm and dependencies
3f476a
- bootstrap is modularity conditional to bundle http-parser
3f476a
- missing from base-runtime/shared-userspace
3f476a
- RHSCL 3.0 should be built for more arches
3f476a
3f476a
* Wed Jan 11 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.9.1-2
3f476a
- Rebuild from zvetlik/rh-nodejs6
3f476a
- newer releases have problems with debug
3f476a
- add procps-ng for tests
3f476a
- remove unused patches
3f476a
3f476a
* Thu Nov 03 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.9.1-1
3f476a
- Update to 6.9.1
3f476a
3f476a
* Wed Oct 19 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.9.0-1
3f476a
- update to v6.9.0 LTS
3f476a
3f476a
* Tue Oct 04 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.7.0-5
3f476a
- Disable failing crypto tests
3f476a
3f476a
* Tue Oct 04 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.7.0-4
3f476a
- Require openssl
3f476a
3f476a
* Tue Oct 04 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.7.0-2
3f476a
- Build with shared openssl with EPEL7 patch
3f476a
3f476a
* Mon Oct 03 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.7.0-1
3f476a
- Update to 6.7.0
3f476a
3f476a
* Wed Aug 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.5.0-1
3f476a
- Update to 6.5.0, meanwhile built with bundled openssl
3f476a
- update system-certs patch
3f476a
3f476a
* Wed Apr 06 2016 Tomas Hrcka <thrcka@redhat.com> - 4.4.2-1
3f476a
- Rebase to latest upstream LTS release 4.4.2
3f476a
- https://nodejs.org/en/blog/release/v4.4.1/
3f476a
3f476a
* Tue Apr 05 2016 Tomas Hrcka <thrcka@redhat.com> - 4.4.1-2
3f476a
- Rebase to latest upstream LTS release 4.4.1
3f476a
- https://nodejs.org/en/blog/release/v4.4.1/
3f476a
3f476a
* Thu Mar 17 2016 Tomas Hrcka <thrcka@redhat.com> - 4.4.0-1
3f476a
- Rebase to latest upstream LTS release 4.4.0
3f476a
3f476a
* Tue Mar 01 2016 Tomas Hrcka <thrcka@redhat.com> - 4.3.0-5
3f476a
- New upstream release 4.3.0
3f476a
- https://nodejs.org/en/blog/release/v4.3.0/
3f476a
- Build with bundled openssl, this will be reverted ASAP
3f476a
- Unbundled http-parser
3f476a
3f476a
* Thu Jul 16 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.40-1
3f476a
- Rebase to latest upstream release
3f476a
3f476a
* Wed Jul 01 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.39-1
3f476a
- Rebase to latest upstream release
3f476a
3f476a
* Wed Mar 25 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.35-4
3f476a
- Enable tests during build time
3f476a
3f476a
* Tue Mar 17 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.35-2
3f476a
- Reflect dependency on specific ABI changes in v8
3f476a
- RHBZ#1197110
3f476a
3f476a
* Wed Jan 07 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.35-1
3f476a
- New upstream release 0.10.35
3f476a
3f476a
* Sun Feb 02 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.25-1
3f476a
- New upstream release 0.10.25
3f476a
3f476a
* Tue Jan 14 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.24-1
3f476a
- new upstream release 0.10.24
3f476a
3f476a
* Tue Nov 26 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.21-3
3f476a
- rebuilt with v8314 collection
3f476a
3f476a
* Tue Nov 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.22-1
3f476a
- new upstream release 0.10.22
3f476a
  http://blog.nodejs.org/2013/11/12/node-v0-10-22-stable/
3f476a
3f476a
* Mon Oct 21 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.21-2
3f476a
- Build with system wide c-ares
3f476a
3f476a
* Fri Oct 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.21-1
3f476a
- new upstream release 0.10.21
3f476a
  http://blog.nodejs.org/2013/10/18/node-v0-10-21-stable/
3f476a
- resolves an undisclosed security vulnerability in the http module
3f476a
3f476a
* Tue Oct 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.20-1
3f476a
- new upstream release 0.10.20
3f476a
  http://blog.nodejs.org/2013/09/30/node-v0-10-20-stable/
3f476a
3f476a
* Wed Sep 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.19-1
3f476a
- new upstream release 0.10.19
3f476a
  http://blog.nodejs.org/2013/09/24/node-v0-10-19-stable/
3f476a
3f476a
* Fri Sep 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.18-1
3f476a
- new upstream release 0.10.18
3f476a
  http://blog.nodejs.org/2013/09/04/node-v0-10-18-stable/
3f476a
3f476a
* Tue Aug 27 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.17-1
3f476a
- new upstream release 0.10.17
3f476a
  http://blog.nodejs.org/2013/08/21/node-v0-10-17-stable/
3f476a
3f476a
* Sat Aug 17 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.16-1
3f476a
- new upstream release 0.10.16
3f476a
  http://blog.nodejs.org/2013/08/16/node-v0-10-16-stable/
3f476a
- add v8-devel to -devel Requires
3f476a
- restrict -devel Requires to the same architecture
3f476a
3f476a
* Wed Aug 14 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.14-3
3f476a
- fix typo in _isa macro in v8 Requires
3f476a
3f476a
* Wed Aug 07 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-6
3f476a
 - Remove badly licensed fonts in script instead of patch
3f476a
3f476a
* Thu Jul 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.14-1
3f476a
- new upstream release 0.10.14
3f476a
  http://blog.nodejs.org/2013/07/25/node-v0-10-14-stable/
3f476a
3f476a
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.13-1
3f476a
- new upstream release 0.10.13
3f476a
  http://blog.nodejs.org/2013/07/09/node-v0-10-13-stable/
3f476a
- remove RPM macros, etc. now that they've migrated to nodejs-packaging
3f476a
3f476a
* Wed Jun 19 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-5
3f476a
 - added patch to remove badly licensed web fonts
3f476a
3f476a
* Wed Jun 19 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-5
3f476a
 - added patch to remove badly licensed web fonts
3f476a
3f476a
* Wed Jun 19 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-4
3f476a
  - strip openssl from the tarball it contains prohibited code (RHBZ#967736)
3f476a
  - patch makefile so it do not use bundled deps
3f476a
  - new stripped tarball
3f476a
3f476a
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.12-1
3f476a
- new upstream release 0.10.12
3f476a
  http://blog.nodejs.org/2013/06/18/node-v0-10-12-stable/
3f476a
- split off a -packaging subpackage with RPM macros, etc.
3f476a
- build -docs as noarch
3f476a
- copy mutiple version logic from nodejs-packaging SRPM for now
3f476a
3f476a
* Fri May 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.9-1
3f476a
- new upstream release 0.10.9
3f476a
  http://blog.nodejs.org/2013/05/30/node-v0-10-9-stable/
3f476a
3f476a
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.8-1
3f476a
- new upstream release 0.10.8
3f476a
  http://blog.nodejs.org/2013/05/24/node-v0-10-8-stable/
3f476a
3f476a
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.7-1
3f476a
- new upstream release 0.10.7
3f476a
  http://blog.nodejs.org/2013/05/17/node-v0-10-7-stable/
3f476a
- strip openssl from the tarball; it contains prohibited code (RHBZ#967736)
3f476a
- patch Makefile so we can just remove all bundled deps completely
3f476a
3f476a
* Wed May 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-1
3f476a
- new upstream release 0.10.6
3f476a
  http://blog.nodejs.org/2013/05/14/node-v0-10-6-stable/
3f476a
3f476a
* Tue May 14 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-3.1
3f476a
 - updated to latest upstream stable release
3f476a
3f476a
* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-3
3f476a
- nodejs-fixdep: work properly when a package has no dependencies
3f476a
3f476a
* Mon Apr 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-2
3f476a
- nodejs-symlink-deps: make it work when --check is used and just
3f476a
  devDependencies exist
3f476a
3f476a
* Wed Apr 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-1
3f476a
- new upstream release 0.10.5
3f476a
  http://blog.nodejs.org/2013/04/23/node-v0-10-5-stable/
3f476a
3f476a
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.4-1
3f476a
- new upstream release 0.10.4
3f476a
  http://blog.nodejs.org/2013/04/11/node-v0-10-4-stable/
3f476a
- drop dependency generator files not supported on EL6
3f476a
- port nodejs_default_filter to EL6
3f476a
- add nodejs_find_provides_and_requires macro to invoke dependency generator
3f476a
- invoke the standard RPM provides and requires generators from the Node.js ones
3f476a
- write native module Requires from nodejs.req
3f476a
- change the c-ares-devel Requires in -devel to match the BuildRequires
3f476a
3f476a
* Tue Apr 09 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.10.3-2.1
3f476a
- Build against c-ares 1.9
3f476a
3f476a
* Mon Apr 08 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.10.3-3
3f476a
- Add support for software collections
3f476a
- Move rpm macros and tooling to separate package
3f476a
- add no-op macro to permit spec compatibility with EPEL
3f476a
3f476a
* Thu Apr 04 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.3-2
3f476a
- nodejs-symlink-deps: symlink unconditionally in the buildroot
3f476a
3f476a
* Wed Apr 03 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.3-1
3f476a
- new upstream release 0.10.3
3f476a
  http://blog.nodejs.org/2013/04/03/node-v0-10-3-stable/
3f476a
- nodejs-symlink-deps: only create symlink if target exists
3f476a
- nodejs-symlink-deps: symlink devDependencies when --check is used
3f476a
3f476a
* Sun Mar 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.2-1
3f476a
- new upstream release 0.10.2
3f476a
  http://blog.nodejs.org/2013/03/28/node-v0-10-2-stable/
3f476a
- remove %%nodejs_arches macro since it will only be useful if it is present in
3f476a
  the redhat-rpm-config package
3f476a
- add default filtering macro to remove unwanted Provides from native modules
3f476a
- nodejs-symlink-deps now supports multiple modules in one SRPM properly
3f476a
- nodejs-symlink-deps also now supports a --check argument that works in the
3f476a
  current working directry instead of the buildroot
3f476a
3f476a
* Fri Mar 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.1-1
3f476a
- new upstream release 0.10.1
3f476a
  http://blog.nodejs.org/2013/03/21/node-v0-10-1-stable/
3f476a
3f476a
* Wed Mar 20 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.0-4
3f476a
- fix escaping in dependency generator regular expressions (RHBZ#923941)
3f476a
3f476a
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.0-3
3f476a
- add virtual ABI provides for node and v8 so binary module's deps break when
3f476a
  binary compatibility is broken
3f476a
- automatically add matching Requires to nodejs binary modules
3f476a
- add %%nodejs_arches macro to future-proof ExcluseArch stanza in dependent
3f476a
  packages
3f476a
3f476a
* Tue Mar 12 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.10.0-2
3f476a
- Fix up documentation subpackage
3f476a
3f476a
* Mon Mar 11 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.10.0-1
3f476a
- Update to stable 0.10.0 release
3f476a
- https://raw.github.com/joyent/node/v0.10.0/ChangeLog
3f476a
3f476a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-11
3f476a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3f476a
3f476a
* Tue Jan 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-10
3f476a
- minor bugfixes to RPM magic
3f476a
  - nodejs-symlink-deps: don't create an empty node_modules dir when a module
3f476a
    has no dependencies
3f476a
  - nodes-fixdep: support adding deps when none exist
3f476a
- Add the full set of headers usually bundled with node as deps to nodejs-devel.
3f476a
  This way `npm install` for native modules that assume the stuff bundled with
3f476a
  node exists will usually "just work".
3f476a
-move RPM magic to nodejs-devel as requested by FPC
3f476a
3f476a
* Sat Jan 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-9
3f476a
- fix brown paper bag bug in requires generation script
3f476a
3f476a
* Thu Jan 10 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.5-8
3f476a
- Build debug binary and install it in the nodejs-devel subpackage
3f476a
3f476a
* Thu Jan 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-7
3f476a
- don't use make install since it rebuilds everything
3f476a
3f476a
* Thu Jan 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-6
3f476a
- add %%{?isa}, epoch to v8 deps
3f476a
3f476a
* Wed Jan 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-5
3f476a
- add defines to match libuv (#892601)
3f476a
- make v8 dependency explicit (and thus more accurate)
3f476a
- add -g to $C(XX)FLAGS instead of patching configure to add it
3f476a
- don't write pointless 'npm(foo) > 0' deps
3f476a
3f476a
* Sat Jan 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-4
3f476a
- install development headers
3f476a
- add nodejs_sitearch macro
3f476a
3f476a
* Wed Jan 02 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-3
3f476a
- make nodejs-symlink-deps actually work
3f476a
3f476a
* Tue Jan 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-2
3f476a
- provide nodejs-devel so modules can BuildRequire it (and be consistent
3f476a
  with other interpreted languages in the distro)
3f476a
3f476a
* Tue Jan 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-1
3f476a
- new upstream release 0.9.5
3f476a
- provide nodejs-devel for the moment
3f476a
- fix minor bugs in RPM magic
3f476a
- add nodejs_fixdep macro so packagers can easily adjust dependencies in
3f476a
  package.json files
3f476a
3f476a
* Wed Dec 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-1
3f476a
- new upstream release 0.9.4
3f476a
- system library patches are now upstream
3f476a
- respect optflags
3f476a
- include documentation in subpackage
3f476a
- add RPM dependency generation and related magic
3f476a
- guard libuv depedency so it always gets bumped when nodejs does
3f476a
- add -devel subpackage with enough to make node-gyp happy
3f476a
3f476a
* Thu Dec 20 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-9
3f476a
- Drop requirement on openssl 1.0.1
3f476a
3f476a
* Wed Dec 19 2012 Dan Horák <dan[at]danny.cz> - 0.9.3-8
3f476a
- set exclusive arch list to match v8
3f476a
3f476a
* Tue Dec 18 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-7
3f476a
- Add remaining changes from code review
3f476a
- Remove unnecessary BuildRequires on findutils
3f476a
- Remove %%clean section
3f476a
3f476a
* Fri Dec 14 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-6
3f476a
- Fixes from code review
3f476a
- Fix executable permissions
3f476a
- Correct the License field
3f476a
- Build debuginfo properly
3f476a
3f476a
* Thu Dec 13 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-5
3f476a
- Return back to using the standard binary name
3f476a
- Temporarily adding a conflict against the ham radio node package until they
3f476a
  complete an agreed rename of their binary.
3f476a
3f476a
* Wed Nov 28 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-4
3f476a
- Rename binary and manpage to nodejs
3f476a
3f476a
* Mon Nov 19 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-3
3f476a
- Update to latest upstream development release 0.9.3
3f476a
- Include upstreamed patches to unbundle dependent libraries
3f476a
3f476a
* Tue Oct 23 2012 Adrian Alves <alvesadrian@fedoraproject.org>  0.8.12-1
3f476a
- Fixes and Patches suggested by Matthias Runge
3f476a
3f476a
* Mon Apr 09 2012 Adrian Alves <alvesadrian@fedoraproject.org> 0.6.5
3f476a
- First build.