diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2020-12-09 13:42:07 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-09 13:42:07 -0500 |
commit | 8531b3c7669e37639f3114438a68dbb441853765 (patch) | |
tree | 69b213cbe2212716262b0e445b0a362a45d85fa6 /netdata.spec.in | |
parent | cb370fc68a5d2933383a78c3a75b5dbab1363e89 (diff) |
Fix handling of Python dependency for RPM package. (#10345)
Diffstat (limited to 'netdata.spec.in')
-rw-r--r-- | netdata.spec.in | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/netdata.spec.in b/netdata.spec.in index c13f721764..7f0b066379 100644 --- a/netdata.spec.in +++ b/netdata.spec.in @@ -152,7 +152,15 @@ BuildRequires: json-c-devel # Runtime dependencies # -Requires: python +%if 0%{?centos_ver} == 7 || 0%{?centos_ver} == 6 +Requires: python +%else +%if 0%{?centos_ver} == 8 +Requires: python38 +%else +Requires: python3 +%endif +%endif # Core requirements for the install to succeed Requires(pre): /usr/sbin/groupadd |