]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: Install python2-Cython in python2 environment 26756/head
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 4 Mar 2019 02:38:25 +0000 (12:38 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Wed, 13 Mar 2019 02:22:31 +0000 (12:22 +1000)
do_cmake.sh tests for Cython module version in python2

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
ceph.spec.in

index a12ceade0f7e36ab58031c2110ec4c07fe6ab9ea..63cf60d6526fa74cbb4a0163d9aa31f21ed3d9fa 100644 (file)
@@ -255,8 +255,10 @@ BuildRequires:  openldap-devel
 BuildRequires:  openssl-devel
 BuildRequires:  CUnit-devel
 BuildRequires:  redhat-lsb-core
+%if 0%{with python2}
+BuildRequires: python2-Cython
+%endif
 %if 0%{?rhel} == 7
-BuildRequires: Cython
 BuildRequires: python34-devel
 BuildRequires: python34-setuptools
 BuildRequires: python34-Cython