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)