From: Kefu Chai Date: Thu, 4 Apr 2019 18:46:40 +0000 (+0800) Subject: rpm: use python3.4 on RHEL7 by default X-Git-Tag: v14.2.1~43^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eba4740e2bfc4c17e0530518cf1a5e8c0cb1668f;p=ceph.git rpm: use python3.4 on RHEL7 by default python3.4 is the native python3 before 7.6 Signed-off-by: Kefu Chai (cherry picked from commit cea9d18ced929a330f2299681ef93768449a05ed) --- diff --git a/ceph.spec.in b/ceph.spec.in index 868148192d3f..c78c786302ff 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -85,7 +85,13 @@ %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d} %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create} +%if 0%{?rhel} == 7 +%{!?python3_pkgversion: %global python3_pkgversion 34} +%{!?python3_version: %global python3_version 3.4} +%else %{!?python3_pkgversion: %global python3_pkgversion 3} +%{!?python3_version: %global python3_version 3} +%endif # define _python_buildid macro which will expand to the empty string when # building with python2 %global _python_buildid %{?_defined_if_python2_absent:%{python3_pkgversion}}