Make gnutls-hmac.patch RHEL-only

This commit is contained in:
Kalev Lember 2021-02-04 21:10:39 +01:00
parent 2165f81e6b
commit 3a5973966c

View File

@ -7,12 +7,11 @@ License: LGPLv2+
URL: http://www.gtk.org URL: http://www.gtk.org
Source0: http://download.gnome.org/sources/glib/2.67/glib-%{version}.tar.xz Source0: http://download.gnome.org/sources/glib/2.67/glib-%{version}.tar.xz
%if 0%{?rhel}
# Required for RHEL core crypto components policy. # Required for RHEL core crypto components policy.
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903 # https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903
Patch0: gnutls-hmac.patch Patch0: gnutls-hmac.patch
%endif
# For gnutls-hmac.patch
BuildRequires: pkgconfig(gnutls)
BuildRequires: chrpath BuildRequires: chrpath
BuildRequires: gcc BuildRequires: gcc
@ -27,6 +26,10 @@ BuildRequires: libselinux-devel
BuildRequires: meson BuildRequires: meson
# for sys/sdt.h # for sys/sdt.h
BuildRequires: systemtap-sdt-devel BuildRequires: systemtap-sdt-devel
%if 0%{?rhel}
# For gnutls-hmac.patch
BuildRequires: pkgconfig(gnutls)
%endif
BuildRequires: pkgconfig(libelf) BuildRequires: pkgconfig(libelf)
BuildRequires: pkgconfig(libffi) BuildRequires: pkgconfig(libffi)
BuildRequires: pkgconfig(libpcre) BuildRequires: pkgconfig(libpcre)