|
|
@ -1,5 +1,6 @@
|
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
%bcond_without tests
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
%bcond_without extras
|
|
|
|
%bcond_with ffmpeg
|
|
|
|
%bcond_with ffmpeg
|
|
|
|
%bcond_without gstreamer
|
|
|
|
%bcond_without gstreamer
|
|
|
|
%bcond_with eigen2
|
|
|
|
%bcond_with eigen2
|
|
|
@ -63,7 +64,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
|
|
|
|
|
|
|
|
%{?with_extras:
|
|
|
|
Source2: %{name}_extra-clean-%{version}.tar.gz
|
|
|
|
Source2: %{name}_extra-clean-%{version}.tar.gz
|
|
|
|
|
|
|
|
}
|
|
|
|
Source3: face_landmark_model.dat.xz
|
|
|
|
Source3: face_landmark_model.dat.xz
|
|
|
|
# from https://github.com/opencv/ade/archive/v0.1.1f.zip
|
|
|
|
# from https://github.com/opencv/ade/archive/v0.1.1f.zip
|
|
|
|
Source4: b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
|
|
|
|
Source4: b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
|
|
|
@ -239,7 +242,7 @@ distribution, since the library maintains binary compatibility, and tries
|
|
|
|
to provide decent performance and stability.
|
|
|
|
to provide decent performance and stability.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -a1 -a2
|
|
|
|
%setup -q -a1 %{?with_extras:-a2}
|
|
|
|
%if 1
|
|
|
|
%if 1
|
|
|
|
# we don't use pre-built contribs except quirc
|
|
|
|
# we don't use pre-built contribs except quirc
|
|
|
|
pushd 3rdparty
|
|
|
|
pushd 3rdparty
|
|
|
@ -331,7 +334,7 @@ install -pm 0644 %{SOURCE4} .cache/ade/
|
|
|
|
-DWITH_OPENMP=ON \
|
|
|
|
-DWITH_OPENMP=ON \
|
|
|
|
-DOPENCV_CONFIG_INSTALL_PATH=%{_lib}/cmake/OpenCV \
|
|
|
|
-DOPENCV_CONFIG_INSTALL_PATH=%{_lib}/cmake/OpenCV \
|
|
|
|
-DOPENCV_GENERATE_PKGCONFIG=ON \
|
|
|
|
-DOPENCV_GENERATE_PKGCONFIG=ON \
|
|
|
|
-DOPENCV_TEST_DATA_PATH=opencv_extra-%{version}/testdata \
|
|
|
|
%{?with_extras: -DOPENCV_TEST_DATA_PATH=opencv_extra-%{version}/testdata} \
|
|
|
|
%{?with_gdcm: -DWITH_GDCM=ON } \
|
|
|
|
%{?with_gdcm: -DWITH_GDCM=ON } \
|
|
|
|
%{?with_libmfx: -DWITH_MFX=ON } \
|
|
|
|
%{?with_libmfx: -DWITH_MFX=ON } \
|
|
|
|
%{?with_clp: -DWITH_CLP=ON } \
|
|
|
|
%{?with_clp: -DWITH_CLP=ON } \
|
|
|
|