forked from pool/opencv
Compare commits
146 Commits
Author | SHA256 | Date | |
---|---|---|---|
088d8f3472 | |||
|
49eb979600 | ||
2be0c7f156 | |||
78eb4d388d | |||
b14ecd3c48 | |||
206a352cdd | |||
3b3f273b1f | |||
8bc19f933a | |||
cfaea83045 | |||
|
755c6506b9 | ||
cb15227c84 | |||
651b80e0ac | |||
eace3eb8c6 | |||
1078d9bfd3 | |||
2e61cba436 | |||
b3baa11173 | |||
0057ad2ca9 | |||
09da95e262 | |||
12481c31d5 | |||
09c5d4f266 | |||
a9aabac9dc | |||
f9c03a87bc | |||
a8d10ba97f | |||
453fda3912 | |||
482f963f07 | |||
b1d11cb8d6 | |||
bb4e20ef8d | |||
e20cd82f32 | |||
acce66902f | |||
70a5e1ec8b | |||
649fdbec90 | |||
87523c3ce8 | |||
59c50c197d | |||
|
216a513cba | ||
9273cfe58d | |||
52a1d28937 | |||
df630d6761 | |||
09034cc4e1 | |||
f34907bc6d | |||
22e746d18f | |||
d87faaa475 | |||
4a5ef229fa | |||
73943824f5 | |||
275e936f14 | |||
7f094b11d7 | |||
0e74ac0496 | |||
2eecadde4d | |||
de974ff699 | |||
7899669f0a | |||
03699724e2 | |||
cfb913cc57 | |||
6f6daad73c | |||
7780264f49 | |||
8b088e4f32 | |||
8c90e393f3 | |||
bbdea65764 | |||
3624f23892 | |||
66dd10f19a | |||
077ded527d | |||
90bce27384 | |||
125187cca0 | |||
3ad89a3c7d | |||
c4ac6380b8 | |||
7a7a69fb46 | |||
b1aa27b4ae | |||
99b89d3e13 | |||
1bb8ac6b29 | |||
706c1a97a9 | |||
ea8d7076b8 | |||
9b0034c185 | |||
d08e234098 | |||
8fd005ea3b | |||
f689e1bcc9 | |||
c6a279d079 | |||
d59d5f46e2 | |||
cf01d19659 | |||
aaeb4778a3 | |||
75c47250f2 | |||
c69fdc3a1b | |||
2b48309ba0 | |||
93271feb41 | |||
af73cd9417 | |||
e8697038be | |||
96e8562f65 | |||
c9f18c22c1 | |||
d0704134e2 | |||
314d715c2b | |||
42cb4f5adf | |||
9686033d32 | |||
acc57aecda | |||
9543eeb4cc | |||
60f07432b1 | |||
d4b1601df7 | |||
c612742431 | |||
d986758c9b | |||
2f74eb90aa | |||
e87f0f1d1f | |||
|
b76f285203 | ||
b0a3d81b8f | |||
|
ade761eb52 | ||
dd6910bce1 | |||
|
e027c8208c | ||
|
ad5cc57973 | ||
|
bfdc32986d | ||
|
97bb18f305 | ||
|
13a9870924 | ||
|
2b1552364b | ||
|
ceb3478124 | ||
|
6ca799f387 | ||
|
dc5873b4ca | ||
|
adfae35c04 | ||
|
257dc063ce | ||
|
5d07339535 | ||
|
47aa691da9 | ||
|
bbb57e2559 | ||
|
fb47706d52 | ||
|
72fdf0f2a0 | ||
|
ca3e92bd56 | ||
|
400d48dd10 | ||
|
3a8c3635ad | ||
|
6d2b25a59f | ||
|
b7f02a04a1 | ||
|
9a768f8315 | ||
|
569dc5ae3d | ||
|
50f0babaa3 | ||
|
13ccc5535e | ||
|
ca20cb32d4 | ||
|
d5f10eed26 | ||
|
b16a08de19 | ||
|
ee98902de4 | ||
|
466f78fd71 | ||
|
28d69f5c73 | ||
|
390780546f | ||
8eba5ee96d | |||
e96c4df78c | |||
|
ecbd3ac658 | ||
|
b77bb74311 | ||
|
a9d25cc58c | ||
|
c6b54a46a1 | ||
|
1ac60eb220 | ||
|
1926012812 | ||
|
96f028ba96 | ||
|
dc75279b36 | ||
|
5519bfb9a5 | ||
|
031b9a8c12 | ||
|
e880a9095f |
4
_multibuild
Normal file
4
_multibuild
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>qt6</package>
|
||||||
|
<package>nogui</package>
|
||||||
|
</multibuild>
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b2171af5be6b26f7a06b1229948bbb2bdaa74fcf5cd097e0af6378fce50a6eb9
|
|
||||||
size 94993429
|
|
3
opencv-4.12.0.tar.gz
Normal file
3
opencv-4.12.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:44c106d5bb47efec04e531fd93008b3fcd1d27138985c5baf4eafac0e1ec9e9d
|
||||||
|
size 95254890
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ddf76f9dffd322c7c3cb1f721d0887f62d747b82059342213138dc190f28bc6c
|
|
||||||
size 92788647
|
|
21
opencv-qt6_9-highgui-linking-test.patch
Normal file
21
opencv-qt6_9-highgui-linking-test.patch
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
---
|
||||||
|
modules/highgui/CMakeLists.txt | 6 +++++-
|
||||||
|
1 file changed, 5 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
Index: opencv-4.11.0/modules/highgui/CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- opencv-4.11.0.orig/modules/highgui/CMakeLists.txt
|
||||||
|
+++ opencv-4.11.0/modules/highgui/CMakeLists.txt
|
||||||
|
@@ -125,7 +125,11 @@ elseif(HAVE_QT)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
foreach(dt_dep ${qt_deps})
|
||||||
|
- add_definitions(${Qt${QT_VERSION_MAJOR}${dt_dep}_DEFINITIONS})
|
||||||
|
+ if((QT_VERSION_MAJOR GREATER 5) AND (QT_VERSION_MINOR GREATER 8))
|
||||||
|
+ link_libraries(${Qt${QT_VERSION_MAJOR}${dt_dep}})
|
||||||
|
+ else()
|
||||||
|
+ add_definitions(${Qt${QT_VERSION_MAJOR}${dt_dep}_DEFINITIONS})
|
||||||
|
+ endif()
|
||||||
|
include_directories(${Qt${QT_VERSION_MAJOR}${dt_dep}_INCLUDE_DIRS})
|
||||||
|
list(APPEND HIGHGUI_LIBRARIES ${Qt${QT_VERSION_MAJOR}${dt_dep}_LIBRARIES})
|
||||||
|
endforeach()
|
3
opencv-rpmlintrc
Normal file
3
opencv-rpmlintrc
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
addFilter("opencv.*SUSE_Backports_policy-SLE_conflict")
|
||||||
|
addFilter("libopencv_highgui.*-qt6.*: E: shlib-policy-name-error")
|
||||||
|
addFilter("libopencv_highgui.*-gtk3.*: E: shlib-policy-name-error")
|
190
opencv.changes
190
opencv.changes
@@ -1,3 +1,193 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 9 07:04:51 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 4.12.0:
|
||||||
|
* Long list of changes, see
|
||||||
|
<https://github.com/opencv/opencv/wiki/OpenCV-Change-Logs#version4120>.
|
||||||
|
- Drop use of explicit so version from opencv-rpmlintrc filters.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 7 09:53:57 UTC 2025 - Simon Lees <sflees@suse.de>
|
||||||
|
|
||||||
|
- export CMAKE_POLICY_VERSION_MINIMUM="3.5" to ignore cmakes
|
||||||
|
minimum version warnings
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 9 17:59:51 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Add opencv-qt6_9-highgui-linking-test.patch: Fix highgui module
|
||||||
|
linkage with Qt 6.9 libraries [gh#opencv/opencv#27223,
|
||||||
|
QTBUG-134774].
|
||||||
|
- Build with ninja; add BuildRequires: ninja.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 3 07:55:55 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Make devel package conflicts between different flavors explicit.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Feb 26 14:15:46 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||||
|
|
||||||
|
- Split into multiple flavors to support switch to Qt6 for
|
||||||
|
openSUSE TW and Leap 16+:
|
||||||
|
* Main (no-name) flavor builds with Qt5.
|
||||||
|
* qt6 flavor builds with Qt6
|
||||||
|
* nogui flavor builds without Qt support.
|
||||||
|
- Use ldconfig_scriptlets macro for post(un) scripts.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 18 09:20:42 UTC 2025 - Stefan Brüns <stefan.bruens@rwth-aachen.de>
|
||||||
|
|
||||||
|
- update to 4.11.0, highlights below, for details check
|
||||||
|
https://github.com/opencv/opencv/wiki/OpenCV-Change-Logs#version4110
|
||||||
|
* Generic:
|
||||||
|
+ Internal C API cleanup and back-ports for 5.x.
|
||||||
|
+ RISC-V/AArch64: disable CPU features detection
|
||||||
|
+ Support C++20 standard
|
||||||
|
+ algoHint parameter for some functions to allow potentially
|
||||||
|
faster, but not bit-exact implementation
|
||||||
|
* Core Module:
|
||||||
|
+ Added int64 data type support for FileStorage
|
||||||
|
+ Fixed invalid attribute value handling in FileStorage
|
||||||
|
+ Extended LUT for FP16 support
|
||||||
|
+ Fixed stdDev tail filling with zeros with HAL in meanStdDev
|
||||||
|
+ Set and check allocator pointer for all cv::Mat instances
|
||||||
|
+ Improved accuracy of Rect::contains
|
||||||
|
+ Fixed result offset in minMaxIdx with HAL in some cases
|
||||||
|
+ Replaced C++ operators with wrapper functions on universal
|
||||||
|
intrinsics backends
|
||||||
|
+ Extended cv::TickMeter
|
||||||
|
+ Rewrote OpenCL-OpenGL-interop device discovery routine
|
||||||
|
without extensions and with Apple support
|
||||||
|
+ Marked cv::Mat(Mat&&) as noexcept
|
||||||
|
+ Multiple Eigen library interop improvements
|
||||||
|
* Calib3d module:
|
||||||
|
+ Multiple chessboard detector improvements
|
||||||
|
+ Enabled checkerboard detection with a central / corner
|
||||||
|
marker on a black tile
|
||||||
|
+ Fixed Rodrigues CV_32F and CV_64F type mismatch in
|
||||||
|
projectPoints
|
||||||
|
+ Added fisheye::distort with non-identity projection matrix
|
||||||
|
+ SQPnP solver updates
|
||||||
|
+ Fixed vector access in USAC
|
||||||
|
* Imgproc Module:
|
||||||
|
+ Added a new function that approximates the polygon bounding
|
||||||
|
a convex hull with a certain number of sides
|
||||||
|
+ Added Weighted Hough Transform
|
||||||
|
+ Fixed bug in contours approximation
|
||||||
|
+ Fixed bug in divSpectrums
|
||||||
|
+ Fixed result buffer overflow in intersectConvexConvex_ for
|
||||||
|
non-convex input
|
||||||
|
+ Added flag to GaussianBlur for faster but not bit-exact
|
||||||
|
implementation
|
||||||
|
+ Added flag to cvtColor for faster but not bit-exact
|
||||||
|
implementation
|
||||||
|
+ Fixed fillPoly drawing over boundaries
|
||||||
|
* DNN Module:
|
||||||
|
+ [GSoC] Blockwise quantization support
|
||||||
|
+ Faster implementation of blobFromImages for cpu nchw output
|
||||||
|
+ DNN optimization with RISC-V RVV
|
||||||
|
+ Added DepthToSpace and SpaceToDepth
|
||||||
|
+ Yolo v10 support and related samples
|
||||||
|
+ Parallel implementation of nary elementwise operations
|
||||||
|
+ Support for Unflatten operation required by Attention layer
|
||||||
|
+ Erf and GELU layers optimization
|
||||||
|
+ Activations optimization with v_exp
|
||||||
|
+ Fixed compilation errors with different OpenVINO versions
|
||||||
|
+ Fixed matmul crash with CuDNN
|
||||||
|
+ Fixed CuDNN runtime version check for CuDNN 9+
|
||||||
|
+ Added ONNX TopK
|
||||||
|
+ Fixed buffer allocation in einsum (fixed random crash on
|
||||||
|
32-bit platforms)
|
||||||
|
+ Added Leaky RELU support for TFLite
|
||||||
|
+ Switched to run-time dispatcher for Winograd
|
||||||
|
* Objdetect module:
|
||||||
|
+ Properly check markers when none are provided
|
||||||
|
+ Fixed invalid vector access in QR decoder and encoder
|
||||||
|
* Highgui module:
|
||||||
|
+ Added new Highgui backend on top of Framebuffer
|
||||||
|
+ Fixed HWND_TOP window handling on Windows
|
||||||
|
+ [GSoC] Added OpenGL support with GTK3
|
||||||
|
+ Several OpenGL related fixed on Linux
|
||||||
|
+ Fixed leak in cvGetWindowRect_COCOA
|
||||||
|
* Imgcodecs module:
|
||||||
|
+ [GSoC] New API for Animations with WEBP, AVIF and Animated
|
||||||
|
PNG support
|
||||||
|
+ [GSoC] Add GIF decode and encode for imgcodecs
|
||||||
|
+ Added experimental JPEG XL (jxl) codec support
|
||||||
|
+ Initial RGB layout support in imread and imdecode
|
||||||
|
+ Fixed imread output type for some cases
|
||||||
|
+ Fixed file descriptor leak in HDR decoder
|
||||||
|
+ Fixed corrupted JPEG decoding
|
||||||
|
+ Improved error handling in image codecs
|
||||||
|
+ Fixed Bayer2Gray SIMD for U8
|
||||||
|
+ Avoid uninitialized value read in AVIF
|
||||||
|
+ Implemented imencodemulti()
|
||||||
|
+ Fixed compatibility with different OpenEXR versions
|
||||||
|
* VideoIO module:
|
||||||
|
+ Added VideoCapture constructor for in-memory data stream
|
||||||
|
+ Fixed bugs in native video encoding on Android
|
||||||
|
+ Added BGRA streams support in GStreamer back-end
|
||||||
|
+ Updated materials for Orbbec cameras support
|
||||||
|
+ Fixed cv::VideoWriter with FFmpeg timestamps encapsulation
|
||||||
|
+ Fixed memory leak in Dshow back-end
|
||||||
|
+ Fixed V4L NV12 color conversion
|
||||||
|
+ Android native camera feature enhancements
|
||||||
|
+ AndroidMediaNdkCapture pixel format enhancement
|
||||||
|
+ Fixed VideoCapture fails to read single image with digits
|
||||||
|
in name
|
||||||
|
+ Fixed writer setProperty with FFmpeg plugin
|
||||||
|
* Video module:
|
||||||
|
+ Fixed VitTrack in the case where crop size grows until
|
||||||
|
out-of-memory when the input is black
|
||||||
|
* Features2d:
|
||||||
|
+ Fixed out of bounds access in SIFT
|
||||||
|
* G-API module:
|
||||||
|
+ Fixed input buffer read overflow in vectorized G-API
|
||||||
|
convertTo implementation
|
||||||
|
+ Extended G-API onnx::Params to pass arbitrary session
|
||||||
|
options
|
||||||
|
+ Handling I32/I64 data types in G-API ONNX back-end
|
||||||
|
+ G-API: Introduce level optimization flag for ONNXRT backend
|
||||||
|
* Optimizations:
|
||||||
|
+ New FastCV-based HAL for Qualcomm SoCs (-DWITH_FASTCV=ON
|
||||||
|
CMake option)
|
||||||
|
+ Added own vectorized version of v_expv_log, v_erf, v_sin
|
||||||
|
and v_cos
|
||||||
|
+ KleidiCV HAL for ARM updated to KleidiCV 0.3
|
||||||
|
+ Initial version of HAL for RISC-V RVV 1.0 and RISC-V RVV
|
||||||
|
0.7.1 extensions
|
||||||
|
+ Used LMUL=2 in the RISC-V Vector (RVV) backend of Universal
|
||||||
|
Intrinsic.
|
||||||
|
+ More functions in NDSRVP HAL for RISC-V P extension
|
||||||
|
+ Updated built-in IPP to version 2021.12. Fixed build issues
|
||||||
|
with old and new Intel IPP layouts
|
||||||
|
* Platforms:
|
||||||
|
+ HWAsan support on Android
|
||||||
|
+ Several CUDA fixes for old GPUs without FP16 support
|
||||||
|
+ Added getStdAllocator() to cv::cuda::GpuMat
|
||||||
|
+ Updated NPP calls to use the new NppStreamContext API if
|
||||||
|
available
|
||||||
|
+ More convenient GpuMatND constructor
|
||||||
|
+ Added run-time GPU check to haveCUDA
|
||||||
|
+ Add support for QNX
|
||||||
|
* OpenCV.js
|
||||||
|
+ Extended API white-list and added more tests
|
||||||
|
+ Split white-list per module. Added opportunity to cover
|
||||||
|
opencv_contrib modules
|
||||||
|
+ Fix incorrect string format in js build script
|
||||||
|
+ Emscripten build fixes with SIMD intrinsics
|
||||||
|
+ Added more public types for USAC support
|
||||||
|
+ Rename Mat::clone binding because it is used in Emscripten
|
||||||
|
+ Fixed C preprocessor stringification
|
||||||
|
+ Fix enum generation issues
|
||||||
|
+ Multiple test improvements
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 23 16:54:49 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- fix build with python 3.13 (needs python-setuptools)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 9 01:48:55 UTC 2024 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
Sun Jun 9 01:48:55 UTC 2024 - Alessandro de Oliveira Faria <cabelo@opensuse.org>
|
||||||
|
|
||||||
|
285
opencv.spec
285
opencv.spec
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package opencv
|
# spec file for package opencv
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,40 +16,72 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
|
||||||
|
%define pname opencv
|
||||||
|
|
||||||
|
%if "%flavor" == ""
|
||||||
|
%define qt_ver 5
|
||||||
|
%bcond_without gui
|
||||||
|
# Only build pythons for main flavor
|
||||||
|
%bcond_without python3
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%flavor" == "qt6"
|
||||||
|
%define qt_ver 6
|
||||||
|
%bcond_without gui
|
||||||
|
%bcond_with python3
|
||||||
|
%define psuffix -%{flavor}
|
||||||
|
%if 0%{?suse_version} < 1600
|
||||||
|
ExclusiveArch: do_not_build
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if "%flavor" == "nogui"
|
||||||
|
%bcond_with gui
|
||||||
|
%bcond_with python3
|
||||||
|
%define psuffix -%{flavor}
|
||||||
|
%endif
|
||||||
|
|
||||||
# Build failure with LTO enabled on ppc64le boo#1146096
|
# Build failure with LTO enabled on ppc64le boo#1146096
|
||||||
%ifarch ppc64le
|
%ifarch ppc64le
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%define libname lib%{name}
|
%define libname lib%{pname}
|
||||||
%define soname 410
|
%define soname 412
|
||||||
# disabled by default as many fail
|
# disabled by default as many fail
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
%bcond_without gapi
|
%bcond_without gapi
|
||||||
%bcond_without ffmpeg
|
%bcond_without ffmpeg
|
||||||
%bcond_without python3
|
|
||||||
%bcond_without openblas
|
%bcond_without openblas
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
# Enable python311 for SLE15 in addition to the regular python3 which is python 3.6
|
# Enable python311 for SLE15 in addition to the regular python3 which is python 3.6
|
||||||
%{?sle15allpythons}
|
%{?sle15allpythons}
|
||||||
%endif
|
%endif
|
||||||
|
%define __builder ninja
|
||||||
|
|
||||||
Name: opencv
|
Name: %{pname}%{psuffix}
|
||||||
Version: 4.10.0
|
Version: 4.12.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Collection of algorithms for computer vision
|
Summary: Collection of algorithms for computer vision
|
||||||
# GPL-2.0 AND Apache-2.0 files are in 3rdparty/ittnotify which is not build
|
# GPL-2.0 AND Apache-2.0 files are in 3rdparty/ittnotify which is not build
|
||||||
License: BSD-3-Clause AND GPL-2.0-only AND Apache-2.0
|
License: BSD-3-Clause AND GPL-2.0-only AND Apache-2.0
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
URL: https://opencv.org/
|
URL: https://opencv.org/
|
||||||
Source0: https://github.com/opencv/opencv/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/opencv/opencv/archive/%{version}.tar.gz#/%{pname}-%{version}.tar.gz
|
||||||
# Several modules from the opencv_contrib package
|
# Several modules from the opencv_contrib package
|
||||||
Source1: https://github.com/opencv/opencv_contrib/archive/%{version}.tar.gz#/opencv_contrib-%{version}.tar.gz
|
Source1: https://github.com/opencv/opencv_contrib/archive/%{version}.tar.gz#/opencv_contrib-%{version}.tar.gz
|
||||||
|
Source99: opencv-rpmlintrc
|
||||||
|
# PATCH-FIX-UPSTREAM opencv-qt6_9-highgui-linking-test.patch gh#opencv/opencv#27223 badshah400@gmail.com -- Fix highgui module linking against Qt 6.9; patch sent upstream
|
||||||
|
Patch0: opencv-qt6_9-highgui-linking-test.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: libeigen3-devel
|
BuildRequires: libeigen3-devel
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: memory-constraints
|
BuildRequires: memory-constraints
|
||||||
|
BuildRequires: ninja
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
# OpenJPEGTargets.cmake erroneously requires the binaries
|
# OpenJPEGTargets.cmake erroneously requires the binaries
|
||||||
BuildRequires: openjpeg2
|
BuildRequires: openjpeg2
|
||||||
@@ -68,8 +100,12 @@ BuildRequires: pkgconfig(libv4lconvert)
|
|||||||
BuildRequires: pkgconfig(libva)
|
BuildRequires: pkgconfig(libva)
|
||||||
BuildRequires: pkgconfig(libwebp)
|
BuildRequires: pkgconfig(libwebp)
|
||||||
BuildRequires: pkgconfig(zlib)
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
%if %{with gui}
|
||||||
|
%if %{qt_ver} < 6
|
||||||
Provides: opencv-qt5 = %{version}
|
Provides: opencv-qt5 = %{version}
|
||||||
Obsoletes: opencv-qt5 < %{version}
|
Obsoletes: opencv-qt5 < %{version}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
%if %{with gapi}
|
%if %{with gapi}
|
||||||
BuildRequires: ade-devel >= 0.1.0
|
BuildRequires: ade-devel >= 0.1.0
|
||||||
%endif
|
%endif
|
||||||
@@ -83,18 +119,41 @@ BuildRequires: %{python_module devel}
|
|||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
%else
|
%else
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.2.0
|
%if %{with gui}
|
||||||
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
|
BuildRequires: pkgconfig(Qt%{qt_ver}Concurrent) >= 5.2.0
|
||||||
|
BuildRequires: pkgconfig(Qt%{qt_ver}Gui) >= 5.2.0
|
||||||
|
BuildRequires: pkgconfig(Qt%{qt_ver}Test) >= 5.2.0
|
||||||
|
%if 0%{?qt_ver} < 6
|
||||||
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.2.0
|
||||||
BuildRequires: pkgconfig(Qt5Test) >= 5.2.0
|
|
||||||
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
|
||||||
|
%else
|
||||||
|
BuildRequires: pkgconfig(Qt6OpenGLWidgets)
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
%if "%{flavor}" != ""
|
||||||
|
BuildRequires: %{libname}%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_aruco%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_face%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_gapi%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_imgcodecs%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_objdetect%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_optflow%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_superres%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_videoio%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_videostab%{soname} = %{version}
|
||||||
|
BuildRequires: libopencv_ximgproc%{soname} = %{version}
|
||||||
|
%endif
|
||||||
%if %{with ffmpeg}
|
%if %{with ffmpeg}
|
||||||
BuildRequires: pkgconfig(libavcodec)
|
BuildRequires: pkgconfig(libavcodec)
|
||||||
BuildRequires: pkgconfig(libavformat)
|
BuildRequires: pkgconfig(libavformat)
|
||||||
BuildRequires: pkgconfig(libavutil)
|
BuildRequires: pkgconfig(libavutil)
|
||||||
BuildRequires: pkgconfig(libswscale)
|
BuildRequires: pkgconfig(libswscale)
|
||||||
%endif
|
%endif
|
||||||
|
%if %{with gui}
|
||||||
|
Requires: libopencv_highgui%{soname}%{psuffix} = %{version}
|
||||||
|
%endif
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%if "%pythons" != "python3"
|
%if "%pythons" != "python3"
|
||||||
# For Tumbleweed and SLE15 with activated multiflavor
|
# For Tumbleweed and SLE15 with activated multiflavor
|
||||||
@@ -106,14 +165,16 @@ BuildRequires: pkgconfig(libswscale)
|
|||||||
%define python_files() -n python3-%{**}
|
%define python_files() -n python3-%{**}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
%if "%{name}" != "{pname}"
|
||||||
|
Provides: %{pname} = %{version}
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
OpenCV means Intel Open Source Computer Vision Library. It is a collection of C
|
OpenCV means Intel Open Source Computer Vision Library. It is a collection of C
|
||||||
functions and a few C++ classes that implement some popular Image Processing and
|
functions and a few C++ classes that implement some popular Image Processing and
|
||||||
Computer Vision algorithms.
|
Computer Vision algorithms.
|
||||||
|
|
||||||
%package -n %{name}4-cascades-data
|
%package -n %{pname}4-cascades-data
|
||||||
Summary: Classifier cascades for OpenCV
|
Summary: Classifier cascades for OpenCV
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@@ -121,7 +182,7 @@ Conflicts: %{name} < 4.5.1
|
|||||||
Provides: %{name}:%{_datadir}/opencv4/lbpcascades/lbpcascade_silverware.xml
|
Provides: %{name}:%{_datadir}/opencv4/lbpcascades/lbpcascade_silverware.xml
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description -n %{name}4-cascades-data
|
%description -n %{pname}4-cascades-data
|
||||||
Haar and LBP cascades for face and object detecton
|
Haar and LBP cascades for face and object detecton
|
||||||
|
|
||||||
%package -n %{libname}%{soname}
|
%package -n %{libname}%{soname}
|
||||||
@@ -147,7 +208,7 @@ Summary: Face detection libraries for OpenCV
|
|||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Conflicts: %{libname}%{soname} < %{version}-%{release}
|
Conflicts: %{libname}%{soname} < %{version}-%{release}
|
||||||
Requires: %{name}4-cascades-data
|
Requires: %{pname}4-cascades-data
|
||||||
|
|
||||||
%description -n libopencv_face%{soname}
|
%description -n libopencv_face%{soname}
|
||||||
Face detection libraries for OpenCV
|
Face detection libraries for OpenCV
|
||||||
@@ -160,13 +221,16 @@ Group: System/Libraries
|
|||||||
%description -n libopencv_gapi%{soname}
|
%description -n libopencv_gapi%{soname}
|
||||||
G-API library component for OpenCV
|
G-API library component for OpenCV
|
||||||
|
|
||||||
%package -n libopencv_highgui%{soname}
|
%if %{with gui}
|
||||||
|
%package -n libopencv_highgui%{soname}%{psuffix}
|
||||||
Summary: Higlevel GUI libraries for OpenCV
|
Summary: Higlevel GUI libraries for OpenCV
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
Conflicts: libopencv_highgui%{soname} = %{version}
|
||||||
|
|
||||||
%description -n libopencv_highgui%{soname}
|
%description -n libopencv_highgui%{soname}%{psuffix}
|
||||||
Higlevel GUI libraries for OpenCV
|
Higlevel GUI libraries for OpenCV
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n libopencv_imgcodecs%{soname}
|
%package -n libopencv_imgcodecs%{soname}
|
||||||
Summary: Image codec libraries for OpenCV
|
Summary: Image codec libraries for OpenCV
|
||||||
@@ -188,7 +252,7 @@ Superresolution libraries for OpenCV
|
|||||||
Summary: Face detection libraries for OpenCV
|
Summary: Face detection libraries for OpenCV
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Requires: %{name}4-cascades-data
|
Requires: %{pname}4-cascades-data
|
||||||
|
|
||||||
%description -n libopencv_objdetect%{soname}
|
%description -n libopencv_objdetect%{soname}
|
||||||
Object detection libraries for OpenCV
|
Object detection libraries for OpenCV
|
||||||
@@ -233,7 +297,21 @@ Requires: %{libname}%{soname} = %{version}
|
|||||||
Requires: libopencv_aruco%{soname} = %{version}
|
Requires: libopencv_aruco%{soname} = %{version}
|
||||||
Requires: libopencv_face%{soname} = %{version}
|
Requires: libopencv_face%{soname} = %{version}
|
||||||
Requires: libopencv_gapi%{soname} = %{version}
|
Requires: libopencv_gapi%{soname} = %{version}
|
||||||
Requires: libopencv_highgui%{soname} = %{version}
|
%if %{with gui}
|
||||||
|
Requires: libopencv_highgui%{soname}%{psuffix} = %{version}
|
||||||
|
%endif
|
||||||
|
%if "%flavor" == ""
|
||||||
|
Conflicts: opencv-qt6-devel = %{version}
|
||||||
|
Conflicts: opencv-nogui-devel = %{version}
|
||||||
|
%endif
|
||||||
|
%if "%flavor" == "qt6"
|
||||||
|
Conflicts: opencv-devel = %{version}
|
||||||
|
Conflicts: opencv-nogui-devel = %{version}
|
||||||
|
%endif
|
||||||
|
%if "%flavor" == "nogui"
|
||||||
|
Conflicts: opencv-devel = %{version}
|
||||||
|
Conflicts: opencv-qt6-devel = %{version}
|
||||||
|
%endif
|
||||||
Requires: libopencv_imgcodecs%{soname} = %{version}
|
Requires: libopencv_imgcodecs%{soname} = %{version}
|
||||||
Requires: libopencv_objdetect%{soname} = %{version}
|
Requires: libopencv_objdetect%{soname} = %{version}
|
||||||
Requires: libopencv_optflow%{soname} = %{version}
|
Requires: libopencv_optflow%{soname} = %{version}
|
||||||
@@ -248,8 +326,12 @@ Requires: pkgconfig(ice)
|
|||||||
Requires: pkgconfig(sm)
|
Requires: pkgconfig(sm)
|
||||||
Requires: pkgconfig(x11)
|
Requires: pkgconfig(x11)
|
||||||
Requires: pkgconfig(xext)
|
Requires: pkgconfig(xext)
|
||||||
|
%if %{with gui}
|
||||||
|
%if %{qt_ver} < 6
|
||||||
Provides: %{name}-qt5-devel = %{version}
|
Provides: %{name}-qt5-devel = %{version}
|
||||||
Obsoletes: %{name}-qt5-devel < %{version}
|
Obsoletes: %{name}-qt5-devel < %{version}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains the OpenCV C/C++ library and header files, as well as
|
This package contains the OpenCV C/C++ library and header files, as well as
|
||||||
@@ -261,10 +343,15 @@ use the OpenCV library.
|
|||||||
Summary: Python %{python_version} bindings for apps which use OpenCV
|
Summary: Python %{python_version} bindings for apps which use OpenCV
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
|
%if %{with gui}
|
||||||
|
Requires: libopencv_highgui%{soname} = %{version}
|
||||||
|
%if %{qt_ver} < 6
|
||||||
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
%if "%{python_flavor}" == "python3" || "%{python_provides}" == "python3"
|
||||||
Provides: python-%{name}-qt5 = %{version}
|
Provides: python-%{name}-qt5 = %{version}
|
||||||
Obsoletes: python-%{name}-qt5 < %{version}
|
Obsoletes: python-%{name}-qt5 < %{version}
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python-%{name}
|
%description -n python-%{name}
|
||||||
This package contains Python %{python_version} bindings for the OpenCV library.
|
This package contains Python %{python_version} bindings for the OpenCV library.
|
||||||
@@ -274,8 +361,12 @@ This package contains Python %{python_version} bindings for the OpenCV library.
|
|||||||
Summary: Python 3 bindings for apps which use OpenCV
|
Summary: Python 3 bindings for apps which use OpenCV
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
|
%if %{with gui}
|
||||||
|
%if %{qt_ver} < 6
|
||||||
Provides: python3-%{name}-qt5 = %{version}
|
Provides: python3-%{name}-qt5 = %{version}
|
||||||
Obsoletes: python3-%{name}-qt5 < %{version}
|
Obsoletes: python3-%{name}-qt5 < %{version}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
This package contains Python 3 bindings for the OpenCV library.
|
This package contains Python 3 bindings for the OpenCV library.
|
||||||
@@ -287,16 +378,19 @@ License: BSD-3-Clause
|
|||||||
Group: Documentation/Other
|
Group: Documentation/Other
|
||||||
# Since this package also contains examples that need -devel to be compiled
|
# Since this package also contains examples that need -devel to be compiled
|
||||||
Suggests: %{name}-devel
|
Suggests: %{name}-devel
|
||||||
|
%if %{with gui}
|
||||||
|
%if %{qt_ver} < 6
|
||||||
Provides: %{name}-qt5-doc = %{version}
|
Provides: %{name}-qt5-doc = %{version}
|
||||||
Obsoletes: %{name}-qt5-doc < %{version}
|
Obsoletes: %{name}-qt5-doc < %{version}
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package contains the documentation and examples for the OpenCV library.
|
This package contains the documentation and examples for the OpenCV library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -a 1
|
%autosetup -p1 -n %{pname}-%{version} -a 1
|
||||||
%autopatch -p1
|
|
||||||
|
|
||||||
# Only copy over modules we need
|
# Only copy over modules we need
|
||||||
mv opencv_contrib-%{version}/modules/{aruco,face,tracking,optflow,plot,shape,superres,videostab,ximgproc} modules/
|
mv opencv_contrib-%{version}/modules/{aruco,face,tracking,optflow,plot,shape,superres,videostab,ximgproc} modules/
|
||||||
@@ -307,6 +401,9 @@ cp opencv_contrib-%{version}/LICENSE LICENSE.contrib
|
|||||||
rm -f doc/packaging.txt
|
rm -f doc/packaging.txt
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
# Remove cmake4 error due to not setting
|
||||||
|
# min cmake version - sflees.de
|
||||||
|
export CMAKE_POLICY_VERSION_MINIMUM=3.5
|
||||||
%limit_build -m 1800
|
%limit_build -m 1800
|
||||||
|
|
||||||
# openCV does not understand the standard RelWithDebinfo,
|
# openCV does not understand the standard RelWithDebinfo,
|
||||||
@@ -319,17 +416,16 @@ pushd $PWD
|
|||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DBUILD_WITH_DEBUG_INFO=ON \
|
-DBUILD_WITH_DEBUG_INFO=ON \
|
||||||
%if %{with tests}
|
-DBUILD_TESTS:BOOL=%{?with_tests:ON}%{!?with_tests:OFF} \
|
||||||
-DBUILD_TESTS=ON \
|
|
||||||
%endif
|
|
||||||
-DOPENCV_INCLUDE_INSTALL_PATH=%{_includedir} \
|
-DOPENCV_INCLUDE_INSTALL_PATH=%{_includedir} \
|
||||||
-DOPENCV_LICENSES_INSTALL_PATH=%{_licensedir}/%{name} \
|
-DOPENCV_LICENSES_INSTALL_PATH=%{_licensedir}/%{name} \
|
||||||
-DOPENCV_GENERATE_PKGCONFIG=ON \
|
-DOPENCV_GENERATE_PKGCONFIG=ON \
|
||||||
-DINSTALL_C_EXAMPLES=ON \
|
-DINSTALL_C_EXAMPLES=ON \
|
||||||
-DINSTALL_PYTHON_EXAMPLES=ON \
|
-DINSTALL_PYTHON_EXAMPLES=ON \
|
||||||
-DENABLE_OMIT_FRAME_POINTER=ON \
|
-DENABLE_OMIT_FRAME_POINTER=ON \
|
||||||
-DWITH_QT=ON \
|
-DWITH_QT=%{?with_gui:ON}%{!?with_gui:OFF} \
|
||||||
-DWITH_OPENGL=ON \
|
-DBUILD_opencv_highgui=%{?with_gui:ON}%{!?with_gui:OFF} \
|
||||||
|
-DWITH_OPENGL=%{?with_gui:ON}%{!?with_gui:OFF} \
|
||||||
-DOpenGL_GL_PREFERENCE:STRING="GLVND" \
|
-DOpenGL_GL_PREFERENCE:STRING="GLVND" \
|
||||||
-DWITH_UNICAP=ON \
|
-DWITH_UNICAP=ON \
|
||||||
-DWITH_XINE=ON \
|
-DWITH_XINE=ON \
|
||||||
@@ -409,12 +505,6 @@ fi
|
|||||||
}
|
}
|
||||||
popd
|
popd
|
||||||
%endif
|
%endif
|
||||||
mkdir -p %{buildroot}%{_docdir}/%{name}-doc
|
|
||||||
mv %{buildroot}%{_datadir}/opencv4/samples %{buildroot}%{_docdir}/%{name}-doc/examples
|
|
||||||
|
|
||||||
# Fix rpmlint warning "doc-file-dependency"
|
|
||||||
chmod 644 %{buildroot}%{_docdir}/%{name}-doc/examples/python/*.py
|
|
||||||
|
|
||||||
# Remove LD_LIBRARY_PATH wrapper script, we install into proper library dirs
|
# Remove LD_LIBRARY_PATH wrapper script, we install into proper library dirs
|
||||||
rm %{buildroot}%{_bindir}/setup_vars_opencv4.sh
|
rm %{buildroot}%{_bindir}/setup_vars_opencv4.sh
|
||||||
|
|
||||||
@@ -422,7 +512,52 @@ rm %{buildroot}%{_bindir}/setup_vars_opencv4.sh
|
|||||||
cat %{buildroot}%{_libdir}/pkgconfig/opencv4.pc
|
cat %{buildroot}%{_libdir}/pkgconfig/opencv4.pc
|
||||||
sed -i -e 's|//usr||g' %{buildroot}%{_libdir}/pkgconfig/opencv4.pc
|
sed -i -e 's|//usr||g' %{buildroot}%{_libdir}/pkgconfig/opencv4.pc
|
||||||
|
|
||||||
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc/examples
|
# Clear everything except Qt dependent libs for named flavours
|
||||||
|
%if "%{flavor}" == ""
|
||||||
|
|
||||||
|
%fdupes -s %{buildroot}%{_docdir}/%{pname}-doc/examples
|
||||||
|
mkdir -p %{buildroot}%{_docdir}/%{pname}-doc
|
||||||
|
mv %{buildroot}%{_datadir}/opencv4/samples %{buildroot}%{_docdir}/%{pname}-doc/examples
|
||||||
|
|
||||||
|
# Fix rpmlint warning "doc-file-dependency"
|
||||||
|
chmod 644 %{buildroot}%{_docdir}/%{name}-doc/examples/python/*.py
|
||||||
|
|
||||||
|
%else
|
||||||
|
|
||||||
|
for exe in %{buildroot}%{_bindir}/opencv_*
|
||||||
|
do
|
||||||
|
mv ${exe} ${exe}%{psuffix}
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -fr %{buildroot}%{_libdir}/libopencv_calib3d.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_core.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_dnn.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_features2d.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_flann.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_imgproc.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_ml.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_photo.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_plot.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_shape.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_stitching.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_tracking.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_video.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_aruco.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_face.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_gapi.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_imgcodecs.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_objdetect.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_optflow.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_superres.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_videoio.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_videostab.so.* \
|
||||||
|
%{buildroot}%{_libdir}/libopencv_ximgproc.so.* \
|
||||||
|
%{buildroot}%{_datadir}/opencv4/*cascades \
|
||||||
|
%{buildroot}%{_datadir}/opencv4/samples \
|
||||||
|
%{nil}
|
||||||
|
|
||||||
|
%endif
|
||||||
|
|
||||||
%fdupes -s %{buildroot}%{_includedir}
|
%fdupes -s %{buildroot}%{_includedir}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -436,40 +571,26 @@ export LD_LIBRARY_PATH=$(pwd)/build/lib:$LD_LIBRARY_PATH
|
|||||||
grep -E 'model|stepping|flags' /proc/cpuinfo | head -n4
|
grep -E 'model|stepping|flags' /proc/cpuinfo | head -n4
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post -n %{libname}%{soname} -p /sbin/ldconfig
|
%if "%flavor" == ""
|
||||||
%postun -n %{libname}%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n %{libname}%{soname}
|
||||||
%post -n libopencv_aruco%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_aruco%{soname}
|
||||||
%postun -n libopencv_aruco%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_face%{soname}
|
||||||
%post -n libopencv_face%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_gapi%{soname}
|
||||||
%postun -n libopencv_face%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_imgcodecs%{soname}
|
||||||
%post -n libopencv_gapi%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_objdetect%{soname}
|
||||||
%postun -n libopencv_gapi%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_optflow%{soname}
|
||||||
%post -n libopencv_highgui%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_superres%{soname}
|
||||||
%postun -n libopencv_highgui%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_videoio%{soname}
|
||||||
%post -n libopencv_imgcodecs%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_videostab%{soname}
|
||||||
%postun -n libopencv_imgcodecs%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_ximgproc%{soname}
|
||||||
%post -n libopencv_objdetect%{soname} -p /sbin/ldconfig
|
%else
|
||||||
%postun -n libopencv_objdetect%{soname} -p /sbin/ldconfig
|
%if %{with gui}
|
||||||
%post -n libopencv_optflow%{soname} -p /sbin/ldconfig
|
%ldconfig_scriptlets -n libopencv_highgui%{soname}%{psuffix}
|
||||||
%postun -n libopencv_optflow%{soname} -p /sbin/ldconfig
|
%endif
|
||||||
%post -n libopencv_superres%{soname} -p /sbin/ldconfig
|
%endif
|
||||||
%postun -n libopencv_superres%{soname} -p /sbin/ldconfig
|
|
||||||
%post -n libopencv_videoio%{soname} -p /sbin/ldconfig
|
|
||||||
%postun -n libopencv_videoio%{soname} -p /sbin/ldconfig
|
|
||||||
%post -n libopencv_videostab%{soname} -p /sbin/ldconfig
|
|
||||||
%postun -n libopencv_videostab%{soname} -p /sbin/ldconfig
|
|
||||||
%post -n libopencv_ximgproc%{soname} -p /sbin/ldconfig
|
|
||||||
%postun -n libopencv_ximgproc%{soname} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
|
%if "%flavor" == ""
|
||||||
%files
|
%files -n %{pname}4-cascades-data
|
||||||
%license LICENSE LICENSE.contrib
|
|
||||||
%license %{_licensedir}/opencv/*
|
|
||||||
%{_bindir}/opencv_*
|
|
||||||
%dir %{_datadir}/opencv4
|
|
||||||
%exclude %{_datadir}/opencv4/valgrind*
|
|
||||||
|
|
||||||
%files -n %{name}4-cascades-data
|
|
||||||
%{_datadir}/opencv4/*cascades
|
%{_datadir}/opencv4/*cascades
|
||||||
|
|
||||||
%files -n %{libname}%{soname}
|
%files -n %{libname}%{soname}
|
||||||
@@ -499,9 +620,6 @@ grep -E 'model|stepping|flags' /proc/cpuinfo | head -n4
|
|||||||
%{_libdir}/libopencv_gapi.so.*
|
%{_libdir}/libopencv_gapi.so.*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n libopencv_highgui%{soname}
|
|
||||||
%{_libdir}/libopencv_highgui.so.*
|
|
||||||
|
|
||||||
%files -n libopencv_imgcodecs%{soname}
|
%files -n libopencv_imgcodecs%{soname}
|
||||||
%{_libdir}/libopencv_imgcodecs.so.*
|
%{_libdir}/libopencv_imgcodecs.so.*
|
||||||
|
|
||||||
@@ -523,6 +641,28 @@ grep -E 'model|stepping|flags' /proc/cpuinfo | head -n4
|
|||||||
%files -n libopencv_ximgproc%{soname}
|
%files -n libopencv_ximgproc%{soname}
|
||||||
%{_libdir}/libopencv_ximgproc.so.*
|
%{_libdir}/libopencv_ximgproc.so.*
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
|
%files %{python_files %{name}}
|
||||||
|
%license LICENSE LICENSE.contrib
|
||||||
|
%{python_sitearch}/cv2.*.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%{_docdir}/%{name}-doc/
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{with gui}
|
||||||
|
%files -n libopencv_highgui%{soname}%{psuffix}
|
||||||
|
%{_libdir}/libopencv_highgui.so.*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE LICENSE.contrib
|
||||||
|
%license %{_licensedir}/%{name}/*
|
||||||
|
%{_bindir}/opencv_*%{psuffix}
|
||||||
|
%dir %{_datadir}/opencv4
|
||||||
|
%exclude %{_datadir}/opencv4/valgrind*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license LICENSE LICENSE.contrib
|
%license LICENSE LICENSE.contrib
|
||||||
%{_includedir}/opencv2/
|
%{_includedir}/opencv2/
|
||||||
@@ -533,13 +673,4 @@ grep -E 'model|stepping|flags' /proc/cpuinfo | head -n4
|
|||||||
%{_libdir}/cmake/opencv4/OpenCVModules*.cmake
|
%{_libdir}/cmake/opencv4/OpenCVModules*.cmake
|
||||||
%{_datadir}/opencv4/valgrind*
|
%{_datadir}/opencv4/valgrind*
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files %{python_files %{name}}
|
|
||||||
%license LICENSE LICENSE.contrib
|
|
||||||
%{python_sitearch}/cv2.*.so
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files doc
|
|
||||||
%{_docdir}/%{name}-doc/
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:65597f8fb8dc2b876c1b45b928bbcc5f772ddbaf97539bf1b737623d0604cba1
|
|
||||||
size 55387316
|
|
3
opencv_contrib-4.12.0.tar.gz
Normal file
3
opencv_contrib-4.12.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4197722b4c5ed42b476d42e29beb29a52b6b25c34ec7b4d589c3ae5145fee98e
|
||||||
|
size 55475555
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:070802e1983abfd5958ac59cfd8c06d3cd958d1c215d44a6b5efce4a284a1667
|
|
||||||
size 60041240
|
|
Reference in New Issue
Block a user