This commit is contained in:
Tomas Hrcka 2022-01-18 14:38:15 +01:00
parent 9fe52744a2
commit 1dc586df16
8 changed files with 1221 additions and 1 deletions

84
.gitignore vendored Normal file
View file

@ -0,0 +1,84 @@
/node-v0.9.3.tar.gz
/node-v0.9.4.tar.gz
/node-v0.9.5.tar.gz
/node-v0.10.0.tar.gz
/node-v0.10.1.tar.gz
/node-v0.10.2.tar.gz
/node-v0.10.3.tar.gz
/node-v0.10.4.tar.gz
/node-v0.10.5.tar.gz
/node-v0.10.6.tar.gz
/node-v0.10.7-stripped.tar.gz
/node-v0.10.8-stripped.tar.gz
/node-v0.10.9-stripped.tar.gz
/node-v0.10.12-stripped.tar.gz
/node-v0.10.13-stripped.tar.gz
/node-v0.10.14-stripped.tar.gz
/node-v0.10.16-stripped.tar.gz
/node-v0.10.17-stripped.tar.gz
/node-v0.10.18-stripped.tar.gz
/node-v0.10.19-stripped.tar.gz
/node-v0.10.20-stripped.tar.gz
/node-v0.10.21-stripped.tar.gz
/node-v0.10.22-stripped.tar.gz
/node-v0.10.23-stripped.tar.gz
/node-v0.10.24.tar.gz
/node-v0.10.24-stripped.tar.gz
/node-v0.10.25-stripped.tar.gz
/node-v0.10.26-stripped.tar.gz
/node-v0.10.28-stripped.tar.gz
/node-v0.10.29-stripped.tar.gz
/node-v0.10.30-stripped.tar.gz
/node-v0.10.32-stripped.tar.gz
/node-v0.10.33-stripped.tar.gz
/node-v0.10.36-stripped.tar.gz
/node-v4.2.2-stripped.tar.gz
/node-v4.2.3-stripped.tar.gz
/node-v4.2.4-stripped.tar.gz
/node-v4.2.6-stripped.tar.gz
/node-v4.3.0-stripped.tar.gz
/node-v4.3.1-stripped.tar.gz
/node-v5.7.1-stripped.tar.gz
/node-v5.8.0-stripped.tar.gz
/node-v5.9.0.tar.gz
/node-v5.9.1-stripped.tar.gz
/node-v5.10.0-stripped.tar.gz
/node-v5.10.1-stripped.tar.gz
/node-v5.11.0-stripped.tar.gz
/node-v6.1.0-stripped.tar.gz
/node-v6.2.0-stripped.tar.gz
/node-v6.2.1-stripped.tar.gz
/node-v6.2.2-stripped.tar.gz
/node-v6.3.0-stripped.tar.gz
/node-v6.3.1-stripped.tar.gz
/node-v6.4.0-stripped.tar.gz
/node-v6.5.0-stripped.tar.gz
/node-v6.6.0-stripped.tar.gz
/node-v6.7.0-stripped.tar.gz
/node-v6.8.0-stripped.tar.gz
/node-v6.8.1-stripped.tar.gz
/node-v6.9.0-stripped.tar.gz
/node-v6.9.1-stripped.tar.gz
/node-v6.9.2-stripped.tar.gz
/node-v6.9.3-stripped.tar.gz
/node-v6.9.4-stripped.tar.gz
/node-v6.9.5-stripped.tar.gz
/node-v6.10.0-stripped.tar.gz
/node-v6.10.1-stripped.tar.gz
/node-v6.10.2-stripped.tar.gz
/node-v6.10.3-stripped.tar.gz
/node-v6.11.0-stripped.tar.gz
/node-v6.11.1-stripped.tar.gz
/node-v6.11.2-stripped.tar.gz
/node-v6.11.3-stripped.tar.gz
/node-v6.11.4-stripped.tar.gz
/node-v6.11.5-stripped.tar.gz
/node-v6.12.0-stripped.tar.gz
/node-v6.12.2-stripped.tar.gz
/node-v6.12.3-stripped.tar.gz
/node-v6.13.1-stripped.tar.gz
/node-v6.14.0-stripped.tar.gz
/node-v6.14.2-stripped.tar.gz
/node-v6.14.3-stripped.tar.gz
/node-v6.16.0-stripped.tar.gz
/node-v6.17.1-stripped.tar.gz

