|
|
@ -51,7 +51,7 @@ Name: opencv
|
|
|
|
Version: 4.5.5
|
|
|
|
Version: 4.5.5
|
|
|
|
%global javaver %(foo=%{version}; echo ${foo//./})
|
|
|
|
%global javaver %(foo=%{version}; echo ${foo//./})
|
|
|
|
%global abiver %(foo=%{version}; echo ${foo:0:3})
|
|
|
|
%global abiver %(foo=%{version}; echo ${foo:0:3})
|
|
|
|
Release: 6%{?dist}
|
|
|
|
Release: 7%{?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
|
|
|
@ -75,6 +75,7 @@ Source5: xorg.conf
|
|
|
|
Patch0: opencv-4.1.0-install_3rdparty_licenses.patch
|
|
|
|
Patch0: opencv-4.1.0-install_3rdparty_licenses.patch
|
|
|
|
Patch1: https://github.com/opencv/opencv/commit/81a6d1b0d4d93a3330cc99fbb1601c90b9516a9c.patch
|
|
|
|
Patch1: https://github.com/opencv/opencv/commit/81a6d1b0d4d93a3330cc99fbb1601c90b9516a9c.patch
|
|
|
|
Patch2: https://github.com/opencv/opencv/commit/8d88bb06b230b5c4b5bca78d84102f5d1adf48cf.patch
|
|
|
|
Patch2: https://github.com/opencv/opencv/commit/8d88bb06b230b5c4b5bca78d84102f5d1adf48cf.patch
|
|
|
|
|
|
|
|
Patch3: opencv.python.patch
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: cmake >= 2.6.3
|
|
|
|
BuildRequires: cmake >= 2.6.3
|
|
|
@ -256,6 +257,7 @@ popd &>/dev/null
|
|
|
|
%patch0 -p1 -b .install_3rdparty_licenses
|
|
|
|
%patch0 -p1 -b .install_3rdparty_licenses
|
|
|
|
%patch1 -p1 -R -b .soversion
|
|
|
|
%patch1 -p1 -R -b .soversion
|
|
|
|
%patch2 -p1 -b .ppc64le_builtin_altivec_vadub
|
|
|
|
%patch2 -p1 -b .ppc64le_builtin_altivec_vadub
|
|
|
|
|
|
|
|
%patch3 -p1 -b .python_install_binary
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{name}_contrib-%{version}
|
|
|
|
pushd %{name}_contrib-%{version}
|
|
|
|
#patch1 -p1 -b .install_cvv
|
|
|
|
#patch1 -p1 -b .install_cvv
|
|
|
@ -328,7 +330,6 @@ install -pm 0644 %{SOURCE4} .cache/ade/
|
|
|
|
-DPROTOBUF_UPDATE_FILES=ON \
|
|
|
|
-DPROTOBUF_UPDATE_FILES=ON \
|
|
|
|
%{?with_opencl: -DOPENCL_INCLUDE_DIR=%{_includedir}/CL } \
|
|
|
|
%{?with_opencl: -DOPENCL_INCLUDE_DIR=%{_includedir}/CL } \
|
|
|
|
%{!?with_opencl: -DWITH_OPENCL=OFF } \
|
|
|
|
%{!?with_opencl: -DWITH_OPENCL=OFF } \
|
|
|
|
-DOPENCV_SKIP_PYTHON_LOADER=ON \
|
|
|
|
|
|
|
|
-DOPENCV_EXTRA_MODULES_PATH=opencv_contrib-%{version}/modules \
|
|
|
|
-DOPENCV_EXTRA_MODULES_PATH=opencv_contrib-%{version}/modules \
|
|
|
|
-DWITH_LIBV4L=ON \
|
|
|
|
-DWITH_LIBV4L=ON \
|
|
|
|
-DWITH_OPENMP=ON \
|
|
|
|
-DWITH_OPENMP=ON \
|
|
|
@ -427,7 +428,7 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
%{_datadir}/opencv4/samples
|
|
|
|
%{_datadir}/opencv4/samples
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python3-opencv
|
|
|
|
%files -n python3-opencv
|
|
|
|
%{python3_sitearch}/cv2.cpython-3*.so
|
|
|
|
%{python3_sitearch}/cv2
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with java}
|
|
|
|
%if %{with java}
|
|
|
|
%files java
|
|
|
|
%files java
|
|
|
@ -487,6 +488,9 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
|
|
|
|
%{_libdir}/libopencv_xphoto.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_xphoto.so.%{abiver}*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sun Mar 20 2022 Sérgio Basto <sergio@serjux.com> - 4.5.5-7
|
|
|
|
|
|
|
|
- Switch to new Python loader, doesn't fix rhbz #2054951 but can be a step
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Mar 10 2022 Sandro Mani <manisandro@gmail.com> - 4.5.5-6
|
|
|
|
* Thu Mar 10 2022 Sandro Mani <manisandro@gmail.com> - 4.5.5-6
|
|
|
|
- Rebuild for tesseract 5.1.0
|
|
|
|
- Rebuild for tesseract 5.1.0
|
|
|
|
|
|
|
|
|
|
|
|