From 69815e92738fe0cf4dd879dd6f089bad19fce684 Mon Sep 17 00:00:00 2001 From: Liming Sun Date: Mon, 6 Jan 2025 20:12:58 +0000 Subject: [PATCH] Fix RPM installation dependency on Oracle Linux This commit has the dependency fix for RPM installation on Oracle Linux which has cuse.ko provided in kernel-uek-modules-extra instead. RM #4222425 Signed-off-by: Liming Sun --- rshim.spec.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rshim.spec.in b/rshim.spec.in index 387ca1a..7b7757e 100644 --- a/rshim.spec.in +++ b/rshim.spec.in @@ -15,9 +15,13 @@ Source0: https://github.com/mellanox/rshim-user-space/archive/%{name}-%{version} BuildRequires: gcc, autoconf, automake, pkgconfig, make BuildRequires: pkgconfig(libpci), pkgconfig(libusb-1.0) +%if (0%{?oraclelinux} >= 8) +Requires: kernel-uek-core +%else %if (0%{?rhel} >= 8 || 0%{?fedora} > 0) && "0%{?ctyunos}" == "0" Requires: kernel-modules-extra %endif +%endif %global with_systemd %(if (test -d "%{_unitdir}" > /dev/null); then echo -n '1'; else echo -n '0'; fi) %global debug_package %{nil}