Unify the build with Fedora and RHEL 10

There's no need to do a build just for this.

Resolves: RHEL-28393, RHEL-28485
This commit is contained in:
Debarshi Ray 2024-04-25 01:12:11 +02:00
parent 1775a362de
commit 8712314fc1

View File

@ -17,6 +17,20 @@ Version: 0.0.99.5
%endif %endif
%endif %endif
%global toolbx_go 1.20
%if 0%{?fedora}
%global toolbx_go 1.22
%endif
%if 0%{?rhel}
%if 0%{?rhel} == 9
%global toolbx_go 1.21.7
%elif 0%{?rhel} == 10
%global toolbx_go 1.21.3
%endif
%endif
Release: 2%{?dist} Release: 2%{?dist}
Summary: Tool for interactive command line environments on Linux Summary: Tool for interactive command line environments on Linux
@ -38,7 +52,7 @@ Patch202: toolbox-Add-migration-paths-for-coreos-toolbox-users.patch
BuildRequires: gcc BuildRequires: gcc
BuildRequires: go-md2man BuildRequires: go-md2man
BuildRequires: golang >= 1.21.7 BuildRequires: golang >= %{toolbx_go}
BuildRequires: meson >= 0.58.0 BuildRequires: meson >= 0.58.0
BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(bash-completion)
BuildRequires: shadow-utils-subid-devel BuildRequires: shadow-utils-subid-devel