From: Kefu Chai Date: Fri, 30 Aug 2019 11:49:28 +0000 (+0800) Subject: ceph.spec.in: s/pkgversion/version_nodots/ X-Git-Tag: v15.1.0~1438^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6d2f66846d1b84595cfdf8ac13a7ed4e1ae608ce;p=ceph.git 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 --- diff --git a/ceph.spec.in b/ceph.spec.in index 503eab6f2431..5ac0a2692cd6 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