From: Jeff Layton Date: Thu, 26 Sep 2019 11:50:28 +0000 (-0400) Subject: ceph.spec.in: fix Cython package dependency for Fedora X-Git-Tag: v15.1.0~1418^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=40c5a18f81c67c96f6a35e592ac3141b87c19701;p=ceph-ci.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 51477c35bbc..ae52f261258 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -270,7 +270,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