summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTae-Young Chung <ty83.chung@samsung.com>2022-07-11 14:45:30 +0900
committerTae-Young Chung <ty83.chung@samsung.com>2022-07-15 13:35:07 +0900
commit9d7707a7fe23b61a045fc7d2f80deaabaf93675d (patch)
tree12e173d072609be1eb865d7f1bbcf175b472c243
parentd3b7e11b444331a33d2b3b5424f7baf379da90d9 (diff)
downloadopencv-tizen_6.0.tar.gz
opencv-tizen_6.0.tar.bz2
opencv-tizen_6.0.zip
[Version] 4.2.0-3 [Issue type] update DA requests to enable gstreamer backend of videoio module Change-Id: I4591da13c6720cc25f7ce4165bc0d8e90bc40433 Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
-rw-r--r--packaging/opencv.spec18
1 files changed, 13 insertions, 5 deletions
diff --git a/packaging/opencv.spec b/packaging/opencv.spec
index e5b4e18a9a..b62b217c7a 100644
--- a/packaging/opencv.spec
+++ b/packaging/opencv.spec
@@ -1,7 +1,13 @@
+%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
@@ -12,9 +18,8 @@ BuildRequires: pkg-config
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
@@ -122,7 +127,6 @@ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-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 \
@@ -195,7 +199,11 @@ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-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 \