8f4b74
%global with_debug 1
8f4b74
8f4b74
# PowerPC, s390x and aarch64 segfault during Debug builds
8f4b74
# https://github.com/nodejs/node/issues/20642
8f4b74
%ifarch %{power64} s390x aarch64
8f4b74
%global with_debug 0
8f4b74
%endif
8f4b74
8f4b74
# bundle dependencies that are not available as Fedora modules
8f4b74
# %%{!?_with_bootstrap: %%global bootstrap 1}
8f4b74
# use bcond for building modules
8f4b74
%bcond_with bootstrap
8f4b74
8f4b74
%{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
8f4b74
8f4b74
# == Node.js Version ==
8f4b74
# Note: Fedora should only ship LTS versions of Node.js (currently expected
8f4b74
# to be major versions with even numbers). The odd-numbered versions are new
8f4b74
# feature releases that are only supported for nine months, which is shorter
8f4b74
# than a Fedora release lifecycle.
8f4b74
%global nodejs_epoch 1
8f4b74
%global nodejs_major 10
4e1879
%global nodejs_minor 16
4e1879
%global nodejs_patch 3
8f4b74
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
8f4b74
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}
4e1879
%global nodejs_release 2
8f4b74
8f4b74
# == Bundled Dependency Versions ==
8f4b74
# v8 - from deps/v8/include/v8-version.h
8f4b74
%global v8_major 6
8f4b74
%global v8_minor 8
8f4b74
%global v8_build 275
8f4b74
%global v8_patch 32
8f4b74
# V8 presently breaks ABI at least every x.y release while never bumping SONAME
8f4b74
%global v8_abi %{v8_major}.%{v8_minor}
8f4b74
%global v8_version %{v8_major}.%{v8_minor}.%{v8_build}.%{v8_patch}
8f4b74
8f4b74
# c-ares - from deps/cares/include/ares_version.h
8f4b74
# https://github.com/nodejs/node/pull/9332
8f4b74
%global c_ares_major 1
4e1879
%global c_ares_minor 15
8f4b74
%global c_ares_patch 0
8f4b74
%global c_ares_version %{c_ares_major}.%{c_ares_minor}.%{c_ares_patch}
8f4b74
8f4b74
# http-parser - from deps/http_parser/http_parser.h
8f4b74
%global http_parser_major 2
8f4b74
%global http_parser_minor 8
8f4b74
%global http_parser_patch 0
8f4b74
%global http_parser_version %{http_parser_major}.%{http_parser_minor}.%{http_parser_patch}
8f4b74
8f4b74
# libuv - from deps/uv/include/uv/version.h
8f4b74
%global libuv_major 1
4e1879
%global libuv_minor 28
4e1879
%global libuv_patch 0
8f4b74
%global libuv_version %{libuv_major}.%{libuv_minor}.%{libuv_patch}
8f4b74
8f4b74
# nghttp2 - from deps/nghttp2/lib/includes/nghttp2/nghttp2ver.h
8f4b74
%global nghttp2_major 1
4e1879
%global nghttp2_minor 39
4e1879
%global nghttp2_patch 2
8f4b74
%global nghttp2_version %{nghttp2_major}.%{nghttp2_minor}.%{nghttp2_patch}
8f4b74
8f4b74
# ICU - from configure.py in the configure_intl() function
8f4b74
%global icu_major 62
8f4b74
%global icu_minor 1
8f4b74
%global icu_version %{icu_major}.%{icu_minor}
8f4b74
8f4b74
%if 0%{?fedora} >= 29
8f4b74
%global icu_flag system-icu
8f4b74
%else
8f4b74
%global icu_flag small-icu
8f4b74
%endif
8f4b74
8f4b74
8f4b74
# punycode - from lib/punycode.js
8f4b74
# Note: this was merged into the mainline since 0.6.x
8f4b74
# Note: this will be unmerged in an upcoming major release
8f4b74
%global punycode_major 2
8f4b74
%global punycode_minor 1
8f4b74
%global punycode_patch 0
8f4b74
%global punycode_version %{punycode_major}.%{punycode_minor}.%{punycode_patch}
8f4b74
8f4b74
# npm - from deps/npm/package.json
8f4b74
%global npm_epoch 1
8f4b74
%global npm_major 6
4e1879
%global npm_minor 9
4e1879
%global npm_patch 0
8f4b74
%global npm_version %{npm_major}.%{npm_minor}.%{npm_patch}
8f4b74
8f4b74
# In order to avoid needing to keep incrementing the release version for the
8f4b74
# main package forever, we will just construct one for npm that is guaranteed
8f4b74
# to increment safely. Changing this can only be done during an update when the
8f4b74
# base npm version number is increasing.
8f4b74
%global npm_release %{nodejs_epoch}.%{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release}
8f4b74
8f4b74
8f4b74
Name: nodejs
8f4b74
Epoch: %{nodejs_epoch}
8f4b74
Version: %{nodejs_version}
8f4b74
Release: %{nodejs_release}%{?dist}
8f4b74
Summary: JavaScript runtime
8f4b74
License: MIT and ASL 2.0 and ISC and BSD
8f4b74
Group: Development/Languages
8f4b74
URL: http://nodejs.org/
8f4b74
8f4b74
ExclusiveArch: %{nodejs_arches}
8f4b74
8f4b74
# nodejs bundles openssl, but we use the system version in Fedora
8f4b74
# because openssl contains prohibited code, we remove openssl completely from
8f4b74
# the tarball, using the script in Source100
8f4b74
Source0: node-v%{nodejs_version}-stripped.tar.gz
8f4b74
Source100: %{name}-tarball.sh
8f4b74
8f4b74
# The native module Requires generator remains in the nodejs SRPM, so it knows
8f4b74
# the nodejs and v8 versions.  The remainder has migrated to the
8f4b74
# nodejs-packaging SRPM.
8f4b74
Source7: nodejs_native.attr
8f4b74
8f4b74
# Disable running gyp on bundled deps we don't use
8f4b74
Patch1: 0001-Disable-running-gyp-on-shared-deps.patch
8f4b74
8f4b74
# Suppress the message from npm to run `npm -g update npm`
8f4b74
# This does bad things on an RPM-managed npm.
8f4b74
Patch2: 0002-Suppress-NPM-message-to-run-global-update.patch
8f4b74
8f4b74
BuildRequires: python2-devel
8f4b74
BuildRequires: python3-devel
8f4b74
BuildRequires: zlib-devel
8f4b74
BuildRequires: gcc >= 4.9.4
8f4b74
BuildRequires: gcc-c++ >= 4.9.4
4e1879
BuildRequires: nodejs-packaging
8f4b74
8f4b74
#%if ! 0%%{?bootstrap}
8f4b74
%if %{with bootstrap}
8f4b74
Provides: bundled(http-parser) = %{http_parser_version}
8f4b74
Provides: bundled(libuv) = %{libuv_version}
8f4b74
Provides: bundled(nghttp2) = %{nghttp2_version}
8f4b74
%else
8f4b74
BuildRequires: systemtap-sdt-devel
8f4b74
BuildRequires: http-parser-devel >= 2.7.0
8f4b74
Requires: http-parser >= 2.7.0
8f4b74
BuildRequires: libuv-devel >= 1:%{libuv_version}
8f4b74
Requires: libuv >= 1:%{libuv_version}
8f4b74
BuildRequires: libnghttp2-devel >= %{nghttp2_version}
8f4b74
Requires: libnghttp2 >= %{nghttp2_version}
8f4b74
%endif
8f4b74
8f4b74
8f4b74
%if 0%{?fedora} >= 29
8f4b74
BuildRequires: libicu-devel >= 62.1
8f4b74
%endif
8f4b74
8f4b74
BuildRequires: openssl-devel
8f4b74
8f4b74
# we need the system certificate store
8f4b74
Requires: ca-certificates
8f4b74
8f4b74
#we need ABI virtual provides where SONAMEs aren't enough/not present so deps
8f4b74
#break when binary compatibility is broken
8f4b74
Provides: nodejs(abi) = %{nodejs_abi}
8f4b74
Provides: nodejs(abi%{nodejs_major}) = %{nodejs_abi}
8f4b74
Provides: nodejs(v8-abi) = %{v8_abi}
8f4b74
Provides: nodejs(v8-abi%{v8_major}) = %{v8_abi}
8f4b74
8f4b74
#this corresponds to the "engine" requirement in package.json
8f4b74
Provides: nodejs(engine) = %{nodejs_version}
8f4b74
8f4b74
# Node.js currently has a conflict with the 'node' package in Fedora
8f4b74
# The ham-radio group has agreed to rename their binary for us, but
8f4b74
# in the meantime, we're setting an explicit Conflicts: here
8f4b74
Conflicts: node <= 0.3.2-12
8f4b74
8f4b74
# The punycode module was absorbed into the standard library in v0.6.
8f4b74
# It still exists as a seperate package for the benefit of users of older
8f4b74
# versions.  Since we've never shipped anything older than v0.10 in Fedora,
8f4b74
# we don't need the seperate nodejs-punycode package, so we Provide it here so
8f4b74
# dependent packages don't need to override the dependency generator.
8f4b74
# See also: RHBZ#11511811
8f4b74
# UPDATE: punycode will be deprecated and so we should unbundle it in Node v8
8f4b74
# and use upstream module instead
8f4b74
# https://github.com/nodejs/node/commit/29e49fc286080215031a81effbd59eac092fff2f
8f4b74
Provides: nodejs-punycode = %{punycode_version}
8f4b74
Provides: npm(punycode) = %{punycode_version}
8f4b74
8f4b74
8f4b74
# Node.js has forked c-ares from upstream in an incompatible way, so we need
8f4b74
# to carry the bundled version internally.
8f4b74
# See https://github.com/nodejs/node/commit/766d063e0578c0f7758c3a965c971763f43fec85
8f4b74
Provides: bundled(c-ares) = %{c_ares_version}
8f4b74
8f4b74
# Node.js is closely tied to the version of v8 that is used with it. It makes
8f4b74
# sense to use the bundled version because upstream consistently breaks ABI
8f4b74
# even in point releases. Node.js upstream has now removed the ability to build
8f4b74
# against a shared system version entirely.
8f4b74
# See https://github.com/nodejs/node/commit/d726a177ed59c37cf5306983ed00ecd858cfbbef
8f4b74
Provides: bundled(v8) = %{v8_version}
8f4b74
8f4b74
# Node.js is bound to a specific version of ICU which may not match the OS
8f4b74
# We cannot pin the OS to this version of ICU because every update includes
8f4b74
# an ABI-break, so we'll use the bundled copy.
8f4b74
Provides: bundled(icu) = %{icu_version}
8f4b74
8f4b74
# Make sure we keep NPM up to date when we update Node.js
8f4b74
%if 0%{?rhel}
8f4b74
# EPEL doesn't support Recommends, so make it strict
8f4b74
Requires: npm = %{npm_epoch}:%{npm_version}-%{npm_release}%{?dist}
8f4b74
%else
8f4b74
Recommends: npm = %{npm_epoch}:%{npm_version}-%{npm_release}%{?dist}
8f4b74
%endif
8f4b74
8f4b74
8f4b74
%description
8f4b74
Node.js is a platform built on Chrome's JavaScript runtime
8f4b74
for easily building fast, scalable network applications.
8f4b74
Node.js uses an event-driven, non-blocking I/O model that
8f4b74
makes it lightweight and efficient, perfect for data-intensive
8f4b74
real-time applications that run across distributed devices.
8f4b74
8f4b74
%package devel
8f4b74
Summary: JavaScript runtime - development headers
8f4b74
Group: Development/Languages
8f4b74
Requires: %{name}%{?_isa} = %{epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
8f4b74
Requires: openssl-devel%{?_isa}
8f4b74
Requires: zlib-devel%{?_isa}
8f4b74
Requires: nodejs-packaging
8f4b74
8f4b74
#%if ! 0%%{?bootstrap}
8f4b74
%if %{with bootstrap}
8f4b74
# deps are bundled
8f4b74
%else
8f4b74
Requires: http-parser-devel%{?_isa}
8f4b74
Requires: libuv-devel%{?_isa}
8f4b74
%endif
8f4b74
8f4b74
%description devel
8f4b74
Development headers for the Node.js JavaScript runtime.
8f4b74
8f4b74
%package -n npm
8f4b74
Summary: Node.js Package Manager
8f4b74
Epoch: %{npm_epoch}
8f4b74
Version: %{npm_version}
8f4b74
Release: %{npm_release}%{?dist}
8f4b74
8f4b74
# We used to ship npm separately, but it is so tightly integrated with Node.js
8f4b74
# (and expected to be present on all Node.js systems) that we ship it bundled
8f4b74
# now.
8f4b74
Obsoletes: npm < 0:3.5.4-6
8f4b74
Provides: npm = %{npm_epoch}:%{npm_version}
8f4b74
Requires: nodejs = %{epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
8f4b74
8f4b74
# Do not add epoch to the virtual NPM provides or it will break
8f4b74
# the automatic dependency-generation script.
8f4b74
Provides: npm(npm) = %{npm_version}
8f4b74
8f4b74
%description -n npm
8f4b74
npm is a package manager for node.js. You can use it to install and publish
8f4b74
your node programs. It manages dependencies and does other cool stuff.
8f4b74
8f4b74
%package docs
8f4b74
Summary: Node.js API documentation
8f4b74
Group: Documentation
8f4b74
BuildArch: noarch
8f4b74
8f4b74
# We don't require that the main package be installed to
8f4b74
# use the docs, but if it is installed, make sure the
8f4b74
# version always matches
8f4b74
Conflicts: %{name} > %{epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
8f4b74
Conflicts: %{name} < %{epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
8f4b74
8f4b74
%description docs
8f4b74
The API documentation for the Node.js JavaScript runtime.
8f4b74
8f4b74
8f4b74
%prep
8f4b74
%setup -q -n node-v%{nodejs_version}
8f4b74
8f4b74
# remove bundled dependencies that we aren't building
8f4b74
%patch1 -p1
8f4b74
rm -rf deps/zlib
8f4b74
8f4b74
%patch2 -p1
8f4b74
8f4b74
# Replace any instances of unversioned python' with python2
8f4b74
pathfix.py -i %{__python2} -pn $(find -type f)
8f4b74
find . -type f -exec sed -i "s~/usr\/bin\/env python~/usr/bin/python2~" {} \;
8f4b74
find . -type f -exec sed -i "s~/usr\/bin\/python\W~/usr/bin/python2~" {} \;
8f4b74
sed -i "s~python~python2~" $(find . -type f | grep "gyp$")
8f4b74
sed -i "s~usr\/bin\/python2~usr\/bin\/python3~" ./deps/v8/tools/gen-inlining-tests.py
8f4b74
sed -i "s~usr\/bin\/python.*$~usr\/bin\/python2~" ./deps/v8/tools/mb/mb_unittest.py
8f4b74
find . -type f -exec sed -i "s~python -c~python2 -c~" {} \;
8f4b74
sed -i "s~which('python')~which('python2')~" configure
8f4b74
8f4b74
%build
8f4b74
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
8f4b74
# build with debugging symbols and add defines from libuv (#892601)
8f4b74
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
8f4b74
# NULL objects. We need to pass -fno-delete-null-pointer-checks
8f4b74
export CFLAGS='%{optflags} -g \
8f4b74
               -D_LARGEFILE_SOURCE \
8f4b74
               -D_FILE_OFFSET_BITS=64 \
8f4b74
               -DZLIB_CONST \
8f4b74
               -fno-delete-null-pointer-checks'
8f4b74
export CXXFLAGS='%{optflags} -g \
8f4b74
                 -D_LARGEFILE_SOURCE \
8f4b74
                 -D_FILE_OFFSET_BITS=64 \
8f4b74
                 -DZLIB_CONST \
8f4b74
                 -fno-delete-null-pointer-checks'
8f4b74
8f4b74
# Explicit new lines in C(XX)FLAGS can break naive build scripts
8f4b74
export CFLAGS="$(echo ${CFLAGS} | tr '\n\\' '  ')"
8f4b74
export CXXFLAGS="$(echo ${CXXFLAGS} | tr '\n\\' '  ')"
8f4b74
8f4b74
export LDFLAGS="%{build_ldflags}"
8f4b74
8f4b74
#%if ! 0%%{?bootstrap}
8f4b74
%if %{with bootstrap}
8f4b74
./configure --prefix=%{_prefix} \
8f4b74
           --shared-openssl \
8f4b74
           --shared-zlib \
8f4b74
           --without-dtrace \
8f4b74
           --with-intl=small-icu \
8f4b74
           --debug-nghttp2 \
8f4b74
           --openssl-use-def-ca-store
8f4b74
%else
8f4b74
./configure --prefix=%{_prefix} \
8f4b74
           --shared-openssl \
8f4b74
           --shared-zlib \
8f4b74
           --shared-libuv \
8f4b74
           --shared-http-parser \
8f4b74
           --shared-nghttp2 \
8f4b74
           --with-dtrace \
8f4b74
           --with-intl=%{icu_flag} \
8f4b74
           --debug-nghttp2 \
8f4b74
           --openssl-use-def-ca-store
8f4b74
%endif
8f4b74
8f4b74
%if %{?with_debug} == 1
8f4b74
# Setting BUILDTYPE=Debug builds both release and debug binaries
8f4b74
make BUILDTYPE=Debug %{?_smp_mflags}
8f4b74
%else
8f4b74
make BUILDTYPE=Release %{?_smp_mflags}
8f4b74
%endif
8f4b74
8f4b74
8f4b74
%install
8f4b74
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
8f4b74
8f4b74
rm -rf %{buildroot}
8f4b74
8f4b74
./tools/install.py install %{buildroot} %{_prefix}
8f4b74
8f4b74
# Set the binary permissions properly
8f4b74
chmod 0755 %{buildroot}/%{_bindir}/node
8f4b74
8f4b74
%if %{?with_debug} == 1
8f4b74
# Install the debug binary and set its permissions
8f4b74
install -Dpm0755 out/Debug/node %{buildroot}/%{_bindir}/node_g
8f4b74
%endif
8f4b74
8f4b74
# own the sitelib directory
8f4b74
mkdir -p %{buildroot}%{_prefix}/lib/node_modules
8f4b74
8f4b74
# ensure Requires are added to every native module that match the Provides from
8f4b74
# the nodejs build in the buildroot
8f4b74
install -Dpm0644 %{SOURCE7} %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs_native.attr
8f4b74
cat << EOF > %{buildroot}%{_rpmconfigdir}/nodejs_native.req
8f4b74
#!/bin/sh
8f4b74
echo 'nodejs(abi%{nodejs_major}) >= %nodejs_abi'
8f4b74
echo 'nodejs(v8-abi%{v8_major}) >= %v8_abi'
8f4b74
EOF
8f4b74
chmod 0755 %{buildroot}%{_rpmconfigdir}/nodejs_native.req
8f4b74
8f4b74
#install documentation
8f4b74
mkdir -p %{buildroot}%{_pkgdocdir}/html
8f4b74
cp -pr doc/* %{buildroot}%{_pkgdocdir}/html
8f4b74
rm -f %{buildroot}%{_pkgdocdir}/html/nodejs.1
8f4b74
8f4b74
#node-gyp needs common.gypi too
8f4b74
mkdir -p %{buildroot}%{_datadir}/node
8f4b74
cp -p common.gypi %{buildroot}%{_datadir}/node
8f4b74
8f4b74
# Install the GDB init tool into the documentation directory
8f4b74
mv %{buildroot}/%{_datadir}/doc/node/gdbinit %{buildroot}/%{_pkgdocdir}/gdbinit
8f4b74
8f4b74
# install NPM docs to mandir
8f4b74
mkdir -p %{buildroot}%{_mandir} \
8f4b74
         %{buildroot}%{_pkgdocdir}/npm
8f4b74
8f4b74
cp -pr deps/npm/man/* %{buildroot}%{_mandir}/
8f4b74
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/man
8f4b74
ln -sf %{_mandir}  %{buildroot}%{_prefix}/lib/node_modules/npm/man
8f4b74
8f4b74
# Install Markdown and HTML documentation to %{_pkgdocdir}
8f4b74
cp -pr deps/npm/html deps/npm/doc %{buildroot}%{_pkgdocdir}/npm/
8f4b74
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/html \
8f4b74
       %{buildroot}%{_prefix}/lib/node_modules/npm/doc
8f4b74
8f4b74
ln -sf %{_pkgdocdir} %{buildroot}%{_prefix}/lib/node_modules/npm/html
8f4b74
ln -sf %{_pkgdocdir}/npm/html %{buildroot}%{_prefix}/lib/node_modules/npm/doc
8f4b74
8f4b74
8f4b74
# Node tries to install some python files into a documentation directory
8f4b74
# (and not the proper one). Remove them for now until we figure out what to
8f4b74
# do with them.
8f4b74
rm -f %{buildroot}/%{_defaultdocdir}/node/lldb_commands.py \
8f4b74
      %{buildroot}/%{_defaultdocdir}/node/lldbinit
8f4b74
8f4b74
# Some NPM bundled deps are executable but should not be. This causes
8f4b74
# unnecessary automatic dependencies to be added. Make them not executable.
8f4b74
# Skip the npm bin directory or the npm binary will not work.
8f4b74
find %{buildroot}%{_prefix}/lib/node_modules/npm \
8f4b74
    -not -path "%{buildroot}%{_prefix}/lib/node_modules/npm/bin/*" \
8f4b74
    -executable -type f \
8f4b74
    -exec chmod -x {} \;
8f4b74
8f4b74
# The above command is a little overzealous. Add a few permissions back.
8f4b74
chmod 0755 %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin/node-gyp
8f4b74
chmod 0755 %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
8f4b74
8f4b74
8f4b74
%check
8f4b74
# Fail the build if the versions don't match
8f4b74
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.node, '%{nodejs_version}')"
8f4b74
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.v8.replace(/-node\.\d+$/, ''), '%{v8_version}')"
8f4b74
%{buildroot}/%{_bindir}/node -e "require('assert').equal(process.versions.ares.replace(/-DEV$/, ''), '%{c_ares_version}')"
8f4b74
8f4b74
# Ensure we have punycode and that the version matches
8f4b74
%{buildroot}/%{_bindir}/node -e "require(\"assert\").equal(require(\"punycode\").version, '%{punycode_version}')"
8f4b74
8f4b74
# Ensure we have npm and that the version matches
8f4b74
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}')"
8f4b74
8f4b74
8f4b74
%pretrans -n npm -p <lua>
8f4b74
-- Remove all of the symlinks from the bundled npm node_modules directory
8f4b74
-- This scriptlet can be removed in Fedora 31
8f4b74
base_path = "%{_prefix}/lib/node_modules/npm/node_modules/"
8f4b74
d_st = posix.stat(base_path)
8f4b74
if d_st then
8f4b74
  for f in posix.files(base_path) do
8f4b74
    path = base_path..f
8f4b74
    st = posix.stat(path)
8f4b74
    if st and st.type == "link" then
8f4b74
      os.remove(path)
8f4b74
    end
8f4b74
  end
8f4b74
end
8f4b74
8f4b74
%files
8f4b74
%{_bindir}/node
8f4b74
%dir %{_prefix}/lib/node_modules
8f4b74
%dir %{_datadir}/node
8f4b74
%dir %{_datadir}/systemtap
8f4b74
%dir %{_datadir}/systemtap/tapset
8f4b74
%{_datadir}/systemtap/tapset/node.stp
8f4b74
8f4b74
#%if ! 0%%{?bootstrap}
8f4b74
%if %{with bootstrap}
8f4b74
# no dtrace
8f4b74
%else
8f4b74
%dir %{_usr}/lib/dtrace
8f4b74
%{_usr}/lib/dtrace/node.d
8f4b74
%endif
8f4b74
8f4b74
%{_rpmconfigdir}/fileattrs/nodejs_native.attr
8f4b74
%{_rpmconfigdir}/nodejs_native.req
8f4b74
%license LICENSE
8f4b74
%doc AUTHORS CHANGELOG.md COLLABORATOR_GUIDE.md GOVERNANCE.md README.md
8f4b74
%doc %{_mandir}/man1/node.1*
8f4b74
8f4b74
8f4b74
%files devel
8f4b74
%if %{?with_debug} == 1
8f4b74
%{_bindir}/node_g
8f4b74
%endif
8f4b74
%{_includedir}/node
8f4b74
%{_datadir}/node/common.gypi
8f4b74
%{_pkgdocdir}/gdbinit
8f4b74
8f4b74
8f4b74
%files -n npm
8f4b74
%{_bindir}/npm
8f4b74
%{_bindir}/npx
8f4b74
%{_prefix}/lib/node_modules/npm
8f4b74
%ghost %{_sysconfdir}/npmrc
8f4b74
%ghost %{_sysconfdir}/npmignore
8f4b74
%doc %{_mandir}/man*/npm*
8f4b74
%doc %{_mandir}/man*/npx*
8f4b74
%doc %{_mandir}/man5/package.json.5*
8f4b74
%doc %{_mandir}/man5/package-lock.json.5*
8f4b74
%doc %{_mandir}/man7/removing-npm.7*
8f4b74
%doc %{_mandir}/man7/semver.7*
8f4b74
8f4b74
8f4b74
%files docs
8f4b74
%dir %{_pkgdocdir}
8f4b74
%{_pkgdocdir}/html
8f4b74
%{_pkgdocdir}/npm/html
8f4b74
%{_pkgdocdir}/npm/doc
8f4b74
8f4b74
%changelog
4e1879
* Tue Sep 10 2019 Jan Staněk <jstanek@redhat.com> - 1:10.16.3-1
4e1879
- Rebase to 10.16.3 to fix CVE-2019-9511 to CVE-2019-9518
4e1879
4e1879
* Thu Mar 14 2019 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.14.1-2
4e1879
- move nodejs-packaging BR out of conditional
4e1879
8f4b74
* Tue Dec 11 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.14.1-1
8f4b74
- Resolves: RHBZ#1644207
8f4b74
- fixes node-gyp permissions
8f4b74
- rebase
8f4b74
8f4b74
* Thu Oct 11 2018 Jan Staněk <jstanek@redhat.com> - 1:10.11.0-2
8f4b74
- BuildRequire nodejs-packaging for proper npm dependency generation
8f4b74
- Resolves: rhbz#1615947
8f4b74
8f4b74
* Mon Oct 08 2018 Jan Staněk <jstanek@redhat.com> - 1:10.11.0-1
8f4b74
- Rebase to 10.11.0
8f4b74
- Import changes from fedora
8f4b74
- Resolves: rhbz#1621766
8f4b74
8f4b74
* Mon Jul 30 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.7.0-5
8f4b74
- Import sources from fedora
8f4b74
- Allow using python2 at %%build and %%install
8f4b74
- turn off debug for aarch64
8f4b74
8f4b74
* Fri Jul 20 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-4
8f4b74
- Fix npm upgrade scriptlet
8f4b74
- Fix unexpected trailing .1 in npm release field
8f4b74
8f4b74
* Fri Jul 20 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-3
8f4b74
- Restore annotations to binaries
8f4b74
- Fix unexpected trailing .1 in release field
8f4b74
8f4b74
* Thu Jul 19 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.7.0-2
8f4b74
- Update to 10.7.0
8f4b74
- https://nodejs.org/en/blog/release/v10.7.0/
8f4b74
- https://nodejs.org/en/blog/release/v10.6.0/
8f4b74
8f4b74
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:10.5.0-1.1
8f4b74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
8f4b74
8f4b74
* Thu Jun 21 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.5.0-1
8f4b74
- Update to 10.5.0
8f4b74
- https://nodejs.org/en/blog/release/v10.5.0/
8f4b74
8f4b74
* Thu Jun 14 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.4.1-1
8f4b74
- Update to 10.4.1 to address security issues
8f4b74
- https://nodejs.org/en/blog/release/v10.4.1/
8f4b74
- Resolves: rhbz#1590801
8f4b74
- Resolves: rhbz#1591014
8f4b74
- Resolves: rhbz#1591019
8f4b74
8f4b74
* Thu Jun 07 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.4.0-1
8f4b74
- Update to 10.4.0
8f4b74
- https://nodejs.org/en/blog/release/v10.4.0/
8f4b74
8f4b74
* Wed May 30 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.3.0-1
8f4b74
- Update to 10.3.0
8f4b74
- Update npm to 6.1.0
8f4b74
- https://nodejs.org/en/blog/release/v10.3.0/
8f4b74
8f4b74
* Tue May 29 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.1-2
8f4b74
- Fix up bare 'python' to be python2
8f4b74
- Drop redundant entry in docs section
8f4b74
8f4b74
* Fri May 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.1-1
8f4b74
- Update to 10.2.1
8f4b74
- https://nodejs.org/en/blog/release/v10.2.1/
8f4b74
8f4b74
* Wed May 23 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.2.0-1
8f4b74
- Update to 10.2.0
8f4b74
- https://nodejs.org/en/blog/release/v10.2.0/
8f4b74
8f4b74
* Thu May 10 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-3
8f4b74
- Fix incorrect rpm macro
8f4b74
8f4b74
* Thu May 10 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-2
8f4b74
- Include upstream v8 fix for ppc64[le]
8f4b74
- Disable debug build on ppc64[le] and s390x
8f4b74
8f4b74
* Wed May 09 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.1.0-1
8f4b74
- Update to 10.1.0
8f4b74
- https://nodejs.org/en/blog/release/v10.1.0/
8f4b74
- Reenable node_g binary
8f4b74
8f4b74
* Thu Apr 26 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:10.0.0-1
8f4b74
- Update to 10.0.0
8f4b74
- https://nodejs.org/en/blog/release/v10.0.0/
8f4b74
- Drop workaround patch
8f4b74
- Temporarily drop node_g binary due to
8f4b74
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85587
8f4b74
8f4b74
* Fri Apr 13 2018 Rafael dos Santos <rdossant@redhat.com> - 1:9.11.1-2
8f4b74
- Use standard Fedora linker flags (bug #1543859)
8f4b74
8f4b74
* Thu Apr 05 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.11.1-1
8f4b74
- Update to 9.11.1
8f4b74
- https://nodejs.org/en/blog/release/v9.11.0/
8f4b74
- https://nodejs.org/en/blog/release/v9.11.1/
8f4b74
8f4b74
* Wed Mar 28 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.10.0-1
8f4b74
- Update to 9.10.0
8f4b74
- https://nodejs.org/en/blog/release/v9.10.0/
8f4b74
8f4b74
* Wed Mar 21 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.9.0-1
8f4b74
- Update to 9.9.0
8f4b74
- https://nodejs.org/en/blog/release/v9.9.0/
8f4b74
8f4b74
* Thu Mar 08 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.8.0-1
8f4b74
- Update to 9.8.0
8f4b74
- https://nodejs.org/en/blog/release/v9.8.0/
8f4b74
8f4b74
* Thu Mar 01 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.7.0-1
8f4b74
- Update to 9.7.0
8f4b74
- https://nodejs.org/en/blog/release/v9.7.0/
8f4b74
- Work around F28 build issue
8f4b74
8f4b74
* Sun Feb 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.6.1-1
8f4b74
- Update to 9.6.1
8f4b74
- https://nodejs.org/en/blog/release/v9.6.1/
8f4b74
- https://nodejs.org/en/blog/release/v9.6.0/
8f4b74
8f4b74
* Mon Feb 05 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:9.5.0-1
8f4b74
- Package Node.js 9.5.0
8f4b74
8f4b74
* Thu Jan 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.4-2
8f4b74
- Fix incorrect Requires:
8f4b74
8f4b74
* Thu Jan 11 2018 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.4-1
8f4b74
- Update to 8.9.4
8f4b74
- https://nodejs.org/en/blog/release/v8.9.4/
8f4b74
- Switch to system copy of nghttp2
8f4b74
8f4b74
* Fri Dec 08 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.3-2
8f4b74
- Update to 8.9.3
8f4b74
- https://nodejs.org/en/blog/release/v8.9.3/
8f4b74
- https://nodejs.org/en/blog/release/v8.9.2/
8f4b74
8f4b74
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 1:8.9.1-2
8f4b74
- Rebuild for ICU 60.1
8f4b74
8f4b74
* Thu Nov 09 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.9.1-1
8f4b74
- Update to 8.9.1
8f4b74
8f4b74
* Tue Oct 31 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.9.0-1
8f4b74
- Update to 8.9.0
8f4b74
- Drop upstreamed patch
8f4b74
8f4b74
* Thu Oct 26 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.8.1-1
8f4b74
- Update to 8.8.1 to fix a regression
8f4b74
8f4b74
* Wed Oct 25 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.8.0-1
8f4b74
- Security update to 8.8.0
8f4b74
- https://nodejs.org/en/blog/release/v8.8.0/
8f4b74
8f4b74
* Sun Oct 15 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.7.0-1
8f4b74
- Update to 8.7.0
8f4b74
- https://nodejs.org/en/blog/release/v8.7.0/
8f4b74
8f4b74
* Fri Oct 06 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.6.0-2
8f4b74
- Use bcond macro instead of bootstrap conditional
8f4b74
8f4b74
* Wed Sep 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.6.0-1
8f4b74
- Fix nghttp2 version
8f4b74
- Update to 8.6.0
8f4b74
- https://nodejs.org/en/blog/release/v8.6.0/
8f4b74
8f4b74
* Wed Sep 20 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.5.0-3
8f4b74
- Build with bootstrap + bundle libuv for modularity
8f4b74
- backport patch for aarch64 debug build
8f4b74
8f4b74
* Wed Sep 13 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.5.0-2
8f4b74
- Disable debug builds on aarch64 due to https://github.com/nodejs/node/issues/15395
8f4b74
8f4b74
* Tue Sep 12 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.5.0-1
8f4b74
- Update to v8.5.0
8f4b74
- https://nodejs.org/en/blog/release/v8.5.0/
8f4b74
8f4b74
* Thu Sep 07 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.4.0-2
8f4b74
- Refactor openssl BR
8f4b74
8f4b74
* Wed Aug 16 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.4.0-1
8f4b74
- Update to v8.4.0
8f4b74
- https://nodejs.org/en/blog/release/v8.4.0/
8f4b74
- http2 is now supported, add bundled nghttp2
8f4b74
- remove openssl 1.0.1 patches, we won't be using them in fedora
8f4b74
8f4b74
* Thu Aug 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.3.0-1
8f4b74
- Update to v8.3.0
8f4b74
- https://nodejs.org/en/blog/release/v8.3.0/
8f4b74
- update V8 to 6.0
8f4b74
- update minimal gcc and g++ requirements to 4.9.4
8f4b74
8f4b74
* Wed Aug 09 2017 Tom Hughes <tom@compton.nu> - 1:8.2.1-2
8f4b74
- Bump release to fix broken dependencies
8f4b74
8f4b74
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.2.1-1.2
8f4b74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8f4b74
8f4b74
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.2.1-1.1
8f4b74
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8f4b74
8f4b74
* Fri Jul 21 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.2.1-1
8f4b74
- Update to v8.2.1
8f4b74
- https://nodejs.org/en/blog/release/v8.2.1/
8f4b74
8f4b74
* Thu Jul 20 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.2.0-1
8f4b74
- Update to v8.2.0
8f4b74
- https://nodejs.org/en/blog/release/v8.2.0/
8f4b74
- Update npm to 5.3.0
8f4b74
- Adds npx command
8f4b74
8f4b74
* Tue Jul 18 2017 Igor Gnatenko <ignatenko@redhat.com> - 1:8.1.4-3
8f4b74
- s/BuildRequires/Requires/ for http-parser-devel%%{?_isa}
8f4b74
8f4b74
* Mon Jul 17 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.4-2
8f4b74
- Rename python-devel to python2-devel
8f4b74
- own %%{_pkgdocdir}/npm
8f4b74
8f4b74
* Tue Jul 11 2017 Stephen Gallagher <sgallagh@redhat.com> - 1:8.1.4-1
8f4b74
- Update to v8.1.4
8f4b74
- https://nodejs.org/en/blog/release/v8.1.4/
8f4b74
- Drop upstreamed c-ares patch
8f4b74
8f4b74
* Thu Jun 29 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.3-1
8f4b74
- Update to v8.1.3
8f4b74
- https://nodejs.org/en/blog/release/v8.1.3/
8f4b74
8f4b74
* Wed Jun 28 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:8.1.2-1
8f4b74
- Update to v8.1.2
8f4b74
- remove GCC 7 patch, as it is now fixed in node >= 6.12
8f4b74