]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpm: set TLS priority to @LIBVIRT,SYSTEM on Fedora >= 25
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 4 Aug 2016 07:56:27 +0000 (08:56 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 4 Aug 2016 14:59:24 +0000 (15:59 +0100)
With newest gnutls available in Fedora 25/rawhide, it is
possible to have TLS priority fallbacks, so we can finally
use --tls-priority=@LIBVIRT,SYSTEM

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
libvirt.spec.in

index d3986bbf4660c112ac199f8169805d7db0542e99..a389e88c578dde0d179662cd984f4fdba2894a57 100644 (file)
     %define enable_werror --disable-werror
 %endif
 
-%if 0%{?fedora} >= 21
-    %define tls_priority "@SYSTEM"
+%if 0%{?fedora} >= 25
+    %define tls_priority "@LIBVIRT,SYSTEM"
 %else
-    %define tls_priority "NORMAL"
+    %if 0%{?fedora} >= 21
+        %define tls_priority "@SYSTEM"
+    %else
+        %define tls_priority "NORMAL"
+    %endif
 %endif