From aab12ba66b3e2bd91f9611098055ccd4de1b4126 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Jul 22 2022 09:51:21 +0000 Subject: Require libusb-compat-0.1-devel rather than libusb-devel where needed --- 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