]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix EPEL builds in COPR
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 3 Oct 2019 12:52:24 +0000 (13:52 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Thu, 3 Oct 2019 14:41:35 +0000 (15:41 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
openconnect.spec.in

index 623b97bc51badc7d2455c7535f01690bcb15a336..1076369c7118a7b9291e22d7d97a94df671e680d 100644 (file)
@@ -21,8 +21,8 @@
 %define use_tokens 1
 %endif
 
-# Fedora has tss2-sys from F29 onwards
-%if 0%{?fedora} >= 29
+# Fedora has tss2-sys from F29 onwards, and RHEL from 8 onwards.
+%if 0%{?fedora} >= 29 || 0%{?epel} >= 8
 %define use_tss2_esys 1
 %else
 %define use_tss2_esys 0
@@ -112,7 +112,9 @@ fi
 %configure     --with-vpnc-script=/etc/vpnc/vpnc-script \
                --disable-dsa-tests \
 %if %{use_gnutls}
+%if 0%{?fedora} || 0%{?rhel} > 8
                --with-default-gnutls-priority="@OPENCONNECT,SYSTEM" \
+%endif
 %else
                --with-openssl --without-openssl-version-check \
 %endif
@@ -129,9 +131,10 @@ rm -f $RPM_BUILD_ROOT/%{_libexecdir}/openconnect/hipreport-android.sh
 %find_lang %{name}
 
 %check
-# Checks fail on EPEL 7 and below for environmental reasons we don't care about
-%if 0%{?fedora} || 0%{?rhel} >= 8
+%if 0%{?fedora} || 0%{?rhel} > 7
 make VERBOSE=1 check
+%else
+make VERBOSE=1 XFAIL_TESTS="auth-nonascii bad_dtls_test" check
 %endif
 
 %ldconfig_scriptlets