public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Enable GAPI
Date: Fri, 28 Aug 2026 13:31:27 GMT	[thread overview]
Message-ID: <178792388767.1.880918199473621124.rpms-opencv-c1b0305054cd@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/opencv
Branch : opencv5
Commit : c1b0305054cd6211d75a1363c3f15823bbfaaae9
Author : Nicolas Chauvet <kwizart@gmail.com>
Date   : 2020-01-27T20:03:40+01:00
Stats  : +17/-7 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/opencv/c/c1b0305054cd6211d75a1363c3f15823bbfaaae9?branch=opencv5

Log:
Enable GAPI

---
diff --git a/opencv.spec b/opencv.spec
index 0328d5c..2cfce38 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -73,6 +73,7 @@ URL:            https://opencv.org
 Source0:        %{name}-clean-%{version}.tar.gz
 Source1:        %{name}_contrib-clean-%{version}.tar.gz
 Source3:        face_landmark_model.dat.xz
+Source4:        b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
 
 Patch0:         opencv-4.1.0-install_3rdparty_licenses.patch
 
@@ -240,17 +241,25 @@ to provide decent performance and stability.
 
 %prep
 %setup -q -a1
+%if 1
 # we don't use pre-built contribs except quirc
-mv 3rdparty/quirc/ .
-rm -r 3rdparty/
-mkdir 3rdparty/
-mv quirc/ 3rdparty/
+pushd 3rdparty
+shopt -s extglob
+rm -r !(openexr|openvx|quirc)
+shopt -u extglob
+popd &>/dev/null
+%endif
 
 %patch0 -p1 -b .install_3rdparty_licenses
 
 pushd %{name}_contrib-%{version}
 popd
 
+# Install ADE, needed for opencv_gapi
+mkdir -p .cache/ade
+install -pm 0644 %{SOURCE4} .cache/ade/
+
+
 %build
 # enabled by default if libraries are presents at build time:
 # GTK, GSTREAMER, 1394, V4L, eigen3
@@ -273,6 +282,7 @@ popd
  -DWITH_OPENGL=ON \
  -DOpenGL_GL_PREFERENCE=GLVND \
  -DWITH_GDAL=ON \
+ -DWITH_OPENEXR=ON \
  -DWITH_UNICAP=ON \
  -DCMAKE_SKIP_RPATH=ON \
  -DWITH_CAROTENE=OFF \
@@ -297,9 +307,9 @@ popd
  %{!?with_xine: -DWITH_XINE=OFF } \
  -DBUILD_DOCS=ON \
  -DBUILD_EXAMPLES=ON \
+ -DBUILD_opencv_python2=OFF \
  -DINSTALL_C_EXAMPLES=ON \
  -DINSTALL_PYTHON_EXAMPLES=ON \
- -DPYTHON2_EXECUTABLE=false \
  -DPYTHON3_EXECUTABLE=%{__python3} \
  -DPYTHON3_PACKAGES_PATH=%{python3_sitearch} \
  -DENABLE_PYLINT=ON \
@@ -379,6 +389,7 @@ popd
 %{_libdir}/libopencv_cvv.so.%{abiver}*
 %{_libdir}/libopencv_features2d.so.%{abiver}*
 %{_libdir}/libopencv_flann.so.%{abiver}*
+%{_libdir}/libopencv_gapi.so.%{abiver}*
 %{_libdir}/libopencv_hfs.so.%{abiver}*
 %{_libdir}/libopencv_highgui.so.%{abiver}*
 %{_libdir}/libopencv_imgcodecs.so.%{abiver}*
@@ -409,7 +420,7 @@ popd
 %{_datadir}/opencv4/samples
 
 %files -n python3-opencv
-%{_bindir}/setup_vars_opencv4.sh
+%exclude %{_bindir}/setup_vars_opencv4.sh
 %{python3_sitearch}/cv2.cpython-3*.so
 
 %if %{with java}
@@ -426,7 +437,6 @@ popd
 %{_libdir}/libopencv_bioinspired.so.%{abiver}*
 %{_libdir}/libopencv_calib3d.so.%{abiver}*
 %{_libdir}/libopencv_ccalib.so.%{abiver}*
-#Module opencv_datasets disabled because opencv_text dependency can't be resolved!
 %{_libdir}/libopencv_datasets.so.%{abiver}*
 %{_libdir}/libopencv_dnn.so.%{abiver}*
 %{_libdir}/libopencv_dnn_objdetect.so.%{abiver}*

                 reply	other threads:[~2026-08-28 13:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178792388767.1.880918199473621124.rpms-opencv-c1b0305054cd@fedoraproject.org \
    --to=kwizart@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox