From 3a5973966ccaf23f7d7dbf27070762d74b837bc1 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 4 Feb 2021 21:10:39 +0100 Subject: [PATCH] Make gnutls-hmac.patch RHEL-only --- glib2.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/glib2.spec b/glib2.spec index 4dab614..a46f338 100644 --- a/glib2.spec +++ b/glib2.spec @@ -7,12 +7,11 @@ License: LGPLv2+ URL: http://www.gtk.org Source0: http://download.gnome.org/sources/glib/2.67/glib-%{version}.tar.xz +%if 0%{?rhel} # Required for RHEL core crypto components policy. # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903 Patch0: gnutls-hmac.patch - -# For gnutls-hmac.patch -BuildRequires: pkgconfig(gnutls) +%endif BuildRequires: chrpath BuildRequires: gcc @@ -27,6 +26,10 @@ BuildRequires: libselinux-devel BuildRequires: meson # for sys/sdt.h BuildRequires: systemtap-sdt-devel +%if 0%{?rhel} +# For gnutls-hmac.patch +BuildRequires: pkgconfig(gnutls) +%endif BuildRequires: pkgconfig(libelf) BuildRequires: pkgconfig(libffi) BuildRequires: pkgconfig(libpcre)