test
This commit is contained in:
parent
4c1cc90465
commit
f62ecace94
42
opencv.spec
42
opencv.spec
@ -15,9 +15,6 @@ Patch1: Fix-OpenCV-build-with-OpenEXR-before-2.2.0.patch
|
||||
Patch2: Fix_compilation_of_copy_assignment_operators_with_GCC.patch
|
||||
BuildRequires: gcc-c++ gcc autoconf pkgconfig protobuf-compiler protobuf
|
||||
BuildRequires: cmake
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libpng-devel
|
||||
|
||||
%description
|
||||
OpenCV means Intel® Open Source Computer Vision Library. It is a collection of
|
||||
@ -30,37 +27,36 @@ and Computer Vision algorithms.
|
||||
cat %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} > %{SOURCE1}
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
tar -xvf %{SOURCE1} -C .
|
||||
pwd
|
||||
|
||||
%build
|
||||
mkdir -p cmake/build
|
||||
cd cmake/build
|
||||
cmake ../../ -DCMAKE_BUILD_TYPE=Release -DWITH_PROTOBUF=OFF -DWITH_WEBP=OFF\
|
||||
cmake ../../ -DCMAKE_BUILD_TYPE=Release\
|
||||
-DWITH_PROTOBUF=OFF\
|
||||
-DWITH_WEBP=OFF\
|
||||
-DWITH_IPP=OFF\
|
||||
-DWITH_ADE=OFF\
|
||||
-DBUILD_ZLIB=ON\
|
||||
-DBUILD_JPEG=OFF\
|
||||
-DBUILD_PNG=OFF\
|
||||
-DBUILD_JPEG=ON\
|
||||
-DBUILD_PNG=ON\
|
||||
-DBUILD_OPENEXR=ON\
|
||||
-DBUILD_TESTS=ON\
|
||||
-DBUILD_PERF_TESTS=ON\
|
||||
-DBUILD_EXAMPLES=ON\
|
||||
-DOPENCV_TEST_DATA_PATH=opencv_extra-%{version}/testdata\
|
||||
-DINSTALL_TESTS=ON\
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/local\
|
||||
-DBUILD_PERF_TESTS=OFF\
|
||||
-DBUILD_opencv_apps=OFF\
|
||||
-DCMAKE_SKIP_RPATH=TRUE\
|
||||
-DBUILD_opencv_python3=OFF\
|
||||
-DBUILD_opencv_videoio=OFF\
|
||||
-DBUILD_opencv_python3=ON\
|
||||
-DWITH_FFMPEG=OFF\
|
||||
-DWITH_TIFF=ON\
|
||||
-DBUILD_TIFF=OFF\
|
||||
-DWITH_ITT=OFF\
|
||||
-DWITH_JASPER=OFF\
|
||||
-DBUILD_JASPER=OFF\
|
||||
-DOPENCV_BIN_INSTALL_PATH=%{_bindir}\
|
||||
-DOPENCV_LIB_INSTALL_PATH=%{_libdir}\
|
||||
-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}
|
||||
-DBUILD_SHARED_LIBS=ON\
|
||||
-DBUILD_EXAMPLES=ON\
|
||||
-DOPENCV_TEST_DATA_PATH=%_builddir/%{name}-%{version}/opencv_extra-%{version}/testdata\
|
||||
-DINSTALL_TESTS=ON\
|
||||
-DCMAKE_INSTALL_PREFIX=/usr
|
||||
make -j24 V=1
|
||||
ctest -E "opencv_test_objdetect"
|
||||
|
||||
|
||||
%install
|
||||
@ -69,18 +65,18 @@ make install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%exclude /usr/local/bin/setup_vars_opencv4.sh
|
||||
%{_bindir}/opencv_run_all_tests.sh
|
||||
%exclude /usr/bin/setup_vars_opencv4.sh
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*
|
||||
%{_includedir}/*
|
||||
%exclude /usr/local/share/*
|
||||
%exclude /usr/share/*
|
||||
|
||||
%changelog
|
||||
* Wed Nov 13 2021 shenwei <shenwei41@huawei.com> - 4.5.2-3
|
||||
* Sat Nov 13 2021 shenwei <shenwei41@huawei.com> - 4.5.2-3
|
||||
- fix compilation of copy ctors/assignment operators with GCC 4.x
|
||||
|
||||
* Wed Nov 10 2021 yanhailiang <yanhailiang@huawei.com> - 4.5.2-2
|
||||
- bugFix OpenCV build with OpenEXR before 2.2.0
|
||||
|
||||
* Wed Sep 30 2021 shenwei <shenwei41@huawei.com> - 4.5.2-1
|
||||
* Thu Sep 30 2021 shenwei <shenwei41@huawei.com> - 4.5.2-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user