]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerKefu Chai <kchai@redhat.com>
Tue, 24 Sep 2019 15:23:35 +0000 (23:23 +0800)
`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>
ceph.spec.in

index 503eab6f2431546b7ca303932324b53e0f3282e1..5ac0a2692cd6b7b86d5a8915bc3f229d17814a73 100644 (file)
@@ -87,6 +87,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
@@ -269,7 +270,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