From 6d2f66846d1b84595cfdf8ac13a7ed4e1ae608ce Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 30 Aug 2019 19:49:28 +0800 Subject: [PATCH] ceph.spec.in: s/pkgversion/version_nodots/ `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 --- ceph.spec.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ceph.spec.in b/ceph.spec.in index 503eab6f243..5ac0a2692cd 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -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 -- 2.39.5