From fce62bd629138109ba9088629f8595e6427ffe71 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Wed, 26 May 2021 09:42:25 +0200 Subject: [PATCH] Use pkgconfig for libusb PKG_CHECK_MODULES is used for libusb dependency, so the build requirement should also use pkgconfig. Resolves: #1976905 (cherry picked from Fedora commit 017b3acd47608a355a501d7b40a27a50a9a55868) --- libmtp.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmtp.spec b/libmtp.spec index d9f0edb..434b143 100644 --- a/libmtp.spec +++ b/libmtp.spec @@ -12,7 +12,7 @@ License: LGPLv2+ Requires: udev BuildRequires: gcc BuildRequires: make -BuildRequires: libusbx-devel +BuildRequires: pkgconfig(libusb-1.0) BuildRequires: doxygen %if ! 0%{?rhel} BuildRequires: libgcrypt-devel @@ -113,6 +113,7 @@ chrpath --delete $RPM_BUILD_ROOT{%{_bindir},/usr/lib/udev}/mtp* * Wed May 26 2021 Ondrej Holy - 1.1.18-4 - Drop redundant devel requires - Disable MTPZ support in RHEL +- Use pkgconfig for libusb * Fri Apr 16 2021 Mohan Boddu - 1.1.18-3 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937