Skip to contentSkip to conversation

redhat: BuildRequires python3

PATCH In review Honggang LI 2 participants 2 messages Sep 16, 2019 – Sep 24, 2019 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 redhat: BuildRequires python3

From: Honggang Li <[email protected]>

python2 is obsoleted by python3 in RHEL8 and Fedora-30.

---
 redhat/rdma-core.spec | 4 ++++
 1 file changed, 4 insertions(+)
redhat/rdma-core.spec +4 -0
index f07919cc..731a4e10 100644
@@ -29,8 +29,12 @@ BuildRequires: systemd-devel
 BuildRequires: python3-devel
 BuildRequires: python3-Cython
 %else
+%if 0%{?rhel} == 8 || 0%{?fedora} >= 30
+BuildRequires: python3
+%else
 BuildRequires: python
 %endif
+%endif
 %if 0%{?fedora} >= 21
 BuildRequires: perl-generators
 %endif
Signature · 1 line
2.21.0