diff --git a/toolbox.spec b/toolbox.spec index ffc6fbd..4d0cfbe 100644 --- a/toolbox.spec +++ b/toolbox.spec @@ -17,6 +17,20 @@ Version: 0.0.99.5 %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} 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: go-md2man -BuildRequires: golang >= 1.21.7 +BuildRequires: golang >= %{toolbx_go} BuildRequires: meson >= 0.58.0 BuildRequires: pkgconfig(bash-completion) BuildRequires: shadow-utils-subid-devel