summaryrefslogtreecommitdiffstats
path: root/netdata.spec.in
diff options
context:
space:
mode:
authorAlon Bar-Lev <alon.barlev@gmail.com>2017-02-19 14:15:00 -0500
committerAlon Bar-Lev <alon.barlev@gmail.com>2017-02-26 21:33:12 +0200
commite37a33a6802eaa8e6fc4c16cddae48f2a5729e2c (patch)
tree746772853525f015982f5ef1a44f33b4fbd3b75c /netdata.spec.in
parentde66de5d4a190afa608143ad59b3f94a66ede79c (diff)
spec: handle recommend for fedora only
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Diffstat (limited to 'netdata.spec.in')
-rw-r--r--netdata.spec.in26
1 files changed, 17 insertions, 9 deletions
diff --git a/netdata.spec.in b/netdata.spec.in
index 8ddfabc41e..9bf6f5b1f6 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}