Skip to content

Commit 6d2f668

Browse files
committed
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 <[email protected]>
1 parent 34de0de commit 6d2f668

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ceph.spec.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
%{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
8888
%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
8989
%{!?python3_pkgversion: %global python3_pkgversion 3}
90+
%{!?python3_version_nodots: %global python3_version_nodots 3}
9091
%{!?python3_version: %global python3_version 3}
9192
# define _python_buildid macro which will expand to the empty string when
9293
# building with python2
@@ -269,7 +270,7 @@ BuildRequires: python2-Cython
269270
%endif
270271
BuildRequires: python%{python3_pkgversion}-devel
271272
BuildRequires: python%{python3_pkgversion}-setuptools
272-
BuildRequires: python%{python3_pkgversion}-Cython
273+
BuildRequires: python%{python3_version_nodots}-Cython
273274
BuildRequires: python%{_python_buildid}-prettytable
274275
BuildRequires: python%{_python_buildid}-sphinx
275276
BuildRequires: lz4-devel >= 1.7

0 commit comments

Comments
 (0)