From 5f489979f270e1262b0f8bcadecebc88f8149d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Wed, 29 Jul 2020 01:04:56 +0100 Subject: [PATCH] Fix cmake build --- opencv.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/opencv.spec b/opencv.spec index 2246b5a..3e1f989 100644 --- a/opencv.spec +++ b/opencv.spec @@ -361,7 +361,6 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope # ARGS=-V increases output verbosity #ifnarch ppc64 %if %{with tests} -pushd build cp %SOURCE5 . if [ -x /usr/libexec/Xorg ]; then Xorg=/usr/libexec/Xorg @@ -370,8 +369,7 @@ pushd build fi $Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xorg.log -config ./xorg.conf -configdir . :99 & export DISPLAY=:99 - LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build/lib:$LD_LIBARY_PATH make test ARGS=-V || : -popd + LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build/lib:$LD_LIBARY_PATH %ctest || : %endif #endif