Blame SPECS/nodejs.spec

6261c9
%{?scl:%scl_package nodejs}
6261c9
%{!?scl:%global pkg_name %{name}}
6261c9
6261c9
%global with_debug 0
6261c9
6261c9
%{!?_with_bootstrap: %global bootstrap 1}
6261c9
6261c9
%{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{pkg_name}-%{version}}
6261c9
6261c9
# ARM builds currently break on the Debug builds, so we'll just
6261c9
# build the standard runtime until that gets sorted out.
6261c9
%ifarch %{arm} aarch64 %{power64}
6261c9
%global with_debug 0
6261c9
%endif
6261c9
6261c9
# == Node.js Version ==
6261c9
# Note: Fedora should only ship LTS versions of Node.js (currently expected
6261c9
# to be major versions with even numbers). The odd-numbered versions are new
6261c9
# feature releases that are only supported for nine months, which is shorter
6261c9
# than a Fedora release lifecycle.
6261c9
%global nodejs_major 10
b2803b
%global nodejs_minor 16
b2803b
%global nodejs_patch 3
6261c9
%global nodejs_abi %{nodejs_major}.%{nodejs_minor}
6261c9
%global nodejs_version %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}
27dddf
%global nodejs_release 4
6261c9
6261c9
# == Bundled Dependency Versions ==
6261c9
# v8 - from deps/v8/include/v8-version.h
6261c9
%global v8_major 6
6261c9
%global v8_minor 8
6261c9
%global v8_build 275
b2803b
%global v8_patch 32
6261c9
# V8 presently breaks ABI at least every x.y release while never bumping SONAME
6261c9
%global v8_abi %{v8_major}.%{v8_minor}
6261c9
%global v8_version %{v8_major}.%{v8_minor}.%{v8_build}.%{v8_patch}
6261c9
6261c9
# c-ares - from deps/cares/include/ares_version.h
6261c9
%global c_ares_major 1
b2803b
%global c_ares_minor 15
6261c9
%global c_ares_patch 0
6261c9
%global c_ares_version %{c_ares_major}.%{c_ares_minor}.%{c_ares_patch}
6261c9
6261c9
# http-parser - from deps/http_parser/http_parser.h
6261c9
%global http_parser_major 2
6261c9
%global http_parser_minor 8
6261c9
%global http_parser_patch 0
6261c9
%global http_parser_version %{http_parser_major}.%{http_parser_minor}.%{http_parser_patch}
6261c9
b2803b
# libuv - from deps/uv/include/uv/version.h
6261c9
%global libuv_major 1
b2803b
%global libuv_minor 28
6261c9
%global libuv_patch 0
6261c9
%global libuv_version %{libuv_major}.%{libuv_minor}.%{libuv_patch}
6261c9
6261c9
# punycode - from lib/punycode.js
6261c9
# Note: this was merged into the mainline since 0.6.x
6261c9
# Note: this will be unmerged in v7 or v8
6261c9
%global punycode_major 2
6261c9
%global punycode_minor 1
6261c9
%global punycode_patch 0
6261c9
%global punycode_version %{punycode_major}.%{punycode_minor}.%{punycode_patch}
6261c9
6261c9
# npm - from deps/npm/package.json
6261c9
%global npm_major 6
b2803b
%global npm_minor 9
b2803b
%global npm_patch 0
6261c9
%global npm_version %{npm_major}.%{npm_minor}.%{npm_patch}
6261c9
8dbd71
# zlib version - from deps/zlib/CMakeLists.txt
8dbd71
# Note: Only required/bundled on RHEL-7
8dbd71
%global zlib_major 1
8dbd71
%global zlib_minor 2
8dbd71
%global zlib_patch 11
8dbd71
%global zlib_version %{zlib_major}.%{zlib_minor}.%{zlib_patch}
8dbd71
6261c9
# In order to avoid needing to keep incrementing the release version for the
6261c9
# main package forever, we will just construct one for npm that is guaranteed
6261c9
# to increment safely. Changing this can only be done during an update when the
6261c9
# base npm version number is increasing.
6261c9
%global npm_release %{nodejs_major}.%{nodejs_minor}.%{nodejs_patch}.%{nodejs_release}
6261c9
6261c9
# Filter out the NPM bundled dependencies so we aren't providing them
b2803b
%global __provides_exclude_from ^%{_prefix}/lib/node_modules/npm/node_modules.*$
b2803b
%global __requires_exclude_from ^%{_prefix}/lib/node_modules/npm/node_modules.*$
6261c9
6261c9
6261c9
Name: %{?scl_prefix}nodejs
6261c9
Version: %{nodejs_version}
6261c9
Release: %{nodejs_release}%{?dist}
6261c9
Summary: JavaScript runtime
6261c9
License: MIT and ASL 2.0 and ISC and BSD
6261c9
Group: Development/Languages
6261c9
URL: http://nodejs.org/
6261c9
6261c9
# nodejs bundles openssl, but we use the system version in Fedora
6261c9
# because openssl contains prohibited code, we remove openssl completely from
6261c9
# the tarball, using the script in Source100
6261c9
Source0: node-v%{nodejs_version}-stripped.tar.gz
6261c9
Source100: %{pkg_name}-tarball.sh
6261c9
6261c9
# The native module Requires generator remains in the nodejs SRPM, so it knows
6261c9
# the nodejs and v8 versions.  The remainder has migrated to the
6261c9
# nodejs-packaging SRPM.
6261c9
Source7: nodejs_native.attr
6261c9
b2803b
# This is patch just for v10.16.3, we need to rebase it to later version
b2803b
Patch1: 0001-Remove-or-backport-OpenSSL-features.patch
27dddf
Patch2: nodejs-revert-statx.patch
6261c9
6261c9
%{?scl:Requires: %{scl}-runtime}
6261c9
%{?scl:BuildRequires: %{scl}-runtime}
6261c9
BuildRequires: python-devel
6261c9
#BuildRequires: libicu-devel
6261c9
BuildRequires: zlib-devel
6261c9
BuildRequires: devtoolset-7-gcc
6261c9
BuildRequires: devtoolset-7-gcc-c++
6261c9
# needed for tests
6261c9
BuildRequires: procps-ng
6261c9
BuildRequires: systemtap-sdt-devel
6261c9
6261c9
6261c9
%if ! 0%{?bootstrap}
6261c9
#BuildRequires: systemtap-sdt-devel
6261c9
BuildRequires: %{?scl_prefix}http-parser-devel >= 2.7.0
6261c9
%else
6261c9
Provides: bundled(%{?scl_prefix}http-parser) = %{http_parser_version}
6261c9
%endif
6261c9
6261c9
BuildRequires: openssl-devel >= 1:1.0.2
6261c9
6261c9
# we need the system certificate store when Patch2 is applied
6261c9
Requires: ca-certificates
6261c9
6261c9
#we need ABI virtual provides where SONAMEs aren't enough/not present so deps
6261c9
#break when binary compatibility is broken
6261c9
Provides: %{?scl_prefix}nodejs(abi) = %{nodejs_abi}
6261c9
Provides: %{?scl_prefix}nodejs(abi%{nodejs_major}) = %{nodejs_abi}
6261c9
Provides: %{?scl_prefix}nodejs(v8-abi) = %{v8_abi}
6261c9
Provides: %{?scl_prefix}nodejs(v8-abi%{v8_major}) = %{v8_abi}
6261c9
6261c9
#this corresponds to the "engine" requirement in package.json
6261c9
Provides: %{?scl_prefix}nodejs(engine) = %{nodejs_version}
6261c9
6261c9
# Node.js currently has a conflict with the 'node' package in Fedora
6261c9
# The ham-radio group has agreed to rename their binary for us, but
6261c9
# in the meantime, we're setting an explicit Conflicts: here
6261c9
Conflicts: node <= 0.3.2-12
6261c9
6261c9
# The punycode module was absorbed into the standard library in v0.6.
6261c9
# It still exists as a seperate package for the benefit of users of older
6261c9
# versions.  Since we've never shipped anything older than v0.10 in Fedora,
6261c9
# we don't need the seperate nodejs-punycode package, so we Provide it here so
6261c9
# dependent packages don't need to override the dependency generator.
6261c9
# See also: RHBZ#11511811
6261c9
# UPDATE: punycode will be deprecated and so we should unbundle it in Node v8
6261c9
# and use upstream module instead
6261c9
# https://github.com/nodejs/node/commit/29e49fc286080215031a81effbd59eac092fff2f
6261c9
Provides: %{?scl_prefix}nodejs-punycode = %{punycode_version}
6261c9
Provides: %{?scl_prefix}npm(punycode) = %{punycode_version}
6261c9
6261c9
6261c9
# Node.js has forked c-ares from upstream in an incompatible way, so we need
6261c9
# to carry the bundled version internally.
6261c9
# See https://github.com/nodejs/node/commit/766d063e0578c0f7758c3a965c971763f43fec85
6261c9
Provides: bundled(%{?scl_prefix}c-ares) = %{c_ares_version}
6261c9
6261c9
# Node.js is closely tied to the version of v8 that is used with it. It makes
6261c9
# sense to use the bundled version because upstream consistently breaks ABI
6261c9
# even in point releases. Node.js upstream has now removed the ability to build
6261c9
# against a shared system version entirely.
6261c9
# See https://github.com/nodejs/node/commit/d726a177ed59c37cf5306983ed00ecd858cfbbef
6261c9
Provides: bundled(%{?scl_prefix}v8) = %{v8_version}
6261c9
6261c9
# Node.js and http-parser share an upstream. The http-parser upstream does not
6261c9
# do releases often and is almost always far behind the bundled version
6261c9
Provides: bundled(%{?scl_prefix}http-parser) = %{http_parser_version}
6261c9
6261c9
# We now bundle libuv in SCL too
6261c9
Provides: bundled(%{?scl_prefix}libuv) = %{libuv_version}
6261c9
6261c9
# Node.js provides http2 support, but shared option is not yet available
6261c9
Provides: bundled(%{?scl_prefix}nghttp2) = 1.25.0
6261c9
8dbd71
# Bundle zlib on RHEL7, as the system version is too old
8dbd71
Provides: bundled(%{?scl_prefix}zlib) = %{zlib_version}
8dbd71
6261c9
# Make sure we keep NPM up to date when we update Node.js
6261c9
Requires: %{?scl_prefix}npm = %{npm_version}-%{npm_release}%{?dist}
6261c9
6261c9
%description
6261c9
Node.js is a platform built on Chrome's JavaScript runtime
6261c9
for easily building fast, scalable network applications.
6261c9
Node.js uses an event-driven, non-blocking I/O model that
6261c9
makes it lightweight and efficient, perfect for data-intensive
6261c9
real-time applications that run across distributed devices.
6261c9
6261c9
6261c9
%package devel
6261c9
Summary: JavaScript runtime - development headers
6261c9
Group: Development/Languages
6261c9
Requires: %{?scl_prefix}%{pkg_name}%{?_isa} = %{nodejs_version}-%{nodejs_release}%{?dist}
6261c9
Requires: openssl-devel%{?_isa}
6261c9
Requires: zlib-devel%{?_isa}
6261c9
Requires: %{?scl_prefix}runtime
6261c9
6261c9
%if ! 0%{?bootstrap}
6261c9
Requires: %{?scl_prefix}http-parser-devel%{?_isa}
6261c9
%endif
6261c9
6261c9
6261c9
%description devel
6261c9
Development headers for the Node.js JavaScript runtime.
6261c9
6261c9
6261c9
%package -n %{?scl_prefix}npm
6261c9
Summary: Node.js Package Manager
6261c9
Version: %{npm_version}
6261c9
Release: %{npm_release}%{?dist}
6261c9
6261c9
# We used to ship npm separately, but it is so tightly integrated with Node.js
6261c9
# (and expected to be present on all Node.js systems) that we ship it bundled
6261c9
# now.
6261c9
Provides: %{?scl_prefix}npm = %{npm_version}
6261c9
Requires: %{?scl_prefix}nodejs = %{nodejs_version}-%{nodejs_release}%{?dist}
6261c9
6261c9
%description -n %{?scl_prefix}npm
6261c9
npm is a package manager for node.js. You can use it to install and publish
6261c9
your node programs. It manages dependencies and does other cool stuff.
6261c9
6261c9
6261c9
%package docs
6261c9
Summary: Node.js API documentation
6261c9
Group: Documentation
6261c9
BuildArch: noarch
6261c9
6261c9
%description docs
6261c9
The API documentation for the Node.js JavaScript runtime.
6261c9
6261c9
6261c9
%prep
b2803b
%autosetup -p1 -n node-v%{nodejs_version}
b2803b
# fix file permissions on source and header files
b2803b
find deps/ -name '*.c' -o -name '*.h' -exec chmod 0644 '{}' +
6261c9
6261c9
%build
6261c9
6261c9
%{?scl:scl enable %{scl} devtoolset-7 - << \EOF}
6261c9
6261c9
set -ex
6261c9
# build with debugging symbols and add defines from libuv (#892601)
6261c9
# Node's v8 breaks with GCC 6 because of incorrect usage of methods on
6261c9
# NULL objects. We need to pass -fno-delete-null-pointer-checks
b2803b
%global node_cflags %{optflags} \
b2803b
    -g \
