From: Ken Dreyer Date: Tue, 19 Feb 2019 20:31:15 +0000 (-0700) Subject: rpm: add RHEL 8 + Fedora support X-Git-Tag: v4.0.0rc1~94 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0cf590244a5031611cde3a90ca192a27c0d8fbb0;p=ceph-ansible.git 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 --- diff --git a/ceph-ansible.spec.in b/ceph-ansible.spec.in index 833a8a3c9..a5e2df327 100644 --- a/ceph-ansible.spec.in +++ b/ceph-ansible.spec.in @@ -17,11 +17,17 @@ Obsoletes: ceph-iscsi-ansible <= 1.5 BuildArch: noarch BuildRequires: ansible >= 2.7 -BuildRequires: python2-devel - 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 Ansible playbooks for Ceph