Enable aruco module 02/292902/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20230518.164141
authorTae-Young Chung <ty83.chung@samsung.com>
Wed, 17 May 2023 01:18:25 +0000 (10:18 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Wed, 17 May 2023 02:08:53 +0000 (11:08 +0900)
[Version] 4.5.3-6
[Issue type] update

By request from Robot system, aruco module is enabled.
Note that aruco in OpenCV is BSD license even though the latest aruco in
original repository is GPLv3. Refer to https://github.com/opencv/opencv_contrib/issues/2242

Change-Id: I41adb87b120c309726d48e56df4a56fbd21220f4
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
packaging/opencv.spec

index 381d7a4..434f567 100644 (file)
@@ -7,7 +7,7 @@
 Name: opencv
 Summary: OpenCV library
 Version: 4.5.3
-Release: 5
+Release: 6
 Group: Development/Libraries
 License: Apache-2.0 and BSD-3-Clause
 Source0: %{name}-%{version}.tar.gz
@@ -123,7 +123,11 @@ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_opencv_world=OFF \
        -DBUILD_opencv_viz=OFF \
        -DOPENCV_EXTRA_MODULES_PATH=../opencv-contrib/modules \
+%if 0%{?_with_da_profile} || "%{?profile}" == "tv"
        -DBUILD_opencv_aruco=OFF \
+%else
+       -DBUILD_opencv_aruco=ON \
+%endif
        -DBUILD_opencv_bgsegm=OFF \
        -DBUILD_opencv_bioinspired=OFF \
        -DBUILD_opencv_ccalib=OFF \