b2803b
    -D_LARGEFILE_SOURCE \
b2803b
    -D_FILE_OFFSET_BITS=64 \
b2803b
    -DZLIB_CONST \
b2803b
    -DOPENSSL_NO_OCB \
b2803b
    -DOPENSSL_NO_SCRYPT \
b2803b
    -fno-delete-null-pointer-checks
6261c9
6261c9
# Explicit new lines in C(XX)FLAGS can break naive build scripts
b2803b
%global node_cflags_oneline %(echo '%{node_cflags}'|tr -s '\\\n' ' ')
b2803b
export CFLAGS='%{node_cflags_oneline}' CXXFLAGS='%{node_cflags_oneline}'
6261c9
6261c9
%if ! 0%{?bootstrap}
6261c9
./configure --prefix=%{_prefix} \
6261c9
           --shared-openssl \
8dbd71
           %{?!el7:--shared-zlib} \
6261c9
           --shared-http-parser \
6261c9
           --with-dtrace \
6261c9
           --debug-nghttp2 \
6261c9
           --openssl-use-def-ca-store
6261c9
%else
6261c9
./configure --prefix=%{_prefix} \
6261c9
           --shared-openssl \
8dbd71
           %{?!el7:--shared-zlib} \
6261c9
           --with-dtrace \
