Blame SPECS/nodejs.spec

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