# Active start: 2020-10-27
# Maintenance start: October 2020
# Maintenance end: April 2023
-Version: 16.10.0
+Version: 16.13.2
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: ae3a05fc273536f83c685a7425a7882d
Patch0: system_cares.patch
# force node to use /usr/lib/node as the systemwide module directory
Patch2: %{name}-libpath.patch
%patch4 -p1
%patch5 -p1
-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
# 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