From: Kefu Chai Date: Fri, 5 Apr 2019 02:16:23 +0000 (+0800) Subject: rpm: install python%{python3_pkgversion}-devel on el7 X-Git-Tag: v13.2.6~84^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=174894e4f10f06f9c71a93bfdeac44314057e720;p=ceph.git 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 (cherry picked from commit d1e83082b42f784d83b2342bb953d3931a940173) --- diff --git a/ceph.spec.in b/ceph.spec.in index bc137f7d4c9e3..5cfe40926315e 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -222,16 +222,9 @@ BuildRequires: python%{_python_buildid}-prettytable BuildRequires: python%{_python_buildid}-sphinx BuildRequires: lz4-devel >= 1.7 %endif -# python34-... for RHEL, python3-... for all other supported distros -%if 0%{?rhel} -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 # distro-conditional make check dependencies %if 0%{with make_check} %if 0%{?fedora} || 0%{?rhel}