View file

@ -0,0 +1,25 @@
From 8946146b37e4170c406fbdd7c60f1bbb79a9311a Mon Sep 17 00:00:00 2001
From: Zuzana Svetlikova <zsvetlik@redhat.com>
Date: Wed, 6 Sep 2017 14:17:21 +0200
Subject: [PATCH] dont run gyp on shared deps
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 577d0e232a..bb47a1b95e 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@ $(NODE_G_EXE): config.gypi out/Makefile
$(MAKE) -C out BUILDTYPE=Debug V=$(V)
if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/Debug/$(NODE_EXE) $@; fi
-out/Makefile: common.gypi deps/uv/uv.gyp deps/http_parser/http_parser.gyp deps/zlib/zlib.gyp deps/v8/build/toolchain.gypi deps/v8/build/features.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
+out/Makefile: common.gypi deps/v8/build/toolchain.gypi deps/v8/build/features.gypi deps/v8/tools/gyp/v8.gyp node.gyp config.gypi
$(PYTHON) tools/gyp_node.py -f make
config.gypi: configure
--
2.14.1

View file

@ -1 +0,0 @@
Node.js 6.x is years beyond its supported life

33
macros.nodejs Normal file
View file

@ -0,0 +1,33 @@
# nodejs binary
%__nodejs %{_bindir}/node
# nodejs library directory
%nodejs_sitelib %{_prefix}/lib/node_modules
#arch specific library directory
#for future-proofing only; we don't do multilib
%nodejs_sitearch %{nodejs_sitelib}
# currently installed nodejs version
%nodejs_version %(%{__nodejs} -v | sed s/v//)
# symlink dependencies so `npm link` works
# this should be run in every module's %%install section
# pass --check to work in the current directory instead of the buildroot
# pass --no-devdeps to ignore devDependencies when --check is used
%nodejs_symlink_deps %{_rpmconfigdir}/nodejs-symlink-deps %{nodejs_sitelib}
# patch package.json to fix a dependency
# see `man npm-json` for details on writing dependencies for package.json files
# e.g. `%%nodejs_fixdep frobber` makes any version of frobber do
# `%%nodejs_fixdep frobber '>1.0'` requires frobber > 1.0
# `%%nodejs_fixdep -r frobber removes the frobber dep
%nodejs_fixdep %{_rpmconfigdir}/nodejs-fixdep
# macro to filter unwanted provides from Node.js binary native modules
%nodejs_default_filter %{expand: \
%global __provides_exclude_from ^%{nodejs_sitearch}/.*\\.node$
}
# no-op macro to allow spec compatibility with EPEL
%nodejs_find_provides_and_requires %{nil}

10
nodejs-tarball.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
version=$(rpm -q --specfile --qf='%{version}\n' nodejs.spec | head -n1)
rm -f node-v${version}.tar.gz
wget http://nodejs.org/dist/v${version}/node-v${version}.tar.gz
tar -zxf node-v${version}.tar.gz
rm -rf node-v${version}/deps/openssl
tar -zcf node-v${version}-stripped.tar.gz node-v${version}
fedpkg new-sources node-v${version}-stripped.tar.gz

1066
nodejs.spec Normal file

File diff suppressed because it is too large Load diff

2
nodejs_native.attr Normal file
View file

@ -0,0 +1,2 @@
%__nodejs_native_requires %{_rpmconfigdir}/nodejs_native.req
%__nodejs_native_path ^/usr/lib.*/node_modules/.*\\.node$

1
sources Normal file
View file

@ -0,0 +1 @@
SHA512 (node-v6.17.1-stripped.tar.gz) = 0c89917d14872bfdb94cd2ee428f67093fdef16cbaff5bd96d00960c040c23ce95550d3b634172035b28e214caeac7d2808e0b0b152885deb33b5ec55a6a2f7e