rpm: add RHEL 8 + Fedora support

Fedora and RHEL 8 have Python 3, so we must require Python 2 on RHEL 7
and Python 3 on RHEL 8.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
pull/3621/head
Ken Dreyer 2019-02-19 13:31:15 -07:00 committed by mergify[bot]
parent 3930791cb7
commit 0cf590244a
1 changed files with 10 additions and 4 deletions

View File

@ -17,11 +17,17 @@ Obsoletes: ceph-iscsi-ansible <= 1.5
BuildArch: noarch BuildArch: noarch
BuildRequires: ansible >= 2.7 BuildRequires: ansible >= 2.7
BuildRequires: python2-devel
Requires: ansible >= 2.7 Requires: ansible >= 2.7
Requires: python-netaddr
Requires: python-notario >= 0.0.13 %if 0%{?rhel} == 7
BuildRequires: python2-devel
Requires: python2-netaddr
Requires: python2-notario >= 0.0.13
%else
BuildRequires: python3-devel
Requires: python3-netaddr
Requires: python3-notario >= 0.0.13
%endif
%description %description
Ansible playbooks for Ceph Ansible playbooks for Ceph