]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rpm: use python3.4 on RHEL7 by default
authorKefu Chai <kchai@redhat.com>
Thu, 4 Apr 2019 18:46:40 +0000 (02:46 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 11 Apr 2019 02:35:13 +0000 (10:35 +0800)
python3.4 is the native python3 before 7.6

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit cea9d18ced929a330f2299681ef93768449a05ed)

ceph.spec.in

index 868148192d3f806f17043f04f87f08e000422856..c78c786302ff488a8d0a5d81f2b41ff2670cf341 100644 (file)
 
 %{!?_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}}