From 08235295ea5481246af7dd8ce25b7645930f0967 Mon Sep 17 00:00:00 2001 From: Kamal Heib Date: Nov 22 2023 18:56:33 +0000 Subject: 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 --- 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}