]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: s/pkgversion/version_nodots/
authorKefu Chai <kchai@redhat.com>
Fri, 30 Aug 2019 11:49:28 +0000 (19:49 +0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 3 Oct 2019 15:40:14 +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>
(cherry picked from commit 6d2f66846d1b84595cfdf8ac13a7ed4e1ae608ce)

ceph.spec.in

index 73e2006473e38aad75b6d2cda1d9c71a30f23f92..74fb2720678f135ed81385daa4e037c2433967d9 100644 (file)
@@ -85,6 +85,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}
 # define _python_buildid macro which will expand to the empty string when
 # building with python2
@@ -263,7 +264,7 @@ BuildRequires:      python2-Cython
 %endif
 BuildRequires: python%{python3_pkgversion}-devel
 BuildRequires: python%{python3_pkgversion}-setuptools
-BuildRequires: python%{python3_pkgversion}-Cython
+BuildRequires: python%{python3_version_nodots}-Cython
 BuildRequires: python%{_python_buildid}-prettytable
 BuildRequires: python%{_python_buildid}-sphinx
 BuildRequires: lz4-devel >= 1.7