Fix missing %nodejs_pkg_major

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2024-05-22 12:58:51 -04:00
parent 481e51b9f3
commit 55c82e8f23
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,7 @@
# Determine if this should be the default version for this Fedora release
# The default version will own /usr/bin/node and friends
%global nodejs_pkg_major 22
%if 0%{?fedora} == 41 || 0%{?fedora} == 42 || 0%{?rhel} == 11
%global nodejs_default %{nodejs_pkg_major}
%endif
@ -57,8 +59,6 @@
%global nodejs_release %{baserelease}
%global nodejs_envr %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}
%global nodejs_pkg_major 22
%global nodejs_datadir %{_datarootdir}/node-%{nodejs_pkg_major}

View File

@ -1,5 +1,7 @@
# Determine if this should be the default version for this Fedora release
# The default version will own /usr/bin/node and friends
%global nodejs_pkg_major {{ NODE_PKG_MAJOR }}
%if 0%{?fedora} == {{ FEDORA_DEFAULT_RELEASE_LOW }} || 0%{?fedora} == {{ FEDORA_DEFAULT_RELEASE_HIGH }}{{ RHEL_DEFAULT_RELEASE }}
%global nodejs_default %{nodejs_pkg_major}
%endif
@ -57,8 +59,6 @@
%global nodejs_release %{baserelease}
%global nodejs_envr %{nodejs_epoch}:%{nodejs_version}-%{nodejs_release}
%global nodejs_pkg_major {{ NODE_PKG_MAJOR }}
%global nodejs_datadir %{_datarootdir}/node-%{nodejs_pkg_major}