diff --git a/libmtp.spec b/libmtp.spec index d89ace6..d9f0edb 100644 --- a/libmtp.spec +++ b/libmtp.spec @@ -14,7 +14,9 @@ BuildRequires: gcc BuildRequires: make BuildRequires: libusbx-devel BuildRequires: doxygen +%if ! 0%{?rhel} BuildRequires: libgcrypt-devel +%endif BuildRequires: chrpath Patch0: 0001-doc-Don-t-document-internal-endian-macros.patch @@ -46,7 +48,11 @@ library for MTP media players. %build %configure --disable-static \ - --with-udev-rules=69-libmtp.rules + --with-udev-rules=69-libmtp.rules \ +%if 0%{?rhel} + --disable-mtpz \ +%endif + %{nil} %make_build %install @@ -106,6 +112,7 @@ chrpath --delete $RPM_BUILD_ROOT{%{_bindir},/usr/lib/udev}/mtp* %changelog * Wed May 26 2021 Ondrej Holy - 1.1.18-4 - Drop redundant devel requires +- Disable MTPZ support in RHEL * Fri Apr 16 2021 Mohan Boddu - 1.1.18-3 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937