Don't use recommends when not supported

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
This commit is contained in:
Nicolas Chauvet 2020-03-09 16:21:05 +01:00
parent add390a657
commit f852e2f945
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,7 @@ Requires(pre): shadow-utils
BuildRequires: git, systemd, golang, go-srpm-macros go-rpm-macros
%if 0%{?fedora} || 0%{?rhel} > 7
Recommends: grafana-cloudwatch = %{version}-%{release}
Recommends: grafana-elasticsearch = %{version}-%{release}
Recommends: grafana-azure-monitor = %{version}-%{release}
@ -72,6 +73,7 @@ Recommends: grafana-postgres = %{version}-%{release}
Recommends: grafana-prometheus = %{version}-%{release}
Recommends: grafana-stackdriver = %{version}-%{release}
Recommends: grafana-pcp >= 2
%endif
%if 0%{?unbundle_vendor_sources}
# golang build deps. These allow us to unbundle vendor golang source.