diff --git a/rpm/podman.spec b/rpm/podman.spec index 62ca4dce9f..2f0cc734c3 100644 --- a/rpm/podman.spec +++ b/rpm/podman.spec @@ -81,7 +81,7 @@ BuildRequires: glibc-devel BuildRequires: glibc-static BuildRequires: golang BuildRequires: git-core -%if !%{defined gobuild} +%if %{undefined rhel} || 0%{?rhel} >= 10 BuildRequires: go-rpm-macros %endif BuildRequires: gpgme-devel