diff --git a/opencv.spec b/opencv.spec index 6df5d6e52363b9f1fc52c537704a9334f15bcd02..aceec9153a2a41906f618a9b932984cef699b51a 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