- add out/tools/bin to PATH: nodejs creates 'python' symlink there
pointing to applicable python version. while Makefile has PATH
customization for newly spawned processes, it does not apply to make
invocation itself
# Active start: 2020-10-27
# Maintenance start: October 2020
# Maintenance end: April 2023
# Active start: 2020-10-27
# Maintenance start: October 2020
# Maintenance end: April 2023
Release: 1
License: BSD and MIT and Apache v2.0 and GPL v3
Group: Development/Languages
Source0: https://nodejs.org/dist/v%{version}/node-v%{version}.tar.gz
Release: 1
License: BSD and MIT and Apache v2.0 and GPL v3
Group: Development/Languages
Source0: https://nodejs.org/dist/v%{version}/node-v%{version}.tar.gz
-# Source0-md5: 8c5f13de865ad83d4d759414fe12e261
+# Source0-md5: c8571e797b311520ec19ece7c7c64247
Patch0: system_cares.patch
# force node to use /usr/lib/node as the systemwide module directory
Patch2: %{name}-libpath.patch
Patch0: system_cares.patch
# force node to use /usr/lib/node as the systemwide module directory
Patch2: %{name}-libpath.patch
-grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env python,#!%{__python3},'
+grep -r '#!.*env python' -l . | xargs %{__sed} -i -e '1 s,#!.*env python$,#!%{__python3},'
%{?with_system_brotli:%{__rm} -r deps/brotli}
%{__rm} -r deps/cares
%{?with_system_brotli:%{__rm} -r deps/brotli}
%{__rm} -r deps/cares
# CXXFLAGS must be exported, as it is needed for make, not gyp
CXXFLAGS="%{rpmcxxflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC" \
LDFLAGS="%{rpmldflags}" \
# CXXFLAGS must be exported, as it is needed for make, not gyp
CXXFLAGS="%{rpmcxxflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC" \
LDFLAGS="%{rpmldflags}" \
+PATH="$(pwd)/out/tools/bin:$PATH" \
%{__make} -C out \
BUILDTYPE=Release \
V=1
%{__make} -C out \
BUILDTYPE=Release \
V=1