mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
rpm: use python3.4 on RHEL7 by default
python3.4 is the native python3 before 7.6 Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
9a60ae4286
commit
cea9d18ced
@ -87,7 +87,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}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user