]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: s/pkgversion/version_nodots/ 30722/head
authorKefu Chai <kchai@redhat.com>
Fri, 30 Aug 2019 11:49:28 +0000 (19:49 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 4 Oct 2019 15:40:41 +0000 (17:40 +0200)
`python3_pkgversion` is now defined as 3, while we don't have packages
like python3-Cython yet in EPEL7. but we do have `python36-Cython`. so
let's use `python3_version_nodots` instead.

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

ceph.spec.in

index dd5a20e7068983e4208d0dd4569edf680ba4d40c..d2751296057bb37f8cecb8e57262572df3590864 100644 (file)
@@ -47,6 +47,7 @@
 %{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
 %{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
 %{!?python3_pkgversion: %global python3_pkgversion 3}
+%{!?python3_version_nodots: %global python3_version_nodots 3}
 %{!?python3_version: %global python3_version 3}
 # unify libexec for all targets
 %global _libexecdir %{_exec_prefix}/lib
@@ -193,9 +194,9 @@ BuildRequires:      python-sphinx
 %endif
 # python34-... for RHEL, python3-... for all other supported distros
 %if 0%{?rhel}
-BuildRequires: python34-devel
-BuildRequires: python34-setuptools
-BuildRequires: python34-Cython
+BuildRequires: python%{python3_pkgversion}-devel
+BuildRequires: python%{python3_pkgversion}-setuptools
+BuildRequires: python%{python3_version_nodots}-Cython
 %else
 BuildRequires: python3-devel
 BuildRequires: python3-setuptools