From 08235295ea5481246af7dd8ce25b7645930f0967 Mon Sep 17 00:00:00 2001 From: Kamal Heib Date: Tue, 21 Nov 2023 13:43:45 -0500 Subject: [PATCH] Avoid building pyverbs for fedora40 The pyverbs package requires an update to support Cython3, until this happen upstream, avoid building the package for Fedora 40 or newer. Signed-off-by: Kamal Heib --- rdma-core.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rdma-core.spec b/rdma-core.spec index 6d91ed3..81b3b04 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -29,7 +29,8 @@ BuildRequires: /usr/bin/rst2man BuildRequires: valgrind-devel BuildRequires: systemd BuildRequires: systemd-devel -%if 0%{?fedora} >= 32 || 0%{?rhel} >= 8 +# https://github.com/linux-rdma/rdma-core/pull/1405 +%if (0%{?fedora} < 40 && 0%{?fedora} >= 32) || (0%{?rhel} >= 8 && 0%{?rhel} < 10) %define with_pyverbs %{?_with_pyverbs: 1} %{?!_with_pyverbs: %{?!_without_pyverbs: 1} %{?_without_pyverbs: 0}} %else %define with_pyverbs %{?_with_pyverbs: 1} %{?!_with_pyverbs: 0}