From 711eda762477ce444bd9d84e4836d5532ea1578e Mon Sep 17 00:00:00 2001 From: doupengda Date: Tue, 12 Dec 2023 11:29:15 +0800 Subject: [PATCH] Remove the loongarch64 testing section --- opencv.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/opencv.spec b/opencv.spec index 6df5d6e..aceec91 100644 --- a/opencv.spec +++ b/opencv.spec @@ -1,6 +1,6 @@ Name: opencv Version: 4.5.2 -Release: 6 +Release: 7 Summary: OpenCV means IntelĀ® Open Source Computer Vision Library. License: Apache-2.0 URL: https://github.com/opencv/opencv @@ -43,7 +43,11 @@ cmake ../../ -DCMAKE_BUILD_TYPE=Release\ -DBUILD_JPEG=ON\ -DBUILD_PNG=ON\ -DBUILD_OPENEXR=ON\ +%ifarch loongarch64 + -DBUILD_TESTS=OFF\ +%else -DBUILD_TESTS=ON\ +%endif -DBUILD_PERF_TESTS=OFF\ -DBUILD_opencv_apps=OFF\ -DBUILD_opencv_python3=ON\ @@ -57,7 +61,11 @@ cmake ../../ -DCMAKE_BUILD_TYPE=Release\ -DBUILD_SHARED_LIBS=ON\ -DBUILD_EXAMPLES=ON\ -DOPENCV_TEST_DATA_PATH=%_builddir/%{name}-%{version}/opencv_extra-%{version}/testdata\ +%ifarch loongarch64 + -DINSTALL_TESTS=OFF\ +%else -DINSTALL_TESTS=ON\ +%endif -DPYTHON3_EXECUTABLE=$(which python3)\ -DPYTHON_EXECUTABLE=$(which python3)\ -DPYTHON_DEFAULT_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")\ @@ -89,6 +97,9 @@ make install DESTDIR=%{buildroot} %{python3_sitelib}/cv2/* %changelog +* Tue Dec 12 2023 doupengda - 4.5.2-7 +- Remove the loongarch64 testing section + * Thu Jan 28 2022 douyan - 4.5.2-6 - add pkgconfig file -- Gitee