public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Enable-gpu-module, rhbz #1236417, thanks to Rich Mattes.
Date: Fri, 28 Aug 2026 13:30:29 GMT	[thread overview]
Message-ID: <178792382937.1.9855351752432825488.rpms-opencv-5d5b589d3783@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/opencv
            Branch : opencv5
            Commit : 5d5b589d37830289c7e026f590460008354088bf
            Author : Sérgio M. Basto <sergio@serjux.com>
            Date   : 2015-07-06T05:45:22+01:00
            Stats  : +46/-8 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/opencv/c/5d5b589d37830289c7e026f590460008354088bf?branch=opencv5

            Log:
            Enable-gpu-module, rhbz #1236417, thanks to Rich Mattes.

- Deleted the global gst1 because it is no longer needed.

---
diff --git a/opencv-2.4.11-listfilterout.patch b/opencv-2.4.11-listfilterout.patch
new file mode 100644
index 0000000..14de6e2
--- /dev/null
+++ b/opencv-2.4.11-listfilterout.patch
@@ -0,0 +1,34 @@
+--- opencv-2.4.11/samples/gpu/CMakeLists.txt.orig	2015-02-25 13:10:31.000000000 +0100
++++ opencv-2.4.11/samples/gpu/CMakeLists.txt	2015-05-19 18:35:11.803554049 +0200
+@@ -4,6 +4,15 @@
+                                      opencv_superres)
+ ocv_check_dependencies(${OPENCV_GPU_SAMPLES_REQUIRED_DEPS})
+ 
++# remove all matching elements from the list
++MACRO(list_filterout lst regex)
++  foreach(item ${${lst}})
++    if(item MATCHES "${regex}")
++      list(REMOVE_ITEM ${lst} "${item}")
++    endif()
++  endforeach()
++ENDMACRO()
++
+ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
+   set(project "gpu")
+   string(TOUPPER "${project}" project_upper)
+@@ -69,15 +78,6 @@
+     endif()
+   ENDMACRO()
+ 
+-  # remove all matching elements from the list
+-  MACRO(list_filterout lst regex)
+-    foreach(item ${${lst}})
+-      if(item MATCHES "${regex}")
+-        list(REMOVE_ITEM ${lst} "${item}")
+-      endif()
+-    endforeach()
+-  ENDMACRO()
+-
+   file(GLOB all_samples RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.cpp)
+ 
+   if(NOT HAVE_OPENGL)

diff --git a/opencv.spec b/opencv.spec
index 46db6e1..2bd2745 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -2,7 +2,7 @@
 
 Name:           opencv
 Version:        2.4.11
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Collection of algorithms for computer vision
 Group:          Development/Libraries
 # This is normal three clause BSD.
@@ -22,10 +22,9 @@ Patch3:         opencv-2.4.9-ts_static.patch
 # fix/simplify cmake config install location (upstreamable)
 # https://bugzilla.redhat.com/1031312
 Patch4:         opencv-2.4.7-cmake_paths.patch
-
-%if 0%{?fedora} > 20
-%global gst1 1
-%endif
+# Fix macro usage of "list_filterout"
+# https://github.com/pld-linux/opencv/commit/dadee4672641272b129410bc097f5c199bb4fb43
+Patch5:         opencv-2.4.11-listfilterout.patch
 
 BuildRequires:  libtool
 BuildRequires:  cmake >= 2.6.3
@@ -36,7 +35,7 @@ BuildRequires:  chrpath
 BuildRequires:  gtk2-devel
 BuildRequires:  libtheora-devel
 BuildRequires:  libvorbis-devel
-%if 0%{?fedora} >= 1
+%if 0%{?fedora}
 %ifnarch s390 s390x
 BuildRequires:  libraw1394-devel
 BuildRequires:  libdc1394-devel
@@ -66,7 +65,7 @@ BuildRequires:  python2-devel
 BuildRequires:  numpy, swig >= 1.3.24
 BuildRequires:  python-sphinx
 %{?_with_ffmpeg:BuildRequires:  ffmpeg-devel >= 0.4.9}
-%if 0%{?gst1}
+%if 0%{?fedora} > 20
 %{!?_without_gstreamer:BuildRequires:  gstreamer1-devel gstreamer1-plugins-base-devel}
 %else
 %{!?_without_gstreamer:BuildRequires:  gstreamer-devel gstreamer-plugins-base-devel}
@@ -125,6 +124,7 @@ This package contains Python bindings for the OpenCV library.
 %patch2 -p1 -b .pillow
 %patch3 -p1 -b .ts_static
 %patch4 -p1 -b .cmake_paths
+%patch5 -p1 -b .listfilterout
 
 # fix dos end of lines
 sed -i 's|\r||g'  samples/c/adaptiveskindetector.cpp
@@ -156,7 +156,6 @@ pushd build
  %{?_without_gstreamer:-DWITH_GSTREAMER=0} \
  %{!?_with_ffmpeg:-DWITH_FFMPEG=0} \
  -DBUILD_opencv_nonfree=0 \
-%{!?_with_cuda:-DBUILD_opencv_gpu=0} \
 %{?_with_cuda: \
  -DCUDA_TOOLKIT_ROOT_DIR=%{?_cuda_topdir} \
  -DCUDA_VERBOSE_BUILD=1 \
@@ -215,6 +214,7 @@ popd
 %{_libdir}/libopencv_calib3d.so.2.4*
 %{_libdir}/libopencv_contrib.so.2.4*
 %{_libdir}/libopencv_features2d.so.2.4*
+%{_libdir}/libopencv_gpu.so.2.4*
 %{_libdir}/libopencv_highgui.so.2.4*
 %{_libdir}/libopencv_legacy.so.2.4*
 %{_libdir}/libopencv_objdetect.so.2.4*
@@ -252,6 +252,10 @@ popd
 %{python2_sitearch}/cv2.so
 
 %changelog
+* Mon Jul 06 2015 Sérgio Basto <sergio@serjux.com> - 2.4.11-4
+- Enable-gpu-module, rhbz #1236417, thanks to Rich Mattes.
+- Deleted the global gst1 because it is no longer needed.
+
 * Thu Jun 25 2015 Sérgio Basto <sergio@serjux.com> - 2.4.11-3
 - Fix license tag
 

                 reply	other threads:[~2026-08-28 13:30 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=178792382937.1.9855351752432825488.rpms-opencv-5d5b589d3783@fedoraproject.org \
    --to=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