From ce3d98d88b831389af329e817b7af752cf73a962 Mon Sep 17 00:00:00 2001 From: Ondrej Holy Date: Wed, 26 May 2021 09:34:23 +0200 Subject: [PATCH] Disable MTPZ support in RHEL MTPZ is a proprietary protocol and its implementation is based on custom crypto, which is not desired for RHEL. The Zune service looks dead anyway. Resolves: #1976905 (cherry picked from Fedora commit 960cbc59512507629774bef1334301bc7a4d61a2) --- libmtp.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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