]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rpm: install python%{python3_pkgversion}-devel on el7
authorKefu Chai <kchai@redhat.com>
Fri, 5 Apr 2019 02:16:23 +0000 (10:16 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 5 Apr 2019 02:16:25 +0000 (10:16 +0800)
as RHEL 7.7 support a native python3.6, we cannot hardwire to python3.4
on RHEL7/CentOS7 anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph.spec.in

index 049ff24d5bc8cb4f7a3291ef734354fa95407835..8cfacd180326fa28c352d2e86853d44d465d7d1e 100644 (file)
@@ -262,15 +262,9 @@ BuildRequires:  redhat-lsb-core
 %if 0%{with python2}
 BuildRequires: python2-Cython
 %endif
-%if 0%{?rhel} == 7
-BuildRequires: python34-devel
-BuildRequires: python34-setuptools
-BuildRequires: python34-Cython
-%else
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: python3-Cython
-%endif
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+BuildRequires: python%{python3_pkgversion}-Cython
 BuildRequires: python%{_python_buildid}-prettytable
 BuildRequires: python%{_python_buildid}-sphinx
 BuildRequires: lz4-devel >= 1.7