]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
rpm: add RHEL 8 + Fedora support
authorKen Dreyer <kdreyer@redhat.com>
Tue, 19 Feb 2019 20:31:15 +0000 (13:31 -0700)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Wed, 20 Feb 2019 08:10:30 +0000 (08:10 +0000)
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>
ceph-ansible.spec.in

index 833a8a3c92706ce2ad80241e9726082b97c9d88c..a5e2df327e60db884ebe4180fbc491c4ed3a6dbe 100644 (file)
@@ -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