From e37a33a6802eaa8e6fc4c16cddae48f2a5729e2c Mon Sep 17 00:00:00 2001 From: Alon Bar-Lev Date: Sun, 19 Feb 2017 14:15:00 -0500 Subject: [PATCH] spec: handle recommend for fedora only Signed-off-by: Alon Bar-Lev --- netdata.spec.in | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/netdata.spec.in b/netdata.spec.in index 8ddfabc4..9bf6f5b1 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -26,6 +26,22 @@ %undefine with_systemd %endif +%if 0%{?fedora} +%global netdata_recommends \ +Recommends: curl \ +Recommends: iproute-tc \ +Recommends: lm_sensors \ +Recommends: nmap-ncat \ +Recommends: nodejs \ +Recommends: python \ +Recommends: PyYAML \ +Recommends: python2-PyMySQL \ +Recommends: python2-psycopg2 \ +%{nil} +%else +%global netdata_recommends %{nil} +%endif + Summary: Real-time performance monitoring, done right Name: @PACKAGE_NAME@ Version: @PACKAGE_RPM_VERSION@ @@ -42,15 +58,7 @@ BuildRequires: libuuid-devel Requires: zlib Requires: libuuid Requires(post): libcap -Recommends: curl -Recommends: iproute-tc -Recommends: lm_sensors -Recommends: nmap-ncat -Recommends: nodejs -Recommends: python -Recommends: PyYAML -Recommends: python2-PyMySQL -Recommends: python2-psycopg2 +%{netdata_recommends} # Packages can be found in the EPEL repo %if %{with nfacct} -- 2.39.2