From aab12ba66b3e2bd91f9611098055ccd4de1b4126 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Fri, 22 Jul 2022 11:51:21 +0200 Subject: [PATCH] Require libusb-compat-0.1-devel rather than libusb-devel where needed --- flashrom.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flashrom.spec b/flashrom.spec index 92c6cf9..0c2f5a4 100644 --- a/flashrom.spec +++ b/flashrom.spec @@ -20,7 +20,11 @@ BuildRequires: meson BuildRequires: pciutils-devel BuildRequires: libjaylink-devel BuildRequires: libftdi-devel +%if 0%{?fedora} >= 37 || 0%{?rhel} > 9 +BuildRequires: libusb-compat-0.1-devel +%else BuildRequires: libusb-devel +%endif # Used for new programmers (libusb0 will eventually be removed) BuildRequires: libusbx-devel BuildRequires: systemd