6261c9
           --debug-nghttp2 \
6261c9
           --openssl-use-def-ca-store
6261c9
%endif
6261c9
6261c9
make BUILDTYPE=Release %{?_smp_mflags}
6261c9
%if 0%{?with_debug} == 1
6261c9
make BUILDTYPE=Debug %{?_smp_mflags}
6261c9
%endif
6261c9
6261c9
%{?scl:EOF}
6261c9
6261c9
6261c9
%install
6261c9
./tools/install.py install %{buildroot} %{_prefix}
6261c9
6261c9
# Set the binary permissions properly
6261c9
chmod 0755 %{buildroot}/%{_bindir}/node
6261c9
6261c9
%if 0%{?with_debug} == 1
6261c9
# Install the debug binary and set its permissions
6261c9
install -Dpm0755 out/Debug/node %{buildroot}/%{_bindir}/node_g
6261c9
%endif
6261c9
6261c9
# own the sitelib directory
6261c9
mkdir -p %{buildroot}%{_prefix}/lib/node_modules
6261c9
6261c9
#install documentation
6261c9
mkdir -p %{buildroot}%{_pkgdocdir}/html
6261c9
cp -pr doc/* %{buildroot}%{_pkgdocdir}/html
6261c9
rm -f %{buildroot}%{_pkgdocdir}/html/nodejs.1
6261c9
6261c9
#node-gyp needs common.gypi too
6261c9
mkdir -p %{buildroot}%{_datadir}/node
6261c9
cp -p common.gypi %{buildroot}%{_datadir}/node
6261c9
6261c9
# Install the GDB init tool into the documentation directory
6261c9
mv %{buildroot}/%{_datadir}/doc/node/gdbinit %{buildroot}/%{_pkgdocdir}/gdbinit
6261c9
6261c9
# Install LLDB into documentation directory
6261c9
mv %{buildroot}/%{_datadir}/doc/node/lldbinit %{buildroot}/%{_pkgdocdir}/lldbinit
6261c9
mv %{buildroot}/%{_datadir}/doc/node/lldb_commands.py %{buildroot}/%{_pkgdocdir}/lldb_commands.py
6261c9
6261c9
# Since the old version of NPM was unbundled, there are a lot of symlinks in
6261c9
# it's node_modules directory. We need to keep these as symlinks to ensure we
6261c9
# can backtrack on this if we decide to.
6261c9
6261c9
# Rename the npm node_modules directory to node_modules.bundled
6261c9
mv %{buildroot}/%{_prefix}/lib/node_modules/npm/node_modules \
6261c9
   %{buildroot}/%{_prefix}/lib/node_modules/npm/node_modules.bundled
6261c9
6261c9
# Recreate all the symlinks
6261c9
mkdir -p %{buildroot}/%{_prefix}/lib/node_modules/npm/node_modules
6261c9
FILES=%{buildroot}/%{_prefix}/lib/node_modules/npm/node_modules.bundled/*
6261c9
for f in $FILES
6261c9
do
6261c9
  module=`basename $f`
6261c9
  ln -s ../node_modules.bundled/$module %{buildroot}%{_prefix}/lib/node_modules/npm/node_modules/$module
6261c9
done
6261c9
6261c9
# install NPM docs to mandir
6261c9
mkdir -p %{buildroot}%{_mandir} \
6261c9
         %{buildroot}%{_pkgdocdir}/npm
6261c9
6261c9
cp -pr deps/npm/man/* %{buildroot}%{_mandir}/
6261c9
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/man
6261c9
ln -sf %{_mandir}  %{buildroot}%{_prefix}/lib/node_modules/npm/man
6261c9
6261c9
# Install Markdown and HTML documentation to %{_pkgdocdir}
6261c9
cp -pr deps/npm/html deps/npm/doc %{buildroot}%{_pkgdocdir}/npm/
6261c9
rm -rf %{buildroot}%{_prefix}/lib/node_modules/npm/html \
6261c9
       %{buildroot}%{_prefix}/lib/node_modules/npm/doc
6261c9
6261c9
ln -sf %{_pkgdocdir} %{buildroot}%{_prefix}/lib/node_modules/npm/html
6261c9
ln -sf %{_pkgdocdir}/npm/html %{buildroot}%{_prefix}/lib/node_modules/npm/doc
6261c9
6261c9
6261c9
%check
6261c9
%{?scl:scl enable %{scl} devtoolset-7 - << \EOF}
6261c9
set -ex
6261c9
# Ensure we have npm and that the version matches
6261c9
NODE_PATH=%{buildroot}%{_prefix}/lib/node_modules %{buildroot}/%{_bindir}/node -e "require(\"assert\").equal(require(\"npm\").version, '%{npm_version}')"
6261c9
6261c9
# move test that fails to directory which we do not use to run tests
b2803b
mv test/parallel/test-v8-serdes.js test/known_issues
6261c9
6261c9
# eslint is not included -> test always fail
b2803b
mv test/parallel/test-eslint-* test/known_issues
b2803b
b2803b
# Tests for unsupported OpenSSL features
b2803b
mv test/parallel/test-crypto-aes-wrap.js test/known_issues/
b2803b
mv test/parallel/test-crypto-des3-wrap.js test/known_issues/
b2803b
mv test/parallel/test-crypto-pbkdf2.js test/known_issues/
b2803b
mv test/sequential/test-async-wrap-getasyncid.js test/known_issues/
b2803b
b2803b
mv test/doctool/test-make-doc.js test/known_issues
b2803b
b2803b
# Only run suites that we are expected to pass
b2803b
RUN_SUITES=(
b2803b
    abort
b2803b
    async-hooks
b2803b
    cctest
b2803b
    es-module
b2803b
    parallel
b2803b
    sequential
b2803b
)
b2803b
%ifarch ppc64le aarch64
b2803b
python2 tools/test.py "${RUN_SUITES[@]}" || :
b2803b
%else
b2803b
python2 tools/test.py "${RUN_SUITES[@]}"
b2803b
%endif
6261c9
6261c9
%{?scl:EOF}
6261c9
6261c9
%files
6261c9
%{_bindir}/node
6261c9
%{_mandir}/man1/node.*
6261c9
%dir %{_pkgdocdir}
6261c9
%dir %{_prefix}/lib/node_modules
6261c9
%dir %{_datadir}/node
6261c9
%dir %{_datadir}/systemtap
6261c9
%dir %{_datadir}/systemtap/tapset
6261c9
%{_datadir}/systemtap/tapset/node.stp
6261c9
6261c9
%dir %{_prefix}/lib/dtrace
6261c9
%{_prefix}/lib/dtrace/node.d
6261c9
6261c9
#%{_rpmconfigdir}/fileattrs/nodejs_native.attr
6261c9
#%{_rpmconfigdir}/nodejs_native.req
6261c9
%license LICENSE
6261c9
%doc AUTHORS CHANGELOG.md COLLABORATOR_GUIDE.md GOVERNANCE.md README.md
6261c9
6261c9
%files devel
6261c9
%if 0%{?with_debug} == 1
6261c9
%{_bindir}/node_g
6261c9
%endif
6261c9
%{_includedir}/node
6261c9
%{_datadir}/node/common.gypi
6261c9
%{_pkgdocdir}/gdbinit
6261c9
%{_pkgdocdir}/lldbinit
6261c9
%{_pkgdocdir}/lldb_commands.py*
6261c9
6261c9
%files -n %{?scl_prefix}npm
6261c9
%{_bindir}/npm
6261c9
%{_bindir}/npx
6261c9
%{_prefix}/lib/node_modules/npm
6261c9
%ghost %{_sysconfdir}/npmrc
6261c9
%ghost %{_sysconfdir}/npmignore
6261c9
%doc %{_mandir}/man*/npm*
6261c9
%doc %{_mandir}/man*/npx*
6261c9
%doc %{_mandir}/man5/package.json.5*
6261c9
%doc %{_mandir}/man5/package-lock.json.5*
6261c9
%doc %{_mandir}/man7/removing-npm.7*
6261c9
%doc %{_mandir}/man7/semver.7*
6261c9
6261c9
6261c9
%files docs
6261c9
%dir %{_pkgdocdir}
6261c9
%{_pkgdocdir}/html
6261c9
%{_pkgdocdir}/npm
6261c9
%{_pkgdocdir}/npm/html
6261c9
%{_pkgdocdir}/npm/doc
6261c9
6261c9
6261c9
%changelog
27dddf
* Thu Oct 10 2019 Honza Horak <hhorak@redhat.com> - 10.16.3-4
27dddf
- Revert the statx() addition into libuv
27dddf
  Resolves: #1759152
