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