From 1f08860197ca0cc3e37e990dda273816daf515c4 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sat, 18 Apr 2020 13:26:06 -0400 Subject: [PATCH] Fix building on older than EL8 Signed-off-by: Neal Gompa --- golang.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/golang.spec b/golang.spec index 512ab84..a47b4a5 100644 --- a/golang.spec +++ b/golang.spec @@ -310,7 +310,11 @@ Requires(preun): %{_sbindir}/update-alternatives # This is an odd issue, still looking for a better fix. Requires: glibc Requires: gcc +%if 0%{?rhel} && 0%{?rhel} < 8 +Requires: git, subversion, mercurial +%else Recommends: git, subversion, mercurial +%endif %description bin %{summary}