public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Enable VA
@ 2026-08-28 13:30 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-28 13:30 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/opencv
            Branch : opencv5
            Commit : 0083d782bb8c66ce2c38e0e2cd2d713a18b9832d
            Author : Sérgio M. Basto <sergio@serjux.com>
            Date   : 2018-03-08T19:47:33+00:00
            Stats  : +16/-29 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/opencv/c/0083d782bb8c66ce2c38e0e2cd2d713a18b9832d?branch=opencv5

            Log:
            Enable VA
Do not use -f on rm because it silences errors
Opencv sub-package don't need ldconfig because don't have any so

---
diff --git a/opencv-3.2.0-cmake_paths.patch b/opencv-3.2.0-cmake_paths.patch
deleted file mode 100644
index b5c8799..0000000
--- a/opencv-3.2.0-cmake_paths.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff -urNp old/CMakeLists.txt new/CMakeLists.txt
---- old/CMakeLists.txt	2016-12-23 13:54:44.000000000 +0100
-+++ new/CMakeLists.txt	2017-02-27 08:56:04.504933013 +0100
-@@ -402,12 +402,7 @@ else()
-     ocv_update(OPENCV_OTHER_INSTALL_PATH   share/OpenCV)
- 
-     if(NOT DEFINED OPENCV_CONFIG_INSTALL_PATH)
--      math(EXPR SIZEOF_VOID_P_BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
--      if(LIB_SUFFIX AND NOT SIZEOF_VOID_P_BITS EQUAL LIB_SUFFIX)
--        ocv_update(OPENCV_CONFIG_INSTALL_PATH lib${LIB_SUFFIX}/cmake/opencv)
--      else()
--        ocv_update(OPENCV_CONFIG_INSTALL_PATH share/OpenCV)
--      endif()
-+      ocv_update(OPENCV_CONFIG_INSTALL_PATH lib${LIB_SUFFIX}/OpenCV)
-     endif()
-   endif()
-   ocv_update(OPENCV_INCLUDE_INSTALL_PATH "include")

diff --git a/opencv.spec b/opencv.spec
index 603b1b0..41e0570 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -34,7 +34,7 @@
 %bcond_with     libmfx
 %endif
 %bcond_without  clp
-%bcond_with  va
+%bcond_without  va
 
 %global srcname opencv
 %global abiver  3.4
@@ -47,7 +47,7 @@
 
 Name:           opencv
 Version:        3.4.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Collection of algorithms for computer vision
 # This is normal three clause BSD.
 License:        BSD
@@ -62,7 +62,7 @@ Source1:        %{name}_contrib-clean-%{version}.tar.gz
 # fix/simplify cmake config install location (upstreamable)
 # https://bugzilla.redhat.com/1031312
 Patch1:         opencv-3.4.1-cmake_paths.patch
-Patch2:         opencv-3.4.1-cmake_va_intel_fix.patch 
+Patch2:         opencv-3.4.1-cmake_va_intel_fix.patch
 BuildRequires:  libtool
 BuildRequires:  cmake >= 2.6.3
 BuildRequires:  chrpath
@@ -100,8 +100,6 @@ BuildRequires:  pylint
 BuildRequires:  python2-numpy
 BuildRequires:  python3-numpy
 BuildRequires:  swig >= 1.3.24
-# opencv now uses doxygen
-#BuildRequires:  python2-sphinx
 %{?with_ffmpeg:BuildRequires:  ffmpeg-devel >= 0.4.9}
 %if 0%{?fedora} || 0%{?rhel} > 7
 %{?with_gstreamer:BuildRequires:  gstreamer1-devel gstreamer1-plugins-base-devel}
@@ -225,14 +223,16 @@ to provide decent performance and stability.
 %prep
 %setup -q -a1
 # we don't use pre-built contribs
-rm -rf 3rdparty/
+rm -r 3rdparty/
 # missing dependecies for dnn module in Fedora (protobuf-cpp)
-rm -rf modules/dnn/
+rm -r modules/dnn/
+
 %patch1 -p1 -b .cmake_paths
-%patch2 -p1
+%patch2 -p1 -b .va_intel
+
 pushd %{name}_contrib-%{version}
 # missing dependecies for dnn_modern module in Fedora (tiny-dnn)
-rm -rf modules/dnn_modern/
+rm -r modules/dnn_modern/
 popd
 
 # fix dos end of lines
@@ -271,8 +271,8 @@ pushd build
  } \
  %{?with_openni: -DWITH_OPENNI=ON } \
  %{!?with_xine: -DWITH_XINE=OFF } \
- -DBUILD_EXAMPLES=ON \
  -DBUILD_DOCS=ON \
+ -DBUILD_EXAMPLES=ON \
  -DINSTALL_C_EXAMPLES=ON \
  -DINSTALL_PYTHON_EXAMPLES=ON \
  -DENABLE_PYLINT=ON \
@@ -312,10 +312,9 @@ popd
 
 %ldconfig_scriptlets core
 
-%ldconfig_scriptlets
-
 %ldconfig_scriptlets contrib
 
+
 %files
 %doc README.md
 %license LICENSE
@@ -395,6 +394,11 @@ popd
 %{_libdir}/libopencv_xphoto.so.%{abiver}*
 
 %changelog
+* Thu Mar 08 2018 Sérgio Basto <sergio@serjux.com> - 3.4.1-2
+- Enable VA
+- Do not use -f on rm because it silences errors
+- Opencv sub-package don't need ldconfig because don't have any so
+
 * Thu Mar 01 2018 Josef Ridky <jridky@redhat.com> - 3.4.1-1
 - Spec clean up (remove Group tag, add ldconfig scriptlets, escape macros in comments)
 - Remove unused patch

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-28 13:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:30 [rpms/opencv] opencv5: Enable VA 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox