Skip to content

Commit

Permalink
rpm: always use 3 as the default python3_{pkgversion,version}
Browse files Browse the repository at this point in the history
as we have the rpm macros installed in
ceph/ceph-build#1283 .

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 11f0b8d)
  • Loading branch information
tchaikov committed Apr 10, 2019
1 parent fb76ecf commit 1ebc411
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ceph.spec.in
Expand Up @@ -67,13 +67,8 @@

%{!?_udevrulesdir: %global _udevrulesdir /lib/udev/rules.d}
%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
%if 0%{?rhel} == 7
%{!?python3_pkgversion: %global python3_pkgversion 36}
%{!?python3_version: %global python3_version 3.6}
%else
%{!?python3_pkgversion: %global python3_pkgversion 3}
%{!?python3_version: %global python3_version 3}
%endif
# define _python_buildid macro which will expand to the empty string when
# building with python2
%global _python_buildid %{?_defined_if_python2_absent:%{python3_pkgversion}}
Expand Down

0 comments on commit 1ebc411

Please sign in to comment.