]> git.apps.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>
Fri, 5 Apr 2019 16:28:39 +0000 (00:28 +0800)
python3.4 is the native python3 before 7.6

Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph.spec.in

index 8cfacd180326fa28c352d2e86853d44d465d7d1e..f374c4a59494ebb5ff5c1230c161e9d293d0e47c 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}}