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