|
|
cecb21 |
%global with_debug 0
|
|
|
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 |
%bcond_with bootstrap
|
|
|
8f4b74 |
|
|
|
cecb21 |
# == Master Relase ==
|
|
|
cecb21 |
# This is used by both the nodejs package and the npm subpackage that
|
|
|
cecb21 |
# has a separate version - the name is special so that rpmdev-bumpspec
|
|
|
cecb21 |
# will bump this rather than adding .1 to the end.
|
|
|
cecb21 |
%global baserelease 3
|
|
|
cecb21 |
|
|
|
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
|
|
|
cecb21 |
%global nodejs_minor 21
|
|
|
cecb21 |
%global nodejs_patch 0
|
|
|
8f4b74 |
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
|
|
|
cecb21 |
# nodejs_soversion - from NODE_MODULE_VERSION in src/node_version.h
|
|
|
cecb21 |
%global nodejs_soversion 64
|
|
|
8f4b74 |
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}
|
|
|
cecb21 |
%global nodejs_release %{baserelease}
|
|
|
cecb21 |
|
|
|
cecb21 |
%global nodejs_datadir %{_datarootdir}/nodejs
|
|
|
8f4b74 |
|
|
|
8f4b74 |
# == Bundled Dependency Versions ==
|
|
|
8f4b74 |
# v8 - from deps/v8/include/v8-version.h
|
|
|
cecb21 |
# Epoch is set to ensure clean upgrades from the old v8 package
|
|
|
cecb21 |
%global v8_epoch 1
|
|
|
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}
|
|
|
cecb21 |
%global v8_release %{nodejs_epoch}.%{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release}
|
|
|
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
|
|
|
cecb21 |
%global http_parser_minor 9
|
|
|
cecb21 |
%global http_parser_patch 3
|
|
|
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
|
|
|
cecb21 |
%global libuv_minor 34
|
|
|
cecb21 |
%global libuv_patch 2
|
|
|
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
|
|
|
cecb21 |
%global nghttp2_minor 41
|
|
|
cecb21 |
%global nghttp2_patch 0
|
|
|
8f4b74 |
%global nghttp2_version %{nghttp2_major}.%{nghttp2_minor}.%{nghttp2_patch}
|
|
|
8f4b74 |
|
|
|
cecb21 |
# ICU - from tools/icu/current_ver.dep
|
|
|
cecb21 |
%global icu_major 64
|
|
|
cecb21 |
%global icu_minor 2
|
|
|
8f4b74 |
%global icu_version %{icu_major}.%{icu_minor}
|
|
|
8f4b74 |
|
|
|
cecb21 |
%global icudatadir %{nodejs_datadir}/icudata
|
|
|
cecb21 |
%{!?little_endian: %global little_endian %(%{__python3} -c "import sys;print (0 if sys.byteorder=='big' else 1)")}
|
|
|
cecb21 |
# " this line just fixes syntax highlighting for vim that is confused by the above and continues literal
|
|
|
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
|
|
|
cecb21 |
%global npm_minor 14
|
|
|
cecb21 |
%global npm_patch 4
|
|
|
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 |
|
|
|
cecb21 |
# brotli - from deps/brotli/common/version.h
|
|
|
cecb21 |
# v10.x doesn't have --shared-brotli configure option, so we have to bundle it
|
|
|
cecb21 |
%global brotli_major 1
|
|
|
cecb21 |
%global brotli_minor 0
|
|
|
cecb21 |
%global brotli_patch 7
|
|
|
cecb21 |
%global brotli_version %{brotli_major}.%{brotli_minor}.%{brotli_patch}
|
|
|
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
|
|
|
cecb21 |
Source1: npmrc
|
|
|
cecb21 |
Source2: btest402.js
|
|
|
cecb21 |
Source3: https://github.com/unicode-org/icu/releases/download/release-%{icu_major}-%{icu_minor}/icu4c-%{icu_major}_%{icu_minor}-src.tgz
|
|
|
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 |
|
|
|
cecb21 |
# Upstream patch to enable auto-detection of full ICU data
|
|
|
cecb21 |
# https://github.com/nodejs/node/pull/30825
|
|
|
cecb21 |
Patch3: 0003-build-auto-load-ICU-data-from-with-icu-default-data-.patch
|
|
|
cecb21 |
|
|
|
8f4b74 |
BuildRequires: python2-devel
|
|
|
8f4b74 |
BuildRequires: python3-devel
|
|
|
8f4b74 |
BuildRequires: zlib-devel
|
|
|
cecb21 |
BuildRequires: gcc >= 6.3.0
|
|
|
cecb21 |
BuildRequires: gcc-c++ >= 6.3.0
|
|
|
cecb21 |
# needed to generate bundled provides for npm dependencies
|
|
|
cecb21 |
# https://src.fedoraproject.org/rpms/nodejs/pull-request/2
|
|
|
cecb21 |
# https://pagure.io/nodejs-packaging/pull-request/10
|
|
|
4e1879 |
BuildRequires: nodejs-packaging
|
|
|
cecb21 |
BuildRequires: chrpath
|
|
|
cecb21 |
BuildRequires: libatomic
|
|
|
8f4b74 |
|
|
|
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: libuv-devel >= 1:%{libuv_version}
|
|
|
8f4b74 |
Requires: libuv >= 1:%{libuv_version}
|
|
|
8f4b74 |
BuildRequires: libnghttp2-devel >= %{nghttp2_version}
|
|
|
8f4b74 |
Requires: libnghttp2 >= %{nghttp2_version}
|
|
|
cecb21 |
BuildRequires: http-parser-devel >= %{http_parser_version}
|
|
|
cecb21 |
Requires: http-parser >= %{http_parser_version}
|
|
|
8f4b74 |
|
|
|
8f4b74 |
%endif
|
|
|
8f4b74 |
|
|
|
8f4b74 |
BuildRequires: openssl-devel
|
|
|
8f4b74 |
|
|
|
8f4b74 |
# we need the system certificate store
|
|
|
8f4b74 |
Requires: ca-certificates
|
|
|
8f4b74 |
|
|
|
cecb21 |
# Pull in the full-icu data by default
|
|
|
cecb21 |
Recommends: nodejs-full-i18n%{?_isa} = %{nodejs_epoch}:%{version}-%{release}
|
|
|
cecb21 |
|
|
|
cecb21 |
# we need ABI virtual provides where SONAMEs aren't enough/not present so deps
|
|
|
cecb21 |
# 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 |
|
|
|
cecb21 |
# 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 |
# 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 |
|
|
|
cecb21 |
# Provide bundled brotli until we can build it with system package
|
|
|
cecb21 |
Provides: bundled(brotli) = %{brotli_version}
|
|
|
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 |
|
|
|
cecb21 |
|
|
|
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 %{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 |
|
|
|
cecb21 |
|
|
|
cecb21 |
%package full-i18n
|
|
|
cecb21 |
Summary: Non-English locale data for Node.js
|
|
|
cecb21 |
Requires: %{name}%{?_isa} = %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
|
|
|
cecb21 |
|
|
|
cecb21 |
%description full-i18n
|
|
|
cecb21 |
Optional data files to provide full-icu support for Node.js. Remove this
|
|
|
cecb21 |
package to save space if non-English locales are not needed.
|
|
|
cecb21 |
|
|
|
cecb21 |
|
|
|
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}
|
|
|
cecb21 |
Requires: nodejs = %{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 |
|
|
|
cecb21 |
|
|
|
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
|
|
|
cecb21 |
Conflicts: %{name} > %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
|
|
|
cecb21 |
Conflicts: %{name} < %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}%{?dist}
|
|
|
8f4b74 |
|
|
|
8f4b74 |
%description docs
|
|
|
8f4b74 |
The API documentation for the Node.js JavaScript runtime.
|
|
|
8f4b74 |
|
|
|
8f4b74 |
|
|
|
8f4b74 |
%prep
|
|
|
cecb21 |
%autosetup -p1 -n node-v%{nodejs_version}
|
|
|
8f4b74 |
|
|
|
8f4b74 |
# remove bundled dependencies that we aren't building
|
|
|
8f4b74 |
rm -rf deps/zlib
|
|
|
8f4b74 |
|
|
|
8f4b74 |
# Replace any instances of unversioned python' with python2
|
|
|
cecb21 |
pathfix.py -i %{__python2} -pn $(find -type f ! -name "*.js")
|
|
|
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
|
|
|
cecb21 |
|
|
|
cecb21 |
%ifarch s390 s390x %{arm} %ix86
|
|
|
cecb21 |
# Decrease debuginfo verbosity to reduce memory consumption during final
|
|
|
cecb21 |
# library linking
|
|
|
cecb21 |
%global optflags %(echo %{optflags} | sed 's/-g /-g1 /')
|
|
|
cecb21 |
%endif
|
|
|
cecb21 |
|
|
|
8f4b74 |
export RHEL_ALLOW_PYTHON2_FOR_BUILD=1
|
|
|
cecb21 |
export CC='%{__cc}'
|
|
|
cecb21 |
export CXX='%{__cxx}'
|
|
|
cecb21 |
|
|
|
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
|
|
|
cecb21 |
export CFLAGS='%{optflags} \
|
|
|
8f4b74 |
-D_LARGEFILE_SOURCE \
|
|
|
8f4b74 |
-D_FILE_OFFSET_BITS=64 \
|
|
|
8f4b74 |
-DZLIB_CONST \
|
|
|
8f4b74 |
-fno-delete-null-pointer-checks'
|
|
|
cecb21 |
export CXXFLAGS='%{optflags} \
|
|
|
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 %{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 \
|
|
|
cecb21 |
--with-intl=small-icu \
|
|
|
cecb21 |
--with-icu-default-data-dir=%{icudatadir} \
|
|
|
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 |
|
|
|
cecb21 |
# Extract the ICU data and convert it to the appropriate endianness
|
|
|
cecb21 |
pushd deps/
|
|
|
cecb21 |
tar xfz %SOURCE3
|
|
|
cecb21 |
|
|
|
cecb21 |
pushd icu/source
|
|
|
cecb21 |
|
|
|
cecb21 |
mkdir -p converted
|
|
|
cecb21 |
%if 0%{?little_endian}
|
|
|
cecb21 |
# The little endian data file is included in the ICU sources
|
|
|
cecb21 |
install -Dpm0644 data/in/icudt%{icu_major}l.dat converted/
|
|
|
cecb21 |
|
|
|
cecb21 |
%else
|
|
|
cecb21 |
# For the time being, we need to build ICU and use the included `icupkg` tool
|
|
|
cecb21 |
# to convert the little endian data file into a big-endian one.
|
|
|
cecb21 |
# At some point in the future, ICU releases will start including both data
|
|
|
cecb21 |
# files and we should switch to those.
|
|
|
cecb21 |
mkdir -p data/out/tmp
|
|
|
cecb21 |
|
|
|
cecb21 |
%configure
|
|
|
cecb21 |
%make_build
|
|
|
cecb21 |
|
|
|
cecb21 |
icu_root=$(pwd)
|
|
|
cecb21 |
LD_LIBRARY_PATH=./lib ./bin/icupkg -tb data/in/icudt%{icu_major}l.dat \
|
|
|
cecb21 |
converted/icudt%{icu_major}b.dat
|
|
|
cecb21 |
%endif
|
|
|
cecb21 |
|
|
|
cecb21 |
popd # icu/source
|
|
|
cecb21 |
popd # deps
|
|
|
cecb21 |
|
|
|
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
|
|
|
cecb21 |
chrpath --delete %{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 |
|
|
|
cecb21 |
# install documentation
|
|
|
8f4b74 |
mkdir -p %{buildroot}%{_pkgdocdir}/html
|
|
|
8f4b74 |
cp -pr doc/* %{buildroot}%{_pkgdocdir}/html
|
|
|
8f4b74 |
rm -f %{buildroot}%{_pkgdocdir}/html/nodejs.1
|
|
|
8f4b74 |
|
|
|
cecb21 |
# 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 |
|
|
|
cecb21 |
# Install Gatsby HTML documentation to %{_pkgdocdir}
|
|
|
cecb21 |
cp -pr deps/npm/docs %{buildroot}%{_pkgdocdir}/npm/
|
|
|
cecb21 |
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/docs
|
|
|
cecb21 |
ln -sf %{_pkgdocdir}/npm %{buildroot}%{_prefix}/lib/node_modules/npm/docs
|
|
|
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 |
|
|
|
cecb21 |
# Drop the NPM default configuration in place
|
|
|
cecb21 |
mkdir -p %{buildroot}%{_sysconfdir}
|
|
|
cecb21 |
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/npmrc
|
|
|
cecb21 |
|
|
|
cecb21 |
# NPM upstream expects it to be in /usr/etc/npmrc, so we'll put a symlink here
|
|
|
cecb21 |
# This is done in the interests of keeping /usr read-only.
|
|
|
cecb21 |
mkdir -p %{buildroot}%{_prefix}/etc
|
|
|
cecb21 |
ln -s %{_sysconfdir}/npmrc %{buildroot}%{_prefix}/etc/npmrc
|
|
|
cecb21 |
|
|
|
cecb21 |
# Install the full-icu data files
|
|
|
cecb21 |
install -Dpm0644 -t %{buildroot}%{icudatadir} deps/icu/source/converted/*
|
|
|
cecb21 |
|
|
|
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 |
|
|
|
cecb21 |
# Make sure i18n support is working
|
|
|
cecb21 |
NODE_PATH=%{buildroot}%{_prefix}/lib/node_modules:%{buildroot}%{_prefix}/lib/node_modules/npm/node_modules %{buildroot}/%{_bindir}/node --icu-data-dir=%{buildroot}%{icudatadir} %{SOURCE2}
|
|
|
cecb21 |
|
|
|
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 |
|
|
|
cecb21 |
-- Replace the npm man directory with a symlink
|
|
|
cecb21 |
-- Drop this scriptlet when F31 is EOL
|
|
|
cecb21 |
path = "%{_prefix}/lib/node_modules/npm/man"
|
|
|
cecb21 |
st = posix.stat(path)
|
|
|
cecb21 |
if st and st.type == "directory" then
|
|
|
cecb21 |
status = os.rename(path, path .. ".rpmmoved")
|
|
|
cecb21 |
if not status then
|
|
|
cecb21 |
suffix = 0
|
|
|
cecb21 |
while not status do
|
|
|
cecb21 |
suffix = suffix + 1
|
|
|
cecb21 |
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
|
|
cecb21 |
end
|
|
|
cecb21 |
os.rename(path, path .. ".rpmmoved")
|
|
|
cecb21 |
end
|
|
|
cecb21 |
end
|
|
|
cecb21 |
|
|
|
cecb21 |
|
|
|
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 %{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 |
|
|
|
cecb21 |
%files full-i18n
|
|
|
cecb21 |
%dir %{icudatadir}
|
|
|
cecb21 |
%{icudatadir}/icudt%{icu_major}*.dat
|
|
|
cecb21 |
|
|
|
cecb21 |
|
|
|
8f4b74 |
%files -n npm
|
|
|
8f4b74 |
%{_bindir}/npm
|
|
|
8f4b74 |
%{_bindir}/npx
|
|
|
8f4b74 |
%{_prefix}/lib/node_modules/npm
|
|
|
cecb21 |
%config(noreplace) %{_sysconfdir}/npmrc
|
|
|
cecb21 |
%{_prefix}/etc/npmrc
|
|
|
8f4b74 |
%ghost %{_sysconfdir}/npmignore
|
|
|
cecb21 |
%doc %{_mandir}/man1/npm*.1*
|
|
|
cecb21 |
%doc %{_mandir}/man1/npx.1*
|
|
|
cecb21 |
%doc %{_mandir}/man5/folders.5*
|
|
|
cecb21 |
%doc %{_mandir}/man5/install.5*
|
|
|
cecb21 |
%doc %{_mandir}/man5/npmrc.5*
|
|
|
cecb21 |
%doc %{_mandir}/man5/package-json.5*
|
|
|
cecb21 |
%doc %{_mandir}/man5/package-lock-json.5*
|
|
|
cecb21 |
%doc %{_mandir}/man5/package-locks.5*
|
|
|
cecb21 |
%doc %{_mandir}/man5/shrinkwrap-json.5*
|
|
|
cecb21 |
%doc %{_mandir}/man7/config.7*
|
|
|
cecb21 |
%doc %{_mandir}/man7/developers.7*
|
|
|
cecb21 |
%doc %{_mandir}/man7/disputes.7*
|
|
|
cecb21 |
%doc %{_mandir}/man7/orgs.7*
|
|
|
cecb21 |
%doc %{_mandir}/man7/registry.7*
|
|
|
cecb21 |
%doc %{_mandir}/man7/removal.7*
|
|
|
cecb21 |
%doc %{_mandir}/man7/scope.7*
|
|
|
cecb21 |
%doc %{_mandir}/man7/scripts.7*
|
|
|
8f4b74 |
%doc %{_mandir}/man7/semver.7*
|
|
|
8f4b74 |
|
|
|
8f4b74 |
|
|
|
8f4b74 |
%files docs
|
|
|
8f4b74 |
%dir %{_pkgdocdir}
|
|
|
8f4b74 |
%{_pkgdocdir}/html
|
|
|
cecb21 |
%{_pkgdocdir}/npm/docs
|
|
|
cecb21 |
|
|
|
8f4b74 |
|
|
|
8f4b74 |
%changelog
|
|
|
cecb21 |
* Wed Jun 17 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.21.0-3
|
|
|
cecb21 |
- Resolves: RHBZ#1845307
|
|
|
cecb21 |
- Remove brotli-devel requires from nodejs-devel
|
|
|
cecb21 |
|
|
|
cecb21 |
* Tue Jun 16 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.21.0-2
|
|
|
cecb21 |
- Resolves: RHBZ#1845307
|
|
|
cecb21 |
- Turn off debug builds
|
|
|
cecb21 |
|
|
|
cecb21 |
* Mon Jun 15 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.21.0-1
|
|
|
cecb21 |
- Security update to 10.21.0
|
|
|
cecb21 |
- Resolves: RHBZ#1845307
|
|
|
cecb21 |
- Fixes CVE-2020-11080, CVE-2020-8174, CVE-2020-10531
|
|
|
cecb21 |
- Bundle brotli, because --shared-brotli configure option is missing
|
|
|
cecb21 |
- Add i18n subpackage
|
|
|
cecb21 |
|
|
|
cecb21 |
* Wed Mar 18 2020 Zuzana Svetlikova <zsvetlik@redhat.com> - 1:10.19.0-2
|
|
|
cecb21 |
- Resolves: RHBZ#1811499
|
|
|
cecb21 |
|
|
|
cecb21 |
* Mon Feb 10 2020 Jan Staněk <jstanek@redhat.com> - 1:10.19.0-1
|
|
|
cecb21 |
- Rebase to 10.19.0 to fix CVE-2019-15604 to CVE-2019-15606
|
|
|
cecb21 |
|
|
|
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 |
|