# add-on binaries can be loaded in to without needing to be re-compiled. It
# used to be stored as hex value in earlier versions, but is now represented as
# an integer.
# add-on binaries can be loaded in to without needing to be re-compiled. It
# used to be stored as hex value in earlier versions, but is now represented as
# an integer.
# 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
# force node to use /usr/lib/node as the systemwide module directory
Patch2: %{name}-libpath.patch
# use /usr/lib64/node as an arch-specific module dir when appropriate
# force node to use /usr/lib/node as the systemwide module directory
Patch2: %{name}-libpath.patch
# use /usr/lib64/node as an arch-specific module dir when appropriate
Patch4: 0001-Disable-running-gyp-on-shared-deps.patch
Patch5: 0002-Install-both-binaries-and-use-libdir.patch
URL: https://nodejs.org/
Patch4: 0001-Disable-running-gyp-on-shared-deps.patch
Patch5: 0002-Install-both-binaries-and-use-libdir.patch
URL: https://nodejs.org/
BuildRequires: gcc >= 6:6.3
%if %{with http_parser}
BuildRequires: http-parser-devel >= 2.9.3
BuildRequires: llhttp-devel >= 2.1.3
%endif
BuildRequires: gcc >= 6:6.3
%if %{with http_parser}
BuildRequires: http-parser-devel >= 2.9.3
BuildRequires: llhttp-devel >= 2.1.3
%endif
BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: sed >= 4.0
BuildRequires: zlib-devel >= 1.2.11
BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: sed >= 4.0
BuildRequires: zlib-devel >= 1.2.11
Requires: ca-certificates
%{?with_http_parser:Requires: http-parser >= 2.9.3}
%{?with_system_brotli:Requires: libbrotli >= 1.0.9}
Requires: ca-certificates
%{?with_http_parser:Requires: http-parser >= 2.9.3}
%{?with_system_brotli:Requires: libbrotli >= 1.0.9}
-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},'
# 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}" \