From f3242da564b5aeea939e5cf16832c4266c8d07a3 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Fri, 11 Feb 2022 22:40:52 +0000 Subject: [PATCH] Fix %if statements to build on RHEL9 --- openconnect.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openconnect.spec b/openconnect.spec index c5204a2..488166d 100644 --- a/openconnect.spec +++ b/openconnect.spec @@ -69,7 +69,7 @@ Requires: vpnc-script Requires: vpnc %endif -%if 0%{?fedora} >= 30 +%if 0%{?fedora} >= 30 || 0%{?rhel} >= 9 BuildRequires: glibc-langpack-cs %endif %if %{use_gnutls} @@ -140,7 +140,7 @@ rm -f $RPM_BUILD_ROOT/%{_libexecdir}/openconnect/hipreport-android.sh %find_lang %{name} %check -%if 0%{?fedora} || 0%{?fedora} >= 34 +%if 0%{?fedora} >= 34 || 0%{?rhel} >= 9 # auth-pkcs11 fails in Fedora34 for unknown reasons make VERBOSE=1 check XFAIL_TESTS=auth-pkcs11 %else