Enable ximgproc module on DA profile
[platform/upstream/opencv.git] / packaging / opencv.spec
index 300b029..0554047 100644 (file)
@@ -1,7 +1,7 @@
 Name: opencv
 Summary: OpenCV library
 Version: 4.5.0
-Release: 2
+Release: 3
 Group: Development/Libraries
 License: Apache-2.0 and BSD-3-Clause
 Source0: %{name}-%{version}.tar.gz
@@ -156,7 +156,11 @@ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_opencv_videostab=OFF \
        -DBUILD_opencv_viz=OFF \
        -DBUILD_opencv_xfeatures2d=ON \
+%if 0%{?_with_da_profile}
+       -DBUILD_opencv_ximgproc=ON \
+%else
        -DBUILD_opencv_ximgproc=OFF \
+%endif
        -DBUILD_opencv_xobjdetect=OFF \
        -DBUILD_opencv_xphoto=OFF \
        -DBUILD_ZLIB=OFF \