From add0af2a88eff3b1483c3bc0672790b0bf68a725 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Wed, 31 Mar 2021 15:12:29 +0200 Subject: [PATCH] Disable tests for now --- opencv.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opencv.spec b/opencv.spec index 05df7f8..fda3980 100644 --- a/opencv.spec +++ b/opencv.spec @@ -1,5 +1,11 @@ %undefine __cmake_in_source_build +# Tests are disabled with gcc-11 +# See https://bugzilla.redhat.com/1944536 +%if 0%{?fedora} > 33 +%bcond_with tests +%else %bcond_without tests +%endif %bcond_with ffmpeg %bcond_without gstreamer %bcond_with eigen2 @@ -280,6 +286,9 @@ install -pm 0644 %{SOURCE4} .cache/ade/ -DWITH_ITT=OFF \ -DWITH_QT=ON \ -DWITH_OPENGL=ON \ +%if ! %{with tests} + -BUILD_TESTS=OFF \ +%endif -DOpenGL_GL_PREFERENCE=GLVND \ -DWITH_GDAL=ON \ -DWITH_OPENEXR=ON \