Add testdata

This commit is contained in:
shenwei41 2021-10-29 10:00:49 +08:00
parent 843bc9183b
commit 8153f7cb13
8 changed files with 16 additions and 5 deletions

View File

@ -4,7 +4,13 @@ Release: 1
Summary: OpenCV means Intel® Open Source Computer Vision Library. Summary: OpenCV means Intel® Open Source Computer Vision Library.
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/opencv/opencv URL: https://github.com/opencv/opencv
Source0: https://github.com/opencv/opencv/archive/v%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Source1: %{name}_extra-%{version}.tar.gz
Source2: opencv_extra-4.5.2.tar.gz.aa
Source3: opencv_extra-4.5.2.tar.gz.ab
Source4: opencv_extra-4.5.2.tar.gz.ac
Source5: opencv_extra-4.5.2.tar.gz.ad
Source6: opencv_extra-4.5.2.tar.gz.ae
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: libjpeg-devel
@ -15,11 +21,13 @@ BuildRequires: libpng-devel
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
C functions and a few C++ classes that implement some popular Image Processing C functions and a few C++ classes that implement some popular Image Processing
and Computer Vision algorithms. and Computer Vision algorithms.
ON
%global debug_package %{nil} %global debug_package %{nil}
%prep %prep
cat %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} > %{SOURCE1}
%autosetup -p1 -n %{name}-%{version} %autosetup -p1 -n %{name}-%{version}
tar -xvf %{SOURCE1} -C .
%build %build
mkdir -p cmake/build mkdir -p cmake/build
@ -32,7 +40,11 @@ cmake ../../ -DCMAKE_BUILD_TYPE=Release -DWITH_PROTOBUF=OFF -DWITH_WEBP=OFF\
-DBUILD_PNG=OFF\ -DBUILD_PNG=OFF\
-DBUILD_OPENEXR=ON\ -DBUILD_OPENEXR=ON\
-DBUILD_TESTS=ON\ -DBUILD_TESTS=ON\
-DBUILD_PERF_TESTS=OFF\ -DBUILD_PERF_TESTS=ON\
-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\ -DCMAKE_SKIP_RPATH=TRUE\
-DBUILD_opencv_python3=OFF\ -DBUILD_opencv_python3=OFF\
@ -51,7 +63,6 @@ make -j24 V=1
%install %install
cd cmake/build cd cmake/build
# mkdir %{buildroot}/usr/
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
%files %files
@ -62,5 +73,5 @@ make install DESTDIR=%{buildroot}
%exclude /usr/local/share/* %exclude /usr/local/share/*
%changelog %changelog
* Wed Sep 29 2021 shenwei <shenwei41@huawei.com> - 4.5.2-1 * Wed Sep 30 2021 shenwei <shenwei41@huawei.com> - 4.5.2-1
- package init - package init

BIN
opencv_extra-4.5.2.tar.gz Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.