From bc8186556334f4daca02e93e9329c17030ba165d Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Thu, 26 Sep 2019 07:50:28 -0400 Subject: [PATCH] ceph.spec.in: fix Cython package dependency for Fedora Fedora distros do not have python3?-Cython packages, but they do have python3-Cython ones. Fix the BuildRequires so that we only use the python3_version_nodots based version string for RHEL. Fixes: https://tracker.ceph.com/issues/42032 Signed-off-by: Jeff Layton (cherry picked from commit 40c5a18f81c67c96f6a35e592ac3141b87c19701) --- ceph.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ceph.spec.in b/ceph.spec.in index 74fb2720678f..f34d424cb33f 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -264,7 +264,11 @@ BuildRequires: python2-Cython %endif BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools +%if 0%{?rhel} BuildRequires: python%{python3_version_nodots}-Cython +%else +BuildRequires: python%{python3_pkgversion}-Cython +%endif BuildRequires: python%{_python_buildid}-prettytable BuildRequires: python%{_python_buildid}-sphinx BuildRequires: lz4-devel >= 1.7 -- 2.47.3