spec: handle recommend for fedora only
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
Alon Bar-Lev committed
Feb 19, 2017 at 14:15 UTC
e37a33a6802eaa8e6fc4c16cddae48f2a5729e2c
1 file changed
+17
-9
netdata.spec.in
+17
-9
@@ -26,6 +26,22 @@
26
%undefine with_systemd
27
%endif
28
29
+%if 0%{?fedora}
30
+%global netdata_recommends \
31
+Recommends: curl \
32
+Recommends: iproute-tc \
33
+Recommends: lm_sensors \
34
+Recommends: nmap-ncat \
35
+Recommends: nodejs \
36
+Recommends: python \
37
+Recommends: PyYAML \
38
+Recommends: python2-PyMySQL \
39
+Recommends: python2-psycopg2 \
40
+%{nil}
41
+%else
42
+%global netdata_recommends %{nil}
43
+%endif
44
+
45
Summary: Real-time performance monitoring, done right
46
Name: @PACKAGE_NAME@
47
Version: @PACKAGE_RPM_VERSION@
@@ -42,15 +58,7 @@ BuildRequires: libuuid-devel
58
Requires: zlib
59
Requires: libuuid
60
Requires(post): libcap
45
-Recommends: curl
46
-Recommends: iproute-tc
47
-Recommends: lm_sensors
48
-Recommends: nmap-ncat
49
-Recommends: nodejs
50
-Recommends: python
51
-Recommends: PyYAML
52
-Recommends: python2-PyMySQL
53
-Recommends: python2-psycopg2
61
+%{netdata_recommends}
62
63
# Packages can be found in the EPEL repo
64
%if %{with nfacct}