!7 Add testdata
From: @shenwei41 Reviewed-by: @zhengzhenyu Signed-off-by: @zhengzhenyu
This commit is contained in:
commit
2fc5ac26e3
22
opencv.spec
22
opencv.spec
@ -4,7 +4,13 @@ Release: 1
|
||||
Summary: OpenCV means Intel® Open Source Computer Vision Library.
|
||||
License: Apache-2.0
|
||||
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: cmake
|
||||
BuildRequires: libjpeg-devel
|
||||
@ -15,11 +21,13 @@ BuildRequires: libpng-devel
|
||||
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
|
||||
and Computer Vision algorithms.
|
||||
ON
|
||||
|
||||
%global debug_package %{nil}
|
||||
|
||||
%prep
|
||||
cat %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} > %{SOURCE1}
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
tar -xvf %{SOURCE1} -C .
|
||||
|
||||
%build
|
||||
mkdir -p cmake/build
|
||||
@ -32,7 +40,11 @@ cmake ../../ -DCMAKE_BUILD_TYPE=Release -DWITH_PROTOBUF=OFF -DWITH_WEBP=OFF\
|
||||
-DBUILD_PNG=OFF\
|
||||
-DBUILD_OPENEXR=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\
|
||||
-DCMAKE_SKIP_RPATH=TRUE\
|
||||
-DBUILD_opencv_python3=OFF\
|
||||
@ -51,16 +63,16 @@ make -j24 V=1
|
||||
|
||||
%install
|
||||
cd cmake/build
|
||||
# mkdir %{buildroot}/usr/
|
||||
make install DESTDIR=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%exclude /usr/local/bin/setup_vars_opencv4.sh
|
||||
%{_bindir}/opencv_run_all_tests.sh
|
||||
%{_libdir}/*
|
||||
%{_includedir}/*
|
||||
%exclude /usr/local/share/*
|
||||
|
||||
%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
|
||||
|
||||
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