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