]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph.spec.in: fix Cython package dependency for Fedora
authorJeff Layton <jlayton@redhat.com>
Thu, 26 Sep 2019 11:50:28 +0000 (07:50 -0400)
committerJeff Layton <jlayton@redhat.com>
Thu, 26 Sep 2019 12:20:57 +0000 (08:20 -0400)
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 <jlayton@redhat.com>
ceph.spec.in

index 51477c35bbc7f4fb5d85c46c872d488b4054e5e4..ae52f2612587639e5ee95c999292e3ab4cc68359 100644 (file)
@@ -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