+%if 0%{?_with_da_profile}
+%define support_gstreamer 1
+%else
+%define support_gstreamer 0
+%endif
+
Name: opencv
Summary: OpenCV library
Version: 4.2.0
-Release: 2
+Release: 3
Group: Development/Libraries
License: BSD-3-Clause and LGPL-2.1+
Source0: %{name}-%{version}.tar.gz
BuildRequires: libjpeg-turbo-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
-BuildRequires: gstreamer
-BuildRequires: gst-plugins-base
-BuildRequires: gst-plugins-good
+BuildRequires: pkgconfig(gstreamer-1.0)
+BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: libavutil-devel
BuildRequires: libavcodec-devel
BuildRequires: libavformat-devel
-DBUILD_opencv_sfm=OFF \
-DBUILD_opencv_shape=OFF \
-DBUILD_opencv_stereo=OFF \
- -DBUILD_opencv_stitching=OFF \
-DBUILD_opencv_structured_light=OFF \
-DBUILD_opencv_superres=OFF \
-DBUILD_opencv_surface_matching=OFF \
-DWITH_VTK=OFF \
-DWITH_WIN32UI=OFF \
-DWITH_XIMEA=OFF \
+%if 0%{?support_gstreamer}
+ -DWITH_GSTREAMER=ON \
+%else
-DWITH_GSTREAMER=OFF \
+%endif
-DWITH_V4L=ON \
-DWITH_GTK=OFF \
-DWITH_MATLAB=OFF \