|
|
@ -53,8 +53,8 @@
|
|
|
|
%bcond_without java
|
|
|
|
%bcond_without java
|
|
|
|
|
|
|
|
|
|
|
|
%global srcname opencv
|
|
|
|
%global srcname opencv
|
|
|
|
%global abiver 3.4
|
|
|
|
%global abiver 4.1
|
|
|
|
%global javaver 346
|
|
|
|
%global javaver 411
|
|
|
|
|
|
|
|
|
|
|
|
# Required because opencv-core has lot of spurious dependencies
|
|
|
|
# Required because opencv-core has lot of spurious dependencies
|
|
|
|
# (despite supposed to be "-core")
|
|
|
|
# (despite supposed to be "-core")
|
|
|
@ -63,8 +63,8 @@
|
|
|
|
%global optflags %(echo %{optflags} -Wl,--as-needed )
|
|
|
|
%global optflags %(echo %{optflags} -Wl,--as-needed )
|
|
|
|
|
|
|
|
|
|
|
|
Name: opencv
|
|
|
|
Name: opencv
|
|
|
|
Version: 3.4.6
|
|
|
|
Version: 4.1.1
|
|
|
|
Release: 9%{?dist}
|
|
|
|
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
|
|
|
@ -76,7 +76,9 @@ URL: https://opencv.org
|
|
|
|
#
|
|
|
|
#
|
|
|
|
Source0: %{name}-clean-%{version}.tar.gz
|
|
|
|
Source0: %{name}-clean-%{version}.tar.gz
|
|
|
|
Source1: %{name}_contrib-clean-%{version}.tar.gz
|
|
|
|
Source1: %{name}_contrib-clean-%{version}.tar.gz
|
|
|
|
Patch2: opencv-4.1.0-install_3rdparty_licenses.patch
|
|
|
|
#Source2: https://github.com/opencv/ade/archive/37479d90e3a5d47f132f512b22cbe206#v0.1.1d.zip
|
|
|
|
|
|
|
|
Source3: face_landmark_model.dat.xz
|
|
|
|
|
|
|
|
#Source4: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: libtool
|
|
|
@ -247,11 +249,6 @@ rm -r 3rdparty/
|
|
|
|
mkdir 3rdparty/
|
|
|
|
mkdir 3rdparty/
|
|
|
|
mv quirc/ 3rdparty/
|
|
|
|
mv quirc/ 3rdparty/
|
|
|
|
|
|
|
|
|
|
|
|
%patch2 -p1 -b .install_3rdparty_licenses
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%ifarch %{ix86} %{arm}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pushd %{name}_contrib-%{version}
|
|
|
|
pushd %{name}_contrib-%{version}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
@ -262,6 +259,12 @@ popd
|
|
|
|
mkdir -p build
|
|
|
|
mkdir -p build
|
|
|
|
pushd build
|
|
|
|
pushd build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p share/opencv4/testdata/cv/face
|
|
|
|
|
|
|
|
install -pm 0644 %{SOURCE3} share/opencv4/testdata/cv/face
|
|
|
|
|
|
|
|
pushd share/opencv4/testdata/cv/face
|
|
|
|
|
|
|
|
xz -d face_landmark_model.dat.xz
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
# disabling IPP because it is closed source library from intel
|
|
|
|
# disabling IPP because it is closed source library from intel
|
|
|
|
|
|
|
|
|
|
|
|
%cmake CMAKE_VERBOSE=1 \
|
|
|
|
%cmake CMAKE_VERBOSE=1 \
|
|
|
@ -439,6 +442,9 @@ popd
|
|
|
|
%{_libdir}/libopencv_xphoto.so.%{abiver}*
|
|
|
|
%{_libdir}/libopencv_xphoto.so.%{abiver}*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Fri Sep 13 2019 Nicolas Chauvet <kwizart@gmail.com> - 4.1.1-1
|
|
|
|
|
|
|
|
- Update to 4.1.1
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 13 2019 Sérgio Basto <sergio@serjux.com> - 3.4.6-9
|
|
|
|
* Fri Sep 13 2019 Sérgio Basto <sergio@serjux.com> - 3.4.6-9
|
|
|
|
- Reenable pylint and vtk, they are working now.
|
|
|
|
- Reenable pylint and vtk, they are working now.
|
|
|
|
|
|
|
|
|
|
|
|