|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
%if %{without tests}
|
|
|
|
|
%bcond_with extras_tests
|
|
|
|
|
%else
|
|
|
|
|
%bcond_with extras_tests
|
|
|
|
|
%bcond_without extras_tests
|
|
|
|
|
%endif
|
|
|
|
|
# linters are enabled by default if BUILD_DOCS OR BUILD_EXAMPLES
|
|
|
|
|
%bcond_with linters
|
|
|
|
@ -13,16 +13,12 @@
|
|
|
|
|
%bcond_with eigen2
|
|
|
|
|
%bcond_without eigen3
|
|
|
|
|
%bcond_without opencl
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
%bcond_with openni
|
|
|
|
|
%else
|
|
|
|
|
%ifarch x86_64 %{arm}
|
|
|
|
|
%bcond_without openni
|
|
|
|
|
%else
|
|
|
|
|
# we dont have openni in other archs
|
|
|
|
|
%bcond_with openni
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%bcond_without tbb
|
|
|
|
|
%bcond_with cuda
|
|
|
|
|
%bcond_with xine
|
|
|
|
@ -32,11 +28,15 @@
|
|
|
|
|
%bcond_with atlas
|
|
|
|
|
%bcond_without openblas
|
|
|
|
|
%bcond_without gdcm
|
|
|
|
|
%ifnarch riscv64
|
|
|
|
|
%if 0%{?rhel} >= 8
|
|
|
|
|
%bcond_with vtk
|
|
|
|
|
%else
|
|
|
|
|
%bcond_without vtk
|
|
|
|
|
%endif
|
|
|
|
|
%else # riscv64
|
|
|
|
|
%bcond_with vtk
|
|
|
|
|
%endif # riscv64
|
|
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
|
%bcond_without libmfx
|
|
|
|
@ -68,13 +68,13 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: opencv
|
|
|
|
|
Version: 4.7.0
|
|
|
|
|
Version: 4.8.1
|
|
|
|
|
%global javaver %(foo=%{version}; echo ${foo//./})
|
|
|
|
|
%global majorver %(foo=%{version}; a=(${foo//./ }); echo ${a[0]} )
|
|
|
|
|
%global minorver %(foo=%{version}; a=(${foo//./ }); echo ${a[1]} )
|
|
|
|
|
%global padding %(digits=00; num=%{minorver}; echo ${digits:${#num}:${#digits}} )
|
|
|
|
|
%global abiver %(echo %{majorver}%{padding}%{minorver} )
|
|
|
|
|
Release: 14%{?dist}
|
|
|
|
|
Release: 3.0.riscv64%{?dist}
|
|
|
|
|
Summary: Collection of algorithms for computer vision
|
|
|
|
|
# This is normal three clause BSD.
|
|
|
|
|
License: BSD-3-Clause and Apache-2.0 and ISC
|
|
|
|
@ -95,11 +95,14 @@ Source3: face_landmark_model.dat.xz
|
|
|
|
|
# mv v0.1.2a.zip $(md5sum v0.1.2a.zip | cut -d' ' -f1)-v0.1.2a.zip
|
|
|
|
|
Source4: fa4b3e25167319cb0fa9432ef8281945-v0.1.2a.zip
|
|
|
|
|
Source5: xorg.conf
|
|
|
|
|
%global wechat_commit 3487ef7cde71d93c6a01bb0b84aa0f22c6128f6b
|
|
|
|
|
%global wechat_shortcommit %(c=%{wechat_commit}; echo ${c:0:7})
|
|
|
|
|
%global wechat_gitdate 20230712
|
|
|
|
|
Source6: https://github.com/WeChatCV/opencv_3rdparty/archive/%{wechat_commit}/wechat-%{wechat_gitdate}.git%{wechat_shortcommit}.tar.gz
|
|
|
|
|
|
|
|
|
|
Patch0: opencv-4.1.0-install_3rdparty_licenses.patch
|
|
|
|
|
Patch3: opencv.python.patch
|
|
|
|
|
# Upstream commit to fix rhbz#2190013
|
|
|
|
|
Patch4: https://github.com/opencv/opencv/pull/23112.patch
|
|
|
|
|
Patch4: numpy.distutils_removal.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: cmake >= 2.6.3
|
|
|
|
@ -171,7 +174,7 @@ BuildRequires: hdf5-devel
|
|
|
|
|
BuildRequires: openjpeg2-devel
|
|
|
|
|
BuildRequires: freetype-devel
|
|
|
|
|
BuildRequires: harfbuzz-devel
|
|
|
|
|
# Module opencv_ovis disabled because of incompatible OGRE3D version < 1.10
|
|
|
|
|
# Module opencv_ovis disabled because of incompatible OGRE3D version < 1.11.5
|
|
|
|
|
# BuildRequires: ogre-devel
|
|
|
|
|
%{?with_vtk:BuildRequires: vtk-devel}
|
|
|
|
|
%{?with_vtk:
|
|
|
|
@ -194,7 +197,7 @@ BuildRequires: blas-devel
|
|
|
|
|
BuildRequires: lapack-devel
|
|
|
|
|
}
|
|
|
|
|
%{?with_gdcm:BuildRequires: gdcm-devel}
|
|
|
|
|
%{?with_libmfx:BuildRequires: libmfx-devel}
|
|
|
|
|
%{?with_libmfx:BuildRequires: oneVPL-devel}
|
|
|
|
|
%{?with_clp:BuildRequires: coin-or-Clp-devel}
|
|
|
|
|
%{?with_va:BuildRequires: libva-devel}
|
|
|
|
|
%{?with_java:
|
|
|
|
@ -202,12 +205,14 @@ BuildRequires: ant
|
|
|
|
|
BuildRequires: java-devel
|
|
|
|
|
}
|
|
|
|
|
%{?with_vulkan:BuildRequires: vulkan-headers}
|
|
|
|
|
#BuildRequires: flatbuffers-devel
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: xorg-x11-drv-dummy
|
|
|
|
|
BuildRequires: mesa-dri-drivers
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Requires: opencv-core%{_isa} = %{version}-%{release}
|
|
|
|
|
Requires: opencv-data = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
OpenCV means Intel® Open Source Computer Vision Library. It is a collection of
|
|
|
|
@ -219,15 +224,118 @@ and Computer Vision algorithms.
|
|
|
|
|
Summary: OpenCV core libraries
|
|
|
|
|
Provides: bundled(quirc) = 1.0
|
|
|
|
|
Obsoletes: python2-%{name} < %{version}
|
|
|
|
|
# any removed modules should be listed here
|
|
|
|
|
Obsoletes: %{name}-core < 4.8.0-2
|
|
|
|
|
Obsoletes: %{name}-contrib < 4.8.0-2
|
|
|
|
|
|
|
|
|
|
%description core
|
|
|
|
|
This package contains the OpenCV C/C++ core libraries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package data
|
|
|
|
|
Summary: OpenCV data
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description data
|
|
|
|
|
This package contains OpenCV data.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global opencv_devel_requires %{name}-core%{_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
%define opencv_module_subpkg(m:d:) \
|
|
|
|
|
%global opencv_devel_requires %{opencv_devel_requires} %{name}-%{-m*}%{_isa} = %{version}-%{release}\
|
|
|
|
|
%define modulename %{-m:%{-m*}}%{!-m:%{error:Module name not defined}}\
|
|
|
|
|
%define moduledesc %{-d:%{-d*}}%{!-d:%{-m*}}\
|
|
|
|
|
%package %{modulename}\
|
|
|
|
|
Summary: OpenCV module: %{moduledesc}\
|
|
|
|
|
Requires: %{name}-core%{_isa} = %{version}-%{release}\
|
|
|
|
|
\
|
|
|
|
|
%description %{modulename}\
|
|
|
|
|
This package contains the OpenCV %{moduledesc} module runtime.\
|
|
|
|
|
\
|
|
|
|
|
%files %{modulename}\
|
|
|
|
|
%{_libdir}/libopencv_%{modulename}.so.{%{abiver},%{version}}
|
|
|
|
|
|
|
|
|
|
# main modules
|
|
|
|
|
%opencv_module_subpkg -m calib3d -d %{quote:Camera Calibration and 3D Reconstruction}
|
|
|
|
|
%opencv_module_subpkg -m dnn -d %{quote:Deep Neural Network}
|
|
|
|
|
%opencv_module_subpkg -m features2d -d %{quote:2D Feature Detection}
|
|
|
|
|
%opencv_module_subpkg -m flann -d %{quote:Clustering and Search in Multi-dimensional Space}
|
|
|
|
|
%opencv_module_subpkg -m gapi -d %{quote:Graph API}
|
|
|
|
|
%opencv_module_subpkg -m highgui -d %{quote:High-level GUI}
|
|
|
|
|
%opencv_module_subpkg -m imgcodecs -d %{quote:Image Encoding/Decoding}
|
|
|
|
|
%opencv_module_subpkg -m imgproc -d %{quote:Image Processing}
|
|
|
|
|
%opencv_module_subpkg -m ml -d %{quote:Machine Learning}
|
|
|
|
|
%opencv_module_subpkg -m objdetect -d %{quote:Object Detection}
|
|
|
|
|
%opencv_module_subpkg -m photo -d %{quote:Computational Photography}
|
|
|
|
|
%opencv_module_subpkg -m stitching -d %{quote:Images stitching}
|
|
|
|
|
%opencv_module_subpkg -m video -d %{quote:Video Analysis}
|
|
|
|
|
%opencv_module_subpkg -m videoio -d %{quote:Video I/O}
|
|
|
|
|
# contrib/extra modules
|
|
|
|
|
%opencv_module_subpkg -m alphamat -d %{quote:Alpha Matting}
|
|
|
|
|
%opencv_module_subpkg -m aruco -d %{quote:Aruco Markers}
|
|
|
|
|
%opencv_module_subpkg -m bgsegm -d %{quote:Background Segmentation}
|
|
|
|
|
%opencv_module_subpkg -m bioinspired -d %{quote:Biologically-inspired Vision Models}
|
|
|
|
|
%opencv_module_subpkg -m ccalib -d %{quote:Custom Calibration Pattern}
|
|
|
|
|
%if %{with cuda}
|
|
|
|
|
%opencv_module_subpkg -m cudaarithm -d %{quote:CUDA Matrix Arithmatic}
|
|
|
|
|
%opencv_module_subpkg -m cudabgsegm -d %{quote:CUDA Background Segmentation}
|
|
|
|
|
%opencv_module_subpkg -m cudacodec -d %{quote:CUDA Video Encoding/Decoding}
|
|
|
|
|
%opencv_module_subpkg -m cudafeatures2d -d %{quote:CUDA 2D Feature Detection}
|
|
|
|
|
%opencv_module_subpkg -m cudafilters -d %{quote:CUDA Image Filtering}
|
|
|
|
|
%opencv_module_subpkg -m cudaimgproc -d %{quote:CUDA Image Processing}
|
|
|
|
|
%opencv_module_subpkg -m cudalegacy -d %{quote:CUDA Legacy Support}
|
|
|
|
|
%opencv_module_subpkg -m cudaobjdetect -d %{quote:CUDA Object Detection}
|
|
|
|
|
%opencv_module_subpkg -m cudaoptflow -d %{quote:CUDA Optical Flow}
|
|
|
|
|
%opencv_module_subpkg -m cudastereo -d %{quote:CUDA Stereo Correspondance}
|
|
|
|
|
%opencv_module_subpkg -m cudawarping -d %{quote:CUDA Image Warping}
|
|
|
|
|
%opencv_module_subpkg -m cudev -d %{quote:CUDA Device Layer}
|
|
|
|
|
%endif
|
|
|
|
|
%opencv_module_subpkg -m cvv -d %{quote:Interactive Computer Vision Visual Debugging}
|
|
|
|
|
%opencv_module_subpkg -m datasets -d %{quote:Datasets Framework}
|
|
|
|
|
%opencv_module_subpkg -m dnn_objdetect -d %{quote:Deep Neural Network Object Detection}
|
|
|
|
|
%opencv_module_subpkg -m dnn_superres -d %{quote:Deep Neural Network Super Resolution}
|
|
|
|
|
%opencv_module_subpkg -m dpm -d %{quote:Deformable Part-based Models}
|
|
|
|
|
%opencv_module_subpkg -m face -d %{quote:Face Analysis}
|
|
|
|
|
%opencv_module_subpkg -m freetype -d %{quote:Freetype/Harfbuzz UTF-8 Strings}
|
|
|
|
|
%opencv_module_subpkg -m fuzzy -d %{quote:Fuzzy Math-based Image Processing}
|
|
|
|
|
%opencv_module_subpkg -m hdf -d %{quote:HDF Data Format I/O}
|
|
|
|
|
%opencv_module_subpkg -m hfs -d %{quote:Heirarchical Feature Selection}
|
|
|
|
|
%opencv_module_subpkg -m img_hash -d %{quote:Image Hashing}
|
|
|
|
|
%opencv_module_subpkg -m intensity_transform -d %{quote:Intensity Transformation}
|
|
|
|
|
%opencv_module_subpkg -m line_descriptor -d %{quote:Extracted Line Binary Descriptor}
|
|
|
|
|
%opencv_module_subpkg -m mcc -d %{quote:Macbeth Chart}
|
|
|
|
|
%opencv_module_subpkg -m optflow -d %{quote:Optical Flow Algorithms}
|
|
|
|
|
#opencv_module_subpkg -m ovis -d %%{quote:OGRE 3D Visualiser}
|
|
|
|
|
%opencv_module_subpkg -m phase_unwrapping -d %{quote:Phase Unwrapping}
|
|
|
|
|
%opencv_module_subpkg -m plot -d %{quote:2D Plotting}
|
|
|
|
|
%opencv_module_subpkg -m quality -d %{quote:Image Quality Analysis}
|
|
|
|
|
%opencv_module_subpkg -m rapid -d %{quote:Silhouette based 3D Object Tracking}
|
|
|
|
|
%opencv_module_subpkg -m reg -d %{quote:Image Registration}
|
|
|
|
|
%opencv_module_subpkg -m rgbd -d %{quote:RGB-Depth Processing}
|
|
|
|
|
%opencv_module_subpkg -m saliency -d %{quote:Saliency}
|
|
|
|
|
%opencv_module_subpkg -m shape -d %{quote:Shape Distance and Matching}
|
|
|
|
|
%opencv_module_subpkg -m stereo -d %{quote:Stereo Correspondance}
|
|
|
|
|
%opencv_module_subpkg -m structured_light -d %{quote:Structed Light}
|
|
|
|
|
%opencv_module_subpkg -m superres -d %{quote:Super Resolution}
|
|
|
|
|
%opencv_module_subpkg -m surface_matching -d %{quote:Surface Matching}
|
|
|
|
|
%opencv_module_subpkg -m text -d %{quote:Text Detection and Recognition}
|
|
|
|
|
%opencv_module_subpkg -m tracking -d %{quote:Tracking}
|
|
|
|
|
%opencv_module_subpkg -m videostab -d %{quote:Video Stabilization}
|
|
|
|
|
%if %{with vtk}
|
|
|
|
|
%opencv_module_subpkg -m viz -d %{quote:3D Visualizer}
|
|
|
|
|
%endif
|
|
|
|
|
%opencv_module_subpkg -m wechat_qrcode -d %{quote:WeChat QR code detector}
|
|
|
|
|
%opencv_module_subpkg -m ximgproc -d %{quote:Extended Image Processing}
|
|
|
|
|
%opencv_module_subpkg -m xobjdetect -d %{quote:Extended Object Detection}
|
|
|
|
|
%opencv_module_subpkg -m xphoto -d %{quote:Extended Photo Processing}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for using the OpenCV library
|
|
|
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-contrib%{_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-data = %{version}-%{release}
|
|
|
|
|
Requires: %{opencv_devel_requires}
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This package contains the OpenCV C/C++ library and header files, as well as
|
|
|
|
@ -268,33 +376,22 @@ Requires: %{name}-core%{_isa} = %{version}-%{release}
|
|
|
|
|
This package contains Java bindings for the OpenCV library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package contrib
|
|
|
|
|
Summary: OpenCV contributed functionality
|
|
|
|
|
|
|
|
|
|
%description contrib
|
|
|
|
|
This package is intended for development of so-called "extra" modules, contributed
|
|
|
|
|
functionality. New modules quite often do not have stable API, and they are not
|
|
|
|
|
well-tested. Thus, they shouldn't be released as a part of official OpenCV
|
|
|
|
|
distribution, since the library maintains binary compatibility, and tries
|
|
|
|
|
to provide decent performance and stability.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
# autosetup doesn't work with 2 sources
|
|
|
|
|
# https://github.com/rpm-software-management/rpm/issues/1204
|
|
|
|
|
%setup -q -a1 %{?with_extras_tests:-a2}
|
|
|
|
|
%if 1
|
|
|
|
|
%setup -q -a1 %{?with_extras_tests:-a2} -a6
|
|
|
|
|
|
|
|
|
|
# we don't use pre-built contribs except quirc
|
|
|
|
|
pushd 3rdparty
|
|
|
|
|
shopt -s extglob
|
|
|
|
|
#rm -r !(openexr|openvx|quirc)
|
|
|
|
|
rm -r !(openvx|quirc)
|
|
|
|
|
rm -r !(openvx|quirc|flatbuffers)
|
|
|
|
|
shopt -u extglob
|
|
|
|
|
popd &>/dev/null
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%patch -P 0 -p1 -b .install_3rdparty_licenses
|
|
|
|
|
%patch -P 3 -p1 -b .python_install_binary
|
|
|
|
|
%patch -P 4 -p1 -b .backport_avx2
|
|
|
|
|
%patch -P 4 -p1 -b .numpy.distutils_removal
|
|
|
|
|
|
|
|
|
|
pushd %{name}_contrib-%{version}
|
|
|
|
|
#patch1 -p1 -b .install_cvv
|
|
|
|
@ -302,15 +399,20 @@ popd
|
|
|
|
|
|
|
|
|
|
# Install face_landmark_model
|
|
|
|
|
mkdir -p .cache/data
|
|
|
|
|
install -pm 0644 %{SOURCE3} .cache/data
|
|
|
|
|
install -pm 0644 %{S:3} .cache/data
|
|
|
|
|
pushd .cache/data
|
|
|
|
|
xz -d face_landmark_model.dat.xz
|
|
|
|
|
mv face_landmark_model.dat 7505c44ca4eb54b4ab1e4777cb96ac05-face_landmark_model.dat
|
|
|
|
|
popd
|
|
|
|
|
mkdir -p .cache/wechat_qrcode
|
|
|
|
|
mv opencv_3rdparty-%{wechat_commit}/detect.caffemodel .cache/wechat_qrcode/238e2b2d6f3c18d6c3a30de0c31e23cf-detect.caffemodel
|
|
|
|
|
mv opencv_3rdparty-%{wechat_commit}/detect.prototxt .cache/wechat_qrcode/6fb4976b32695f9f5c6305c19f12537d-detect.prototxt
|
|
|
|
|
mv opencv_3rdparty-%{wechat_commit}/sr.caffemodel .cache/wechat_qrcode/cbfcd60361a73beb8c583eea7e8e6664-sr.caffemodel
|
|
|
|
|
mv opencv_3rdparty-%{wechat_commit}/sr.prototxt .cache/wechat_qrcode/69db99927a70df953b471daaba03fbef-sr.prototxt
|
|
|
|
|
|
|
|
|
|
# Install ADE, needed for opencv_gapi
|
|
|
|
|
mkdir -p .cache/ade
|
|
|
|
|
install -pm 0644 %{SOURCE4} .cache/ade/
|
|
|
|
|
install -pm 0644 %{S:4} .cache/ade/
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# enabled by default if libraries are presents at build time:
|
|
|
|
@ -319,6 +421,9 @@ install -pm 0644 %{SOURCE4} .cache/ade/
|
|
|
|
|
# disabling IPP because it is closed source library from intel
|
|
|
|
|
|
|
|
|
|
%cmake \
|
|
|
|
|
%if 0%{?fedora} > 38
|
|
|
|
|
-DCMAKE_CXX_STANDARD=17 \
|
|
|
|
|
%endif
|
|
|
|
|
-DCV_TRACE=OFF \
|
|
|
|
|
-DWITH_IPP=OFF \
|
|
|
|
|
-DWITH_ITT=OFF \
|
|
|
|
@ -335,7 +440,7 @@ install -pm 0644 %{SOURCE4} .cache/ade/
|
|
|
|
|
%ifarch x86_64 %{ix86}
|
|
|
|
|
-DCPU_BASELINE=SSE2 \
|
|
|
|
|
%endif
|
|
|
|
|
-DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
|
%{?with_java: -DBUILD_opencv_java=ON \
|
|
|
|
|
-DOPENCV_JAR_INSTALL_PATH=%{_jnidir} } \
|
|
|
|
|
%{!?with_java: -DBUILD_opencv_java=OFF } \
|
|
|
|
@ -366,7 +471,7 @@ install -pm 0644 %{SOURCE4} .cache/ade/
|
|
|
|
|
} \
|
|
|
|
|
-DBUILD_PROTOBUF=OFF \
|
|
|
|
|
-DPROTOBUF_UPDATE_FILES=ON \
|
|
|
|
|
%{?with_opencl: -DOPENCL_INCLUDE_DIR=%{_includedir}/CL } \
|
|
|
|
|
%{?with_opencl: -DOPENCL_INCLUDE_DIR=%{_includedir}/CL -DOPENCV_DNN_OPENCL=ON} \
|
|
|
|
|
%{!?with_opencl: -DWITH_OPENCL=OFF } \
|
|
|
|
|
-DOPENCV_EXTRA_MODULES_PATH=opencv_contrib-%{version}/modules \
|
|
|
|
|
-DWITH_LIBV4L=ON \
|
|
|
|
@ -375,7 +480,7 @@ install -pm 0644 %{SOURCE4} .cache/ade/
|
|
|
|
|
-DOPENCV_GENERATE_PKGCONFIG=ON \
|
|
|
|
|
%{?with_extras_tests: -DOPENCV_TEST_DATA_PATH=opencv_extra-%{version}/testdata} \
|
|
|
|
|
%{?with_gdcm: -DWITH_GDCM=ON } \
|
|
|
|
|
%{?with_libmfx: -DWITH_MFX=ON } \
|
|
|
|
|
%{?with_libmfx: -DWITH_MFX=ON -DWITH_GAPI_ONEVPL=ON} \
|
|
|
|
|
%{?with_clp: -DWITH_CLP=ON } \
|
|
|
|
|
%{?with_va: -DWITH_VA=ON } \
|
|
|
|
|
%{!?with_vtk: -DWITH_VTK=OFF} \
|
|
|
|
@ -404,7 +509,7 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
|
%check
|
|
|
|
|
#ifnarch ppc64
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
cp %SOURCE5 %{__cmake_builddir}
|
|
|
|
|
cp %{S:5} %{__cmake_builddir}
|
|
|
|
|
if [ -x /usr/libexec/Xorg ]; then
|
|
|
|
|
Xorg=/usr/libexec/Xorg
|
|
|
|
|
else
|
|
|
|
@ -421,6 +526,9 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
|
%files
|
|
|
|
|
%doc README.md
|
|
|
|
|
%{_bindir}/opencv_*
|
|
|
|
|
|
|
|
|
|
%files data
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%dir %{_datadir}/opencv4
|
|
|
|
|
%{_datadir}/opencv4/haarcascades
|
|
|
|
|
%{_datadir}/opencv4/lbpcascades
|
|
|
|
@ -430,21 +538,7 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
|
%files core
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_datadir}/licenses/opencv4/
|
|
|
|
|
%{_libdir}/libopencv_calib3d.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_core.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_dnn.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_features2d.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_flann.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_gapi.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_highgui.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_imgcodecs.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_imgproc.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_ml.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_objdetect.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_photo.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_stitching.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_video.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_videoio.so.{%{abiver},%{version}}
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%dir %{_includedir}/opencv4
|
|
|
|
@ -471,56 +565,33 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
|
%{_jnidir}/opencv.jar
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%files contrib
|
|
|
|
|
%{_libdir}/libopencv_alphamat.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_aruco.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_bgsegm.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_barcode.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_bioinspired.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_ccalib.so.{%{abiver},%{version}}
|
|
|
|
|
%{?with_cuda:
|
|
|
|
|
%{_libdir}/libopencv_cuda*.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_cudev.so.{%{abiver},%{version}}
|
|
|
|
|
}
|
|
|
|
|
%{_libdir}/libopencv_cvv.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_datasets.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_dnn_objdetect.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_dnn_superres.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_dpm.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_face.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_freetype.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_fuzzy.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_hdf.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_hfs.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_img_hash.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_intensity_transform.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_line_descriptor.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_mcc.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_optflow.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_phase_unwrapping.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_plot.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_quality.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_rapid.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_reg.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_rgbd.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_saliency.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_shape.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_stereo.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_structured_light.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_superres.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_surface_matching.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_text.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_tracking.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_videostab.so.{%{abiver},%{version}}
|
|
|
|
|
%if %{with vtk}
|
|
|
|
|
%{_libdir}/libopencv_viz.so.{%{abiver},%{version}}
|
|
|
|
|
%endif
|
|
|
|
|
%{_libdir}/libopencv_wechat_qrcode.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_ximgproc.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_xobjdetect.so.{%{abiver},%{version}}
|
|
|
|
|
%{_libdir}/libopencv_xphoto.so.{%{abiver},%{version}}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Dec 08 2023 David Abdurachmanov <davidlt@rivosinc.com> - 4.8.1-3.0.riscv64
|
|
|
|
|
- Disable VTK on riscv64 for now
|
|
|
|
|
|
|
|
|
|
* Thu Nov 16 2023 Sandro Mani <manisandro@gmail.com> - 4.8.1-3
|
|
|
|
|
- Rebuild (gdal)
|
|
|
|
|
|
|
|
|
|
* Sat Oct 07 2023 Sandro Mani <manisandro@gmail.com> - 4.8.1-2
|
|
|
|
|
- Rebuild (tesseract)
|
|
|
|
|
|
|
|
|
|
* Fri Sep 29 2023 Sérgio Basto <sergio@serjux.com> - 4.8.1-1
|
|
|
|
|
- Update opencv to 4.8.1
|
|
|
|
|
|
|
|
|
|
* Thu Sep 14 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 4.8.0-2
|
|
|
|
|
- Separate per-module subpackages (#1878320)
|
|
|
|
|
|
|
|
|
|
* Mon Aug 07 2023 Sérgio Basto <sergio@serjux.com> - 4.8.0-1
|
|
|
|
|
- Update opencv to 4.8.0
|
|
|
|
|
- Use bundle flatbuffers, tried build with flatbuffers from system but doesn't build
|
|
|
|
|
- Use oneVPL instead libmfx
|
|
|
|
|
- Add WeChat QRCode
|
|
|
|
|
- https://src.fedoraproject.org/rpms/opencv/pull-request/23 , upgrade C++ standard to C++17 for protobuf v4 (23.x etc.)
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.7.0-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 19 2023 Josef Ridky <jridky@redhat.com> - 4.7.0-14
|
|
|
|
|
- Migrate to SPDX license format
|
|
|
|
|
|
|
|
|
|