From: Ken Dreyer Date: Mon, 18 Feb 2019 22:19:41 +0000 (-0700) Subject: rpm: fix python dependencies on RHEL 8 X-Git-Tag: v14.1.0~10^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2273bfce4249357c556c65e47da4d9409e9bc4f3;p=ceph.git rpm: fix python dependencies on RHEL 8 On RHEL 8, the python34-* and Cython packages are named identically to Fedora (eg "python3-Cython"). Move the Python 2 "Cython" and python34-* BuildRequires lines inside a RHEL 7 conditional, so RHEL 8 falls through to the Fedora package names. Signed-off-by: Ken Dreyer --- diff --git a/ceph.spec.in b/ceph.spec.in index 87e7ab977406..7303651f349b 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -253,8 +253,8 @@ BuildRequires: openldap-devel BuildRequires: openssl-devel BuildRequires: CUnit-devel BuildRequires: redhat-lsb-core +%if 0%{?rhel} == 7 BuildRequires: Cython -%if 0%{?rhel} BuildRequires: python34-devel BuildRequires: python34-setuptools BuildRequires: python34-Cython