27dddf
b2803b
* Mon Sep 09 2019 Jan Staněk <jstanek@redhat.com> - 10.16.3-3
b2803b
- Fix file permission on source/header files
b2803b
b2803b
* Fri Sep 06 2019 Jan Staněk <jstanek@redhat.com> - 10.16.3-2
b2803b
- Let RPM automatically generate NPM dependencies (rhbz#1711807)
b2803b
b2803b
* Thu Aug 29 2019 Jan Staněk <jstanek@redhat.com> - 10.16.3-1
b2803b
- Rebase to version 10.16.3
b2803b
- Resolves: rhbz#1744307 rhbz#1744593 rhbz#1744732 rhbz#1744745 rhbz#1744773 rhbz#1744807 rhbz#1745090 rhbz#1745160
b2803b
8dbd71
* Thu Apr 04 2019 Jan Staněk <jstanek@redhat.com> - 10.10.0-3
8dbd71
- Rebuild with bundled zlib
b2803b
- Resolves: rhbz#1677710
8dbd71
6261c9
* Wed Oct 31 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 10.10.0-2
6261c9
- Resolves: RHBZ#1584252
6261c9
- comment out native.req file to prevent conflict with other Node.js
6261c9
- installations (rhbz#1637922)
6261c9
6261c9
* Fri Sep 14 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 10.10.0-1
6261c9
- rebase to v10.10.0
6261c9
- update patches for openssl
6261c9
- TODO: remove useless comments, fix failing tests, update bundled provides
6261c9
6261c9
* Thu Jul 19 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 10.1.0-1
6261c9
- Initial v10 packaging
6261c9
- patch crypto/openssl 1.1.0 -> 1.0.2
6261c9
- remove scl prefixes from bundled dependencies
6261c9
- TODO: update patches and dependencies
6261c9
6261c9
* Tue Feb 06 2018 Zuzana Svetlikova <zsvtelik@redhat.com> - 8.9.4-2
6261c9
- Resolves: RHBZ#1513560 #1542079
6261c9
- fix outdated minizlib dependency in npm node_modules tree
6261c9
- https://github.com/nodejs/node/pull/16509
6261c9
6261c9
* Mon Jan 15 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.9.4-1
6261c9
- Resolves: RHBZ#1513560
6261c9
- rebase to LTS
6261c9
6261c9
* Wed Sep 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.6.0-1
6261c9
- Resolves: RHBZ#1490389
6261c9
- Update, v8.5.0 contains a CVE
6261c9
6261c9
* Thu Sep 21 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.5.0-1
6261c9
- Resolves: RHBZ#1490389
6261c9
- Update to latest version, bundle nghttp2
6261c9
6261c9
* Thu Aug 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.3.0-2
6261c9
- Handle failing test in better manner
6261c9
- run more tests
6261c9
6261c9
* Thu Aug 10 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.3.0-1
6261c9
- Update to 8.3.0
6261c9
- update V8 to 6.0
6261c9
- update libuv to 1.13.1
6261c9
- add bundled provides for npm modules
6261c9
- enable aarch64 builds
6261c9
6261c9
* Mon Jul 24 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.2.1-1
6261c9
- Update to 8.2.1
6261c9
- update npm to 5.3.0, add npx command
6261c9
6261c9
* Wed Jul 12 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.4-1
6261c9
- Security update (https://nodejs.org/en/blog/vulnerability/july-2017-security-releases/)
6261c9
- Fixes RHBZ#1463132 and RHBZ#1469706
6261c9
6261c9
* Wed Jun 28 2017 Joe Orton <jorton@redhat.com> - 8.1.2-7
6261c9
- disable debug build on aarch64
6261c9
6261c9
* Wed Jun 28 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-6
6261c9
- Build aarm64 without icu
6261c9
- switch to dts 7
6261c9
6261c9
* Tue Jun 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-5
6261c9
- Switch to DTS
6261c9
6261c9
* Tue Jun 27 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-4
6261c9
- Add %%BuildArch
6261c9
6261c9
* Sat Jun 24 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-3
6261c9
- Patch CVE-2017-1000381
6261c9
6261c9
* Fri Jun 23 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-2
6261c9
- some clean up after fedora
6261c9
6261c9
* Mon Jun 19 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 8.1.2-1
6261c9
- Initial v8.x build, npm@5.0.3
6261c9
- remove merged certs patch
6261c9
- build with updated system openssl
6261c9
- use fedora-style packaging, bundle npm and dependencies
8dbd71
- bootstrap is modularity conditional to bundle http-parser
6261c9
- missing from base-runtime/shared-userspace
6261c9
- RHSCL 3.0 should be built for more arches
6261c9
6261c9
* Wed Jan 11 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.9.1-2
6261c9
- Rebuild from zvetlik/rh-nodejs6
6261c9
- newer releases have problems with debug
6261c9
- add procps-ng for tests
6261c9
- remove unused patches
6261c9
6261c9
* Thu Nov 03 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.9.1-1
6261c9
- Update to 6.9.1
6261c9
6261c9
* Wed Oct 19 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.9.0-1
6261c9
- update to v6.9.0 LTS
6261c9
6261c9
* Tue Oct 04 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.7.0-5
6261c9
- Disable failing crypto tests
6261c9
6261c9
* Tue Oct 04 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.7.0-4
6261c9
- Require openssl
6261c9
6261c9
* Tue Oct 04 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.7.0-2
6261c9
- Build with shared openssl with EPEL7 patch
6261c9
6261c9
* Mon Oct 03 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.7.0-1
6261c9
- Update to 6.7.0
6261c9
6261c9
* Wed Aug 31 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 6.5.0-1
6261c9
- Update to 6.5.0, meanwhile built with bundled openssl
6261c9
- update system-certs patch
6261c9
6261c9
* Wed Apr 06 2016 Tomas Hrcka <thrcka@redhat.com> - 4.4.2-1
6261c9
- Rebase to latest upstream LTS release 4.4.2
6261c9
- https://nodejs.org/en/blog/release/v4.4.1/
6261c9
6261c9
* Tue Apr 05 2016 Tomas Hrcka <thrcka@redhat.com> - 4.4.1-2
6261c9
- Rebase to latest upstream LTS release 4.4.1
6261c9
- https://nodejs.org/en/blog/release/v4.4.1/
6261c9
6261c9
* Thu Mar 17 2016 Tomas Hrcka <thrcka@redhat.com> - 4.4.0-1
6261c9
- Rebase to latest upstream LTS release 4.4.0
6261c9
6261c9
* Tue Mar 01 2016 Tomas Hrcka <thrcka@redhat.com> - 4.3.0-5
6261c9
- New upstream release 4.3.0
6261c9
- https://nodejs.org/en/blog/release/v4.3.0/
6261c9
- Build with bundled openssl, this will be reverted ASAP
6261c9
- Unbundled http-parser
6261c9
6261c9
* Thu Jul 16 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.40-1
6261c9
- Rebase to latest upstream release
6261c9
6261c9
* Wed Jul 01 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.39-1
6261c9
- Rebase to latest upstream release
6261c9
6261c9
* Wed Mar 25 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.35-4
6261c9
- Enable tests during build time
6261c9
6261c9
* Tue Mar 17 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.35-2
6261c9
- Reflect dependency on specific ABI changes in v8
6261c9
- RHBZ#1197110
6261c9
6261c9
* Wed Jan 07 2015 Tomas Hrcka <thrcka@redhat.com> - 0.10.35-1
6261c9
- New upstream release 0.10.35
6261c9
6261c9
* Sun Feb 02 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.25-1
6261c9
- New upstream release 0.10.25
6261c9
6261c9
* Tue Jan 14 2014 Tomas Hrcka <thrcka@redhat.com> - 0.10.24-1
6261c9
- new upstream release 0.10.24
6261c9
6261c9
* Tue Nov 26 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.21-3
6261c9
- rebuilt with v8314 collection
6261c9
6261c9
* Tue Nov 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.22-1
6261c9
- new upstream release 0.10.22
6261c9
  http://blog.nodejs.org/2013/11/12/node-v0-10-22-stable/
6261c9
6261c9
* Mon Oct 21 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.21-2
6261c9
- Build with system wide c-ares
6261c9
6261c9
* Fri Oct 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.21-1
6261c9
- new upstream release 0.10.21
6261c9
  http://blog.nodejs.org/2013/10/18/node-v0-10-21-stable/
6261c9
- resolves an undisclosed security vulnerability in the http module
6261c9
6261c9
* Tue Oct 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.20-1
6261c9
- new upstream release 0.10.20
6261c9
  http://blog.nodejs.org/2013/09/30/node-v0-10-20-stable/
6261c9
6261c9
* Wed Sep 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.19-1
6261c9
- new upstream release 0.10.19
6261c9
  http://blog.nodejs.org/2013/09/24/node-v0-10-19-stable/
6261c9
6261c9
* Fri Sep 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.18-1
6261c9
- new upstream release 0.10.18
6261c9
  http://blog.nodejs.org/2013/09/04/node-v0-10-18-stable/
6261c9
6261c9
* Tue Aug 27 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.17-1
6261c9
- new upstream release 0.10.17
6261c9
  http://blog.nodejs.org/2013/08/21/node-v0-10-17-stable/
6261c9
6261c9
* Sat Aug 17 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.16-1
6261c9
- new upstream release 0.10.16
6261c9
  http://blog.nodejs.org/2013/08/16/node-v0-10-16-stable/
6261c9
- add v8-devel to -devel Requires
6261c9
- restrict -devel Requires to the same architecture
6261c9
6261c9
* Wed Aug 14 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.14-3
6261c9
- fix typo in _isa macro in v8 Requires
6261c9
6261c9
* Wed Aug 07 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-6
6261c9
 - Remove badly licensed fonts in script instead of patch
6261c9
6261c9
* Thu Jul 25 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.14-1
6261c9
- new upstream release 0.10.14
6261c9
  http://blog.nodejs.org/2013/07/25/node-v0-10-14-stable/
6261c9
6261c9
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.13-1
6261c9
- new upstream release 0.10.13
6261c9
  http://blog.nodejs.org/2013/07/09/node-v0-10-13-stable/
6261c9
- remove RPM macros, etc. now that they've migrated to nodejs-packaging
6261c9
6261c9
* Wed Jun 19 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-5
6261c9
 - added patch to remove badly licensed web fonts
6261c9
6261c9
* Wed Jun 19 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-5
6261c9
 - added patch to remove badly licensed web fonts
6261c9
6261c9
* Wed Jun 19 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-4
6261c9
  - strip openssl from the tarball it contains prohibited code (RHBZ#967736)
6261c9
  - patch makefile so it do not use bundled deps
6261c9
  - new stripped tarball
6261c9
6261c9
* Wed Jun 19 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.12-1
6261c9
- new upstream release 0.10.12
6261c9
  http://blog.nodejs.org/2013/06/18/node-v0-10-12-stable/
6261c9
- split off a -packaging subpackage with RPM macros, etc.
6261c9
- build -docs as noarch
6261c9
- copy mutiple version logic from nodejs-packaging SRPM for now
6261c9
6261c9
* Fri May 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.9-1
6261c9
- new upstream release 0.10.9
6261c9
  http://blog.nodejs.org/2013/05/30/node-v0-10-9-stable/
6261c9
6261c9
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.8-1
6261c9
- new upstream release 0.10.8
6261c9
  http://blog.nodejs.org/2013/05/24/node-v0-10-8-stable/
6261c9
6261c9
* Wed May 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.7-1
6261c9
- new upstream release 0.10.7
6261c9
  http://blog.nodejs.org/2013/05/17/node-v0-10-7-stable/
6261c9
- strip openssl from the tarball; it contains prohibited code (RHBZ#967736)
6261c9
- patch Makefile so we can just remove all bundled deps completely
6261c9
6261c9
* Wed May 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-1
6261c9
- new upstream release 0.10.6
6261c9
  http://blog.nodejs.org/2013/05/14/node-v0-10-6-stable/
6261c9
6261c9
* Tue May 14 2013 Tomas Hrcka <thrcka@redhat.com> - 0.10.5-3.1
6261c9
 - updated to latest upstream stable release
6261c9
6261c9
* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-3
6261c9
- nodejs-fixdep: work properly when a package has no dependencies
6261c9
6261c9
* Mon Apr 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-2
6261c9
- nodejs-symlink-deps: make it work when --check is used and just
6261c9
  devDependencies exist
6261c9
6261c9
* Wed Apr 24 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.5-1
6261c9
- new upstream release 0.10.5
6261c9
  http://blog.nodejs.org/2013/04/23/node-v0-10-5-stable/
6261c9
6261c9
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.4-1
6261c9
- new upstream release 0.10.4
6261c9
  http://blog.nodejs.org/2013/04/11/node-v0-10-4-stable/
6261c9
- drop dependency generator files not supported on EL6
6261c9
- port nodejs_default_filter to EL6
6261c9
- add nodejs_find_provides_and_requires macro to invoke dependency generator
6261c9
- invoke the standard RPM provides and requires generators from the Node.js ones
6261c9
- write native module Requires from nodejs.req
6261c9
- change the c-ares-devel Requires in -devel to match the BuildRequires
6261c9
6261c9
* Tue Apr 09 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.10.3-2.1
6261c9
- Build against c-ares 1.9
6261c9
6261c9
* Mon Apr 08 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.10.3-3
6261c9
- Add support for software collections
6261c9
- Move rpm macros and tooling to separate package
6261c9
- add no-op macro to permit spec compatibility with EPEL
6261c9
6261c9
* Thu Apr 04 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.3-2
6261c9
- nodejs-symlink-deps: symlink unconditionally in the buildroot
6261c9
6261c9
* Wed Apr 03 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.3-1
6261c9
- new upstream release 0.10.3
6261c9
  http://blog.nodejs.org/2013/04/03/node-v0-10-3-stable/
6261c9
- nodejs-symlink-deps: only create symlink if target exists
6261c9
- nodejs-symlink-deps: symlink devDependencies when --check is used
6261c9
6261c9
* Sun Mar 31 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.2-1
6261c9
- new upstream release 0.10.2
6261c9
  http://blog.nodejs.org/2013/03/28/node-v0-10-2-stable/
6261c9
- remove %%nodejs_arches macro since it will only be useful if it is present in
6261c9
  the redhat-rpm-config package
6261c9
- add default filtering macro to remove unwanted Provides from native modules
6261c9
- nodejs-symlink-deps now supports multiple modules in one SRPM properly
6261c9
- nodejs-symlink-deps also now supports a --check argument that works in the
6261c9
  current working directry instead of the buildroot
6261c9
6261c9
* Fri Mar 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.1-1
6261c9
- new upstream release 0.10.1
6261c9
  http://blog.nodejs.org/2013/03/21/node-v0-10-1-stable/
6261c9
6261c9
* Wed Mar 20 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.0-4
6261c9
- fix escaping in dependency generator regular expressions (RHBZ#923941)
6261c9
6261c9
* Wed Mar 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.0-3
6261c9
- add virtual ABI provides for node and v8 so binary module's deps break when
6261c9
  binary compatibility is broken
6261c9
- automatically add matching Requires to nodejs binary modules
6261c9
- add %%nodejs_arches macro to future-proof ExcluseArch stanza in dependent
6261c9
  packages
6261c9
6261c9
* Tue Mar 12 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.10.0-2
6261c9
- Fix up documentation subpackage
6261c9
6261c9
* Mon Mar 11 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.10.0-1
6261c9
- Update to stable 0.10.0 release
6261c9
- https://raw.github.com/joyent/node/v0.10.0/ChangeLog
6261c9
6261c9
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-11
6261c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6261c9
6261c9
* Tue Jan 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-10
6261c9
- minor bugfixes to RPM magic
6261c9
  - nodejs-symlink-deps: don't create an empty node_modules dir when a module
6261c9
    has no dependencies
6261c9
  - nodes-fixdep: support adding deps when none exist
6261c9
- Add the full set of headers usually bundled with node as deps to nodejs-devel.
6261c9
  This way `npm install` for native modules that assume the stuff bundled with
6261c9
  node exists will usually "just work".
6261c9
-move RPM magic to nodejs-devel as requested by FPC
6261c9
6261c9
* Sat Jan 12 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-9
6261c9
- fix brown paper bag bug in requires generation script
6261c9
6261c9
* Thu Jan 10 2013 Stephen Gallagher <sgallagh@redhat.com> - 0.9.5-8
6261c9
- Build debug binary and install it in the nodejs-devel subpackage
6261c9
6261c9
* Thu Jan 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-7
6261c9
- don't use make install since it rebuilds everything
6261c9
6261c9
* Thu Jan 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-6
6261c9
- add %%{?isa}, epoch to v8 deps
6261c9
6261c9
* Wed Jan 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-5
6261c9
- add defines to match libuv (#892601)
6261c9
- make v8 dependency explicit (and thus more accurate)
6261c9
- add -g to $C(XX)FLAGS instead of patching configure to add it
6261c9
- don't write pointless 'npm(foo) > 0' deps
6261c9
6261c9
* Sat Jan 05 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-4
6261c9
- install development headers
6261c9
- add nodejs_sitearch macro
6261c9
6261c9
* Wed Jan 02 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-3
6261c9
- make nodejs-symlink-deps actually work
6261c9
6261c9
* Tue Jan 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-2
6261c9
- provide nodejs-devel so modules can BuildRequire it (and be consistent
6261c9
  with other interpreted languages in the distro)
6261c9
6261c9
* Tue Jan 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-1
6261c9
- new upstream release 0.9.5
6261c9
- provide nodejs-devel for the moment
6261c9
- fix minor bugs in RPM magic
6261c9
- add nodejs_fixdep macro so packagers can easily adjust dependencies in
6261c9
  package.json files
6261c9
6261c9
* Wed Dec 26 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-1
6261c9
- new upstream release 0.9.4
6261c9
- system library patches are now upstream
6261c9
- respect optflags
6261c9
- include documentation in subpackage
6261c9
- add RPM dependency generation and related magic
6261c9
- guard libuv depedency so it always gets bumped when nodejs does
6261c9
- add -devel subpackage with enough to make node-gyp happy
6261c9
6261c9
* Thu Dec 20 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-9
6261c9
- Drop requirement on openssl 1.0.1
6261c9
6261c9
* Wed Dec 19 2012 Dan HorĂ¡k <dan[at]danny.cz> - 0.9.3-8
6261c9
- set exclusive arch list to match v8
6261c9
6261c9
* Tue Dec 18 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-7
6261c9
- Add remaining changes from code review
6261c9
- Remove unnecessary BuildRequires on findutils
6261c9
- Remove %%clean section
6261c9
6261c9
* Fri Dec 14 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-6
6261c9
- Fixes from code review
6261c9
- Fix executable permissions
6261c9
- Correct the License field
6261c9
- Build debuginfo properly
6261c9
6261c9
* Thu Dec 13 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-5
6261c9
- Return back to using the standard binary name
6261c9
- Temporarily adding a conflict against the ham radio node package until they
6261c9
  complete an agreed rename of their binary.
6261c9
6261c9
* Wed Nov 28 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-4
6261c9
- Rename binary and manpage to nodejs
6261c9
6261c9
* Mon Nov 19 2012 Stephen Gallagher <sgallagh@redhat.com> - 0.9.3-3
6261c9
- Update to latest upstream development release 0.9.3
6261c9
- Include upstreamed patches to unbundle dependent libraries
6261c9
6261c9
* Tue Oct 23 2012 Adrian Alves <alvesadrian@fedoraproject.org>  0.8.12-1
6261c9
- Fixes and Patches suggested by Matthias Runge
6261c9
6261c9
* Mon Apr 09 2012 Adrian Alves <alvesadrian@fedoraproject.org> 0.6.5
6261c9
- First build.