Add testdata
This commit is contained in:
parent
843bc9183b
commit
8153f7cb13
21
opencv.spec
21
opencv.spec
@ -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
BIN
opencv_extra-4.5.2.tar.gz
Normal file
Binary file not shown.
BIN
opencv_extra-4.5.2.tar.gz.aa
Normal file
BIN
opencv_extra-4.5.2.tar.gz.aa
Normal file
Binary file not shown.
BIN
opencv_extra-4.5.2.tar.gz.ab
Normal file
BIN
opencv_extra-4.5.2.tar.gz.ab
Normal file
Binary file not shown.
BIN
opencv_extra-4.5.2.tar.gz.ac
Normal file
BIN
opencv_extra-4.5.2.tar.gz.ac
Normal file
Binary file not shown.
BIN
opencv_extra-4.5.2.tar.gz.ad
Normal file
BIN
opencv_extra-4.5.2.tar.gz.ad
Normal file
Binary file not shown.
BIN
opencv_extra-4.5.2.tar.gz.ae
Normal file
BIN
opencv_extra-4.5.2.tar.gz.ae
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user