From d1e83082b42f784d83b2342bb953d3931a940173 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 5 Apr 2019 10:16:23 +0800 Subject: [PATCH] rpm: install python%{python3_pkgversion}-devel on el7 as RHEL 7.7 support a native python3.6, we cannot hardwire to python3.4 on RHEL7/CentOS7 anymore. Signed-off-by: Kefu Chai --- ceph.spec.in | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/ceph.spec.in b/ceph.spec.in index 049ff24d5bc8..8cfacd180326 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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 -- 2.47.3