Skip to content

Commit

Permalink
simplify python rhel version logic and force python3 for rhel8
Browse files Browse the repository at this point in the history
Change-Id: Ic3792cc8936392e2b6cb282aa722c7326181cb96
  • Loading branch information
Fᴀʙɪᴇɴ Wᴇʀɴʟɪ committed Mar 5, 2020
1 parent 7edb5ad commit 8a2882e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions contrib/redhat/collectd.spec
Expand Up @@ -824,14 +824,18 @@ Monitors process starts/stops via netlink library.
Summary: Python plugin for collectd
Group: System Environment/Daemons
Requires: %{name}%{?_isa} = %{version}-%{release}
%if 0%{?rhel} && 0%{?rhel} > 7
%if 0%{?rhel}
%if 0%{?rhel} == 8
BuildRequires: python3-devel
%elif 0%{?rhel} == 7
BuildRequires: python2-devel
%elif 0%{?rhel} == 6
BuildRequires: python2-devel
%else
%if 0%{?rhel} && 0%{?rhel} < 6
BuildRequires: python26-devel
%else
BuildRequires: python-devel
%endif
%else
BuildRequires: python-devel
%endif
%description python
The Python plugin embeds a Python interpreter into collectd and exposes the
Expand Down

0 comments on commit 8a2882e

Please sign in to comment.