|
|
@ -48,16 +48,19 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: opencv
|
|
|
|
Name: opencv
|
|
|
|
Version: 4.5.5
|
|
|
|
Version: 4.6.0
|
|
|
|
%global javaver %(foo=%{version}; echo ${foo//./})
|
|
|
|
%global javaver %(foo=%{version}; echo ${foo//./})
|
|
|
|
%global abiver %(foo=%{version}; echo ${foo:0:3})
|
|
|
|
%global majorver %(foo=%{version}; a=(${foo//./ }); echo ${a[0]} )
|
|
|
|
Release: 9%{?dist}
|
|
|
|
%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: 1%{?dist}
|
|
|
|
Summary: Collection of algorithms for computer vision
|
|
|
|
Summary: Collection of algorithms for computer vision
|
|
|
|
# This is normal three clause BSD.
|
|
|
|
# This is normal three clause BSD.
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
URL: https://opencv.org
|
|
|
|
URL: https://opencv.org
|
|
|
|
# TO PREPARE TARBALLS FOR FEDORA
|
|
|
|
# TO PREPARE TARBALLS FOR FEDORA
|
|
|
|
# Edit opencv-clean.sh and set VERSION, save file, after run opencv-clean.sh
|
|
|
|
# Edit opencv-clean.sh and set VERSION, save file and run opencv-clean.sh
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Need to remove copyrighted lena.jpg images from tarball (rhbz#1295173)
|
|
|
|
# Need to remove copyrighted lena.jpg images from tarball (rhbz#1295173)
|
|
|
|
# and SIFT/SURF from tarball, due to legal concerns.
|
|
|
|
# and SIFT/SURF from tarball, due to legal concerns.
|
|
|
@ -73,7 +76,6 @@ Source4: b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
|
|
|
|
Source5: xorg.conf
|
|
|
|
Source5: xorg.conf
|
|
|
|
|
|
|
|
|
|
|
|
Patch0: opencv-4.1.0-install_3rdparty_licenses.patch
|
|
|
|
Patch0: opencv-4.1.0-install_3rdparty_licenses.patch
|
|
|
|
Patch2: https://github.com/opencv/opencv/commit/8d88bb06b230b5c4b5bca78d84102f5d1adf48cf.patch
|
|
|
|
|
|
|
|
Patch3: opencv.python.patch
|
|
|
|
Patch3: opencv.python.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
@ -255,7 +257,6 @@ popd &>/dev/null
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%patch0 -p1 -b .install_3rdparty_licenses
|
|
|
|
%patch0 -p1 -b .install_3rdparty_licenses
|
|
|
|
%patch2 -p1 -b .ppc64le_builtin_altivec_vadub
|
|
|
|
|
|
|
|
%patch3 -p1 -b .python_install_binary
|
|
|
|
%patch3 -p1 -b .python_install_binary
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{name}_contrib-%{version}
|
|
|
|
pushd %{name}_contrib-%{version}
|
|
|
@ -396,21 +397,21 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
%files core
|
|
|
|
%files core
|
|
|
|
%license LICENSE
|
|
|
|
%license LICENSE
|
|
|
|
%{_datadir}/licenses/opencv4/
|
|
|
|
%{_datadir}/licenses/opencv4/
|
|
|
|
%{_libdir}/libopencv_calib3d.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_calib3d.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_core.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_core.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_dnn.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_dnn.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_features2d.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_features2d.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_flann.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_flann.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_gapi.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_gapi.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_highgui.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_highgui.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_imgcodecs.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_imgcodecs.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_imgproc.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_imgproc.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_ml.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_ml.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_objdetect.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_objdetect.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_photo.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_photo.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_stitching.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_stitching.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_video.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_video.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_videoio.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_videoio.so.{%{abiver},%{version}}
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/opencv4
|
|
|
|
%dir %{_includedir}/opencv4
|
|
|
@ -437,55 +438,61 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files contrib
|
|
|
|
%files contrib
|
|
|
|
%{_libdir}/libopencv_alphamat.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_alphamat.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_aruco.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_aruco.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_bgsegm.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_bgsegm.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_barcode.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_barcode.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_bioinspired.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_bioinspired.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_ccalib.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_ccalib.so.{%{abiver},%{version}}
|
|
|
|
%{?with_cuda:
|
|
|
|
%{?with_cuda:
|
|
|
|
%{_libdir}/libopencv_cuda*.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_cuda*.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_cudev.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_cudev.so.{%{abiver},%{version}}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%{_libdir}/libopencv_cvv.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_cvv.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_datasets.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_datasets.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_dnn_objdetect.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_dnn_objdetect.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_dnn_superres.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_dnn_superres.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_dpm.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_dpm.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_face.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_face.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_freetype.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_freetype.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_fuzzy.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_fuzzy.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_hdf.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_hdf.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_hfs.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_hfs.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_img_hash.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_img_hash.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_intensity_transform.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_intensity_transform.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_line_descriptor.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_line_descriptor.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_mcc.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_mcc.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_optflow.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_optflow.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_phase_unwrapping.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_phase_unwrapping.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_plot.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_plot.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_quality.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_quality.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_rapid.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_rapid.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_reg.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_reg.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_rgbd.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_rgbd.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_saliency.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_saliency.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_shape.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_shape.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_stereo.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_stereo.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_structured_light.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_structured_light.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_superres.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_superres.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_surface_matching.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_surface_matching.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_text.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_text.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_tracking.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_tracking.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_videostab.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_videostab.so.{%{abiver},%{version}}
|
|
|
|
%if %{with vtk}
|
|
|
|
%if %{with vtk}
|
|
|
|
%{_libdir}/libopencv_viz.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_viz.so.{%{abiver},%{version}}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%{_libdir}/libopencv_wechat_qrcode.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_wechat_qrcode.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_ximgproc.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_ximgproc.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_xobjdetect.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_xobjdetect.so.{%{abiver},%{version}}
|
|
|
|
%{_libdir}/libopencv_xphoto.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_xphoto.so.{%{abiver},%{version}}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Jun 17 2022 Sérgio Basto <sergio@serjux.com> - 4.6.0-1
|
|
|
|
|
|
|
|
- Update opencv to 4.6.0 (#2094603)
|
|
|
|
|
|
|
|
- Remove hack to keep old so version
|
|
|
|
|
|
|
|
- Adapt spec to new so version ${OPENCV_VERSION_MAJOR}${OPENCV_VERSION_MINOR_2DIGITS}
|
|
|
|
|
|
|
|
and drop OPENCV_VERSION_PATCH
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 4.5.5-9
|
|
|
|
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 4.5.5-9
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
|
|