fix nodejs issue

This commit is contained in:
Than Ngo 2023-01-23 15:50:01 +01:00
parent 2e0aa4d4c9
commit 1057f0a0a2

View File

@ -510,7 +510,9 @@ BuildRequires: minizip-compat-devel
%endif
# RHEL 8 needs newer nodejs
%if ! 0%{?rhel} == 8
%if 0%{?rhel} == 8
# nothing
%else
BuildRequires: nodejs
%endif
@ -1388,7 +1390,7 @@ fi
%if %{bootstrap}
tools/gn/bootstrap/bootstrap.py --gn-gen-args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES"
%else
cp -a %{_bindir}/gn %{builddir}/
mkdir -p %{builddir} && cp -a %{_bindir}/gn %{builddir}/
%endif
%{builddir}/gn --script-executable=%{chromium_pybin} gen --args="$CHROMIUM_CORE_GN_DEFINES $CHROMIUM_BROWSER_GN_DEFINES" %{builddir}