|
@@ -1,15 +1,20 @@
|
|
|
|
+%bcond_with test
|
|
|
|
+
|
|
|
|
+%bcond_without gstreamer
|
|
#global indice a
|
|
#global indice a
|
|
|
|
|
|
Name: opencv
|
|
Name: opencv
|
|
-Version: 2.4.9
|
|
+Version: 4.3.0
|
|
-Release: 8%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
Summary: Collection of algorithms for computer vision
|
|
Summary: Collection of algorithms for computer vision
|
|
Summary(ja): コンピュータビジョン用のアルゴリズム集
|
|
Summary(ja): コンピュータビジョン用のアルゴリズム集
|
|
-
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
# This is normal three clause BSD.
|
|
# This is normal three clause BSD.
|
|
License: BSD
|
|
License: BSD
|
|
-URL: http://opencv.org
|
|
+URL: https://opencv.org
|
|
|
|
|
|
# Need to remove SIFT/SURF from source tarball, due to legal concerns
|
|
# Need to remove SIFT/SURF from source tarball, due to legal concerns
|
|
# rm -f opencv-%%{version}/modules/nonfree/src/sift.cpp
|
|
# rm -f opencv-%%{version}/modules/nonfree/src/sift.cpp
|
|
@@ -17,74 +22,59 @@ URL: http://opencv.org
|
|
# Removed because we don't use pre-built contribs
|
|
# Removed because we don't use pre-built contribs
|
|
# rm -rf 3rdparty
|
|
# rm -rf 3rdparty
|
|
#Source0: http://downloads.sourceforge.net/opencvlibrary/opencv-unix/%{version}/%{name}-%{version}%{?indice}.zip
|
|
#Source0: http://downloads.sourceforge.net/opencvlibrary/opencv-unix/%{version}/%{name}-%{version}%{?indice}.zip
|
|
-Source0: %{name}-clean-%{version}%{?indice}.tar.xz
|
|
+Source0: %{name}-clean-%{version}.tar.gz
|
|
-Source1: opencv-samples-Makefile
|
|
+Source1: %{name}_contrib-clean-%{version}.tar.gz
|
|
-Patch0: opencv-pkgcmake.patch
|
|
+Source2: %{name}_extra-clean-%{version}.tar.gz
|
|
-#http://code.opencv.org/issues/2720
|
|
+Source3: face_landmark_model.dat.xz
|
|
-Patch2: OpenCV-2.4.4-pillow.patch
|
|
+# from https://github.com/opencv/ade/archive/v0.1.1f.zip
|
|
-Patch3: opencv-2.4.9-ts_static.patch
|
|
+Source4: b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
|
|
-# fix/simplify cmake config install location (upstreamable)
|
|
+Source5: xorg.conf
|
|
-# https://bugzilla.redhat.com/1031312
|
|
+
|
|
-Patch4: opencv-2.4.7-cmake_paths.patch
|
|
+Patch0: opencv-4.1.0-install_3rdparty_licenses.patch
|
|
-
|
|
+Patch1: https://patch-diff.githubusercontent.com/raw/opencv/opencv/pull/17431.patch
|
|
-# relevant gst1-related patches from upstream master branch
|
|
+Patch2: https://patch-diff.githubusercontent.com/raw/opencv/opencv_contrib/pull/2549.patch
|
|
-# 0550 needed slight rebasing -- rex
|
|
+# Comment out removed vulkan symbols
|
|
-Patch10: 0550-bomb-commit-of-gstreamer-videocapture-and-videowrite.patch
|
|
+Patch3: opencv_vulkan.patch
|
|
-Patch11: 0552-eliminated-warnings.patch
|
|
|
|
-Patch12: 0587-Fix-build-with-gstreamer-0.10.28.patch
|
|
|
|
-Patch13: 0865-gstreamer-cleaning-up-resources.patch
|
|
|
|
-Patch14: 0871-allow-for-arbitraty-number-of-sources-and-sinks.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: libtool
|
|
BuildRequires: libtool
|
|
BuildRequires: cmake >= 2.6.3
|
|
BuildRequires: cmake >= 2.6.3
|
|
BuildRequires: chrpath
|
|
BuildRequires: chrpath
|
|
|
|
|
|
-%if "%{?_dist_release}" == "vl6"
|
|
|
|
-BuildRequires: eigen2-devel
|
|
|
|
-%else
|
|
|
|
BuildRequires: eigen3-devel
|
|
BuildRequires: eigen3-devel
|
|
-%endif
|
|
|
|
-BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: libtheora-devel
|
|
BuildRequires: libtheora-devel
|
|
BuildRequires: libvorbis-devel
|
|
BuildRequires: libvorbis-devel
|
|
-BuildRequires: libraw1394-devel
|
|
+#BuildRequires: libraw1394-devel
|
|
-BuildRequires: libdc1394-devel
|
|
+#BuildRequires: libdc1394-devel
|
|
BuildRequires: jasper-devel
|
|
BuildRequires: jasper-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libtiff-devel
|
|
-%if "%{?_dist_release}" != "vl6"
|
|
|
|
BuildRequires: libv4l-devel
|
|
BuildRequires: libv4l-devel
|
|
-%endif
|
|
+BuildRequires: libwebp-devel
|
|
BuildRequires: mesa-libGL-devel
|
|
BuildRequires: mesa-libGL-devel
|
|
-BuildRequires: gtkglext-devel
|
|
|
|
BuildRequires: OpenEXR-devel
|
|
BuildRequires: OpenEXR-devel
|
|
#ifarch %{ix86} x86_64
|
|
#ifarch %{ix86} x86_64
|
|
#BuildRequires: openni-devel
|
|
#BuildRequires: openni-devel
|
|
#BuildRequires: openni-primesense
|
|
#BuildRequires: openni-primesense
|
|
#endif
|
|
#endif
|
|
-
|
|
|
|
-%if "%{?_dist_release}" != "vl6"
|
|
|
|
-%ifarch %{ix86} x86_64 ia64 ppc ppc64
|
|
|
|
BuildRequires: tbb-devel
|
|
BuildRequires: tbb-devel
|
|
-%endif
|
|
+
|
|
-%endif
|
|
+BuildRequires: qt5-qtbase-devel
|
|
|
|
+BuildRequires: freetype2-devel
|
|
|
|
+BuildRequires: harfbuzz-devel
|
|
|
|
|
|
BuildRequires: zlib-devel pkgconfig
|
|
BuildRequires: zlib-devel pkgconfig
|
|
-BuildRequires: python-devel
|
|
+BuildRequires: python3-devel
|
|
-BuildRequires: numpy
|
|
+BuildRequires: python3-setuptools
|
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
|
+BuildRequires: python3-numpy
|
|
BuildRequires: swig >= 1.3.24
|
|
BuildRequires: swig >= 1.3.24
|
|
-BuildRequires: python-sphinx
|
|
+#BuildRequires: python-sphinx
|
|
#BuildRequires: ffmpeg-devel >= 0.4.9
|
|
#BuildRequires: ffmpeg-devel >= 0.4.9
|
|
|
|
|
|
-%if "%{?_dist_release}" == "vl6"
|
|
|
|
-BuildRequires: gstreamer-devel
|
|
|
|
-BuildRequires: gstreamer-plugins-base-devel
|
|
|
|
-%else
|
|
|
|
BuildRequires: gstreamer1-devel
|
|
BuildRequires: gstreamer1-devel
|
|
BuildRequires: gstreamer1-plugins-base-devel
|
|
BuildRequires: gstreamer1-plugins-base-devel
|
|
-%endif
|
|
|
|
#BuildRequires: xine-lib-devel
|
|
#BuildRequires: xine-lib-devel
|
|
#BuildRequires: opencl-headers
|
|
#BuildRequires: opencl-headers
|
|
|
|
|
|
@@ -101,6 +91,7 @@ and Computer Vision algorithms.
|
|
Summary: OpenCV core libraries
|
|
Summary: OpenCV core libraries
|
|
Summary(ja): OpenCV コアライブラリ
|
|
Summary(ja): OpenCV コアライブラリ
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
|
|
+Obsoletes: %{name}-python < %{version}-%{release}
|
|
|
|
|
|
%description core
|
|
%description core
|
|
This package contains the OpenCV C/C++ core libraries.
|
|
This package contains the OpenCV C/C++ core libraries.
|
|
@@ -117,97 +108,117 @@ documentation. It should be installed if you want to develop programs that
|
|
will use the OpenCV library. You should consider installing opencv-devel-docs
|
|
will use the OpenCV library. You should consider installing opencv-devel-docs
|
|
package.
|
|
package.
|
|
|
|
|
|
-%package devel-docs
|
|
+%package -n python3-opencv
|
|
-Summary: Development files for using the OpenCV library
|
|
|
|
-Summary(ja): OpenCV ライブラリを使用するための開発用ドキュメント
|
|
|
|
-Group: Documentation
|
|
|
|
-Requires: opencv-devel = %{version}-%{release}
|
|
|
|
-BuildArch: noarch
|
|
|
|
-
|
|
|
|
-%description devel-docs
|
|
|
|
-This package contains the OpenCV documentation and examples programs.
|
|
|
|
-
|
|
|
|
-%package python
|
|
|
|
Summary: Python bindings for apps which use OpenCV
|
|
Summary: Python bindings for apps which use OpenCV
|
|
-Summary(ja): OpenCV 使用するアプリケーション用の Python バインディング
|
|
+Summary(ja): OpenCV を使用するアプリケーション用の Python バインディング
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: opencv = %{version}-%{release}
|
|
Requires: opencv = %{version}-%{release}
|
|
-Requires: numpy
|
|
+Requires: python3-numpy
|
|
|
|
|
|
-%description python
|
|
+%description -n python3-opencv
|
|
This package contains Python bindings for the OpenCV library.
|
|
This package contains Python bindings for the OpenCV library.
|
|
|
|
|
|
|
|
+%package contrib
|
|
|
|
+Summary: OpenCV contributed functionality
|
|
|
|
+Summary(ja): 寄付された OpenCV の追加機能
|
|
|
|
|
|
-%prep
|
|
+%description contrib
|
|
-%setup -q
|
|
+This package is intended for development of so-called "extra" modules, contribut
|
|
-%patch0 -p1 -b .pkgcmake
|
|
+ed
|
|
-%patch2 -p1 -b .pillow
|
|
+functionality. New modules quite often do not have stable API, and they are not
|
|
-%patch3 -p1 -b .ts_static
|
|
+well-tested. Thus, they shouldn't be released as a part of official OpenCV
|
|
-%patch4 -p1 -b .cmake_paths
|
|
+distribution, since the library maintains binary compatibility, and tries
|
|
|
|
+to provide decent performance and stability.
|
|
|
|
|
|
-# for gst1
|
|
|
|
-%patch10 -p1 -b .10
|
|
|
|
-%patch11 -p1 -b .11
|
|
|
|
-%patch12 -p1 -b .12
|
|
|
|
-%patch13 -p1 -b .13
|
|
|
|
-%patch14 -p1 -b .14
|
|
|
|
|
|
|
|
-# fix dos end of lines
|
|
+%prep
|
|
-sed -i 's|\r||g' samples/c/adaptiveskindetector.cpp
|
|
+%setup -q -a1 -a2
|
|
|
|
+# we don't use pre-built contribs except quirc
|
|
|
|
+pushd 3rdparty
|
|
|
|
+shopt -s extglob
|
|
|
|
+rm -r !(openexr|openvx|quirc)
|
|
|
|
+shopt -u extglob
|
|
|
|
+popd &>/dev/null
|
|
|
|
+
|
|
|
|
+%patch0 -p1 -b .install_3rdparty_licenses
|
|
|
|
+%patch1 -p1
|
|
|
|
+%patch3 -p1
|
|
|
|
+
|
|
|
|
+pushd %{name}_contrib-%{version}
|
|
|
|
+%patch2 -p1
|
|
|
|
+popd
|
|
|
|
+
|
|
|
|
+# Install ADE, needed for opencv_gapi
|
|
|
|
+mkdir -p .cache/ade
|
|
|
|
+install -pm 0644 %{SOURCE4} .cache/ade/
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
# enabled by default if libraries are presents at build time:
|
|
# enabled by default if libraries are presents at build time:
|
|
-# GTK, GSTREAMER, UNICAP, 1394, V4L
|
|
+# GTK, GSTREAMER, 1394, V4L
|
|
# non available on Fedora: FFMPEG, XINE
|
|
# non available on Fedora: FFMPEG, XINE
|
|
mkdir -p build
|
|
mkdir -p build
|
|
pushd build
|
|
pushd build
|
|
|
|
+
|
|
|
|
+rm -rf share/opencv4/testdata/cv/face
|
|
|
|
+mkdir -p share/opencv4/testdata/cv/face
|
|
|
|
+install -pm 0644 %{SOURCE3} share/opencv4/testdata/cv/face
|
|
|
|
+pushd share/opencv4/testdata/cv/face
|
|
|
|
+ xz -d face_landmark_model.dat.xz
|
|
|
|
+popd
|
|
|
|
+
|
|
|
|
+# disabling IPP because it is closed source library from intel
|
|
|
|
+
|
|
%cmake CMAKE_VERBOSE=1 \
|
|
%cmake CMAKE_VERBOSE=1 \
|
|
- -DPYTHON_PACKAGES_PATH=%{python_sitearch} \
|
|
+ -DWITH_IPP=OFF \
|
|
- -DCMAKE_SKIP_RPATH=ON \
|
|
+ -DWITH_ITT=OFF \
|
|
- -DENABLE_PRECOMPILED_HEADERS:BOOL=OFF \
|
|
+ -DWITH_QT=ON \
|
|
|
|
+ -DWITH_OPENGL=ON \
|
|
|
|
+ -DOpenGL_GL_PREFERENCE=GLVND \
|
|
|
|
+ -DWITH_GDAL=ON \
|
|
|
|
+ -DWITH_OPENEXR=ON \
|
|
|
|
+ -DWITH_UNICAP=ON \
|
|
|
|
+ -DCMAKE_SKIP_RPATH=ON \
|
|
|
|
+ -DWITH_CAROTENE=OFF \
|
|
%ifnarch x86_64 ia64
|
|
%ifnarch x86_64 ia64
|
|
- -DENABLE_SSE=0 \
|
|
+ -DENABLE_SSE=0 \
|
|
- -DENABLE_SSE2=0 \
|
|
+ -DENABLE_SSE2=0 \
|
|
-%endif
|
|
|
|
- -DENABLE_SSE3=0 \
|
|
|
|
- -DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \
|
|
|
|
- -DBUILD_TEST=1 \
|
|
|
|
- -DBUILD_opencv_java=0 \
|
|
|
|
- -DBUILD_opencv_nonfree=0 \
|
|
|
|
- -DBUILD_opencv_gpu=0 \
|
|
|
|
- -DWITH_FFMPEG=0 \
|
|
|
|
- -DWITH_GSTREAMER_1_X=1 \
|
|
|
|
- -DWITH_OPENGL=1 \
|
|
|
|
- -DWITH_OPENMP=1 \
|
|
|
|
-%if "%{?_dist_release}" == "vl6"
|
|
|
|
- -DWITH_V4L=0 \
|
|
|
|
%else
|
|
%else
|
|
-%ifarch %{ix86} x86_64 ia64
|
|
+ -DCPU_BASELINE=SSE2 \
|
|
- -DWITH_TBB=1 -DTBB_LIB_DIR=%{_libdir} \
|
|
|
|
-%endif
|
|
|
|
%endif
|
|
%endif
|
|
- -DWITH_XINE=0 \
|
|
+ -DENABLE_PRECOMPILED_HEADERS=OFF \
|
|
- -DINSTALL_C_EXAMPLES=1 \
|
|
+ -DCMAKE_BUILD_TYPE=ReleaseWithDebInfo \
|
|
- -DINSTALL_PYTHON_EXAMPLES=1 \
|
|
+ -DBUILD_opencv_java=OFF \
|
|
- ..
|
|
+ %{?with_tbb: -DWITH_TBB=ON } \
|
|
-
|
|
+ %{!?with_gstreamer: -DWITH_GSTREAMER=OFF } \
|
|
-
|
|
+ -DWITH_FFMPEG=OFF \
|
|
-#{?_without_gstreamer:-DWITH_GSTREAMER=0} \
|
|
+ %{?with_openni: -DWITH_OPENNI=ON } \
|
|
-
|
|
+ -DWITH_XINE=OFF \
|
|
-#%{?_with_cuda: \
|
|
+ -DBUILD_DOCS=OFF \
|
|
-# -DCUDA_TOOLKIT_ROOT_DIR=%{?_cuda_topdir} \
|
|
+ -DBUILD_EXAMPLES=OFF \
|
|
-# -DCUDA_VERBOSE_BUILD=1 \
|
|
+ -DBUILD_opencv_python2=OFF \
|
|
-# -DCUDA_PROPAGATE_HOST_FLAGS=0 \
|
|
+ -DINSTALL_C_EXAMPLES=OFF \
|
|
-#} \
|
|
+ -DINSTALL_PYTHON_EXAMPLES=OFF \
|
|
-
|
|
+ -DPYTHON3_EXECUTABLE=%{__python3} \
|
|
- #%ifarch %{ix86} x86_64
|
|
+ -DPYTHON3_PACKAGES_PATH=%{python3_sitearch} \
|
|
-#%{?_with_openni: \
|
|
+ -DENABLE_PYLINT=ON \
|
|
-# -DWITH_OPENNI=ON \
|
|
+ -DBUILD_PROTOBUF=OFF \
|
|
-#} \
|
|
+ -DPROTOBUF_UPDATE_FILES=ON \
|
|
-#%endif
|
|
+ -DWITH_OPENCL=OFF \
|
|
-
|
|
+ -DOPENCV_SKIP_PYTHON_LOADER=ON \
|
|
-# -DOPENCL_INCLUDE_DIR=${_includedir}/CL \
|
|
+ -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-%{version}/modules \
|
|
|
|
+ -DWITH_LIBV4L=ON \
|
|
|
|
+ -DWITH_OPENMP=ON \
|
|
|
|
+ -DOPENCV_CONFIG_INSTALL_PATH=%{_lib}/cmake/OpenCV \
|
|
|
|
+ -DOPENCV_GENERATE_PKGCONFIG=ON \
|
|
|
|
+ -DOPENCV_TEST_DATA_PATH=opencv_extra-%{version}/testdata \
|
|
|
|
+ %{?with_gdcm: -DWITH_GDCM=ON } \
|
|
|
|
+ %{?with_libmfx: -DWITH_MFX=ON } \
|
|
|
|
+ %{?with_clp: -DWITH_CLP=ON } \
|
|
|
|
+ %{?with_va: -DWITH_VA=ON } \
|
|
|
|
+ -DWITH_VTK=OFF \
|
|
|
|
+ -DWITH_TBB=1 -DTBB_LIB_DIR=%{_libdir} \
|
|
|
|
+ ..
|
|
|
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
|
|
@@ -216,86 +227,131 @@ popd
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
-rm -rf __devel-doc
|
|
+%make_install -C build
|
|
-pushd build
|
|
|
|
-make install DESTDIR=%{buildroot} INSTALL="install -p" CPPROG="cp -p"
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
|
find %{buildroot} -name '*.la' -delete
|
|
|
|
+rm -rf %{buildroot}%{_datadir}/OpenCV/licenses/
|
|
|
|
|
|
-rm -f %{buildroot}%{_datadir}/OpenCV/samples/c/build_all.sh \
|
|
|
|
- %{buildroot}%{_datadir}/OpenCV/samples/c/cvsample.dsp \
|
|
|
|
- %{buildroot}%{_datadir}/OpenCV/samples/c/cvsample.vcproj \
|
|
|
|
- %{buildroot}%{_datadir}/OpenCV/samples/c/facedetect.cmd
|
|
|
|
-install -pm644 %{SOURCE1} %{buildroot}%{_datadir}/OpenCV/samples/c/GNUmakefile
|
|
|
|
-
|
|
|
|
-# remove unnecessary documentation
|
|
|
|
-rm -rf %{buildroot}%{_datadir}/OpenCV/doc
|
|
|
|
-
|
|
|
|
-popd
|
|
|
|
|
|
|
|
|
|
+%if %{with test}
|
|
%check
|
|
%check
|
|
# Check fails since we don't support most video
|
|
# Check fails since we don't support most video
|
|
# read/write capability and we don't provide a display
|
|
# read/write capability and we don't provide a display
|
|
# ARGS=-V increases output verbosity
|
|
# ARGS=-V increases output verbosity
|
|
-# Make test is unavailble as of 2.3.1
|
|
|
|
-%if 0
|
|
|
|
-#ifnarch ppc64
|
|
|
|
pushd build
|
|
pushd build
|
|
- LD_LIBRARY_PATH=%{_builddir}/%{tar_name}-%{version}/lib:$LD_LIBARY_PATH make test ARGS=-V || :
|
|
+ cp %SOURCE5 .
|
|
|
|
+ if [ -x /usr/libexec/Xorg ]; then
|
|
|
|
+ Xorg=/usr/libexec/Xorg
|
|
|
|
+ else
|
|
|
|
+ Xorg=/usr/libexec/Xorg.bin
|
|
|
|
+ fi
|
|
|
|
+ $Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xorg.log -config ./xorg.conf -configdir . :99 &
|
|
|
|
+ export DISPLAY=:99
|
|
|
|
+ LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/build/lib:$LD_LIBARY_PATH make test ARGS=-V || :
|
|
popd
|
|
popd
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
+
|
|
%post core -p /sbin/ldconfig
|
|
%post core -p /sbin/ldconfig
|
|
%postun core -p /sbin/ldconfig
|
|
%postun core -p /sbin/ldconfig
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
+%post contrib -p /sbin/ldconfig
|
|
|
|
+%postun contrib -p /sbin/ldconfig
|
|
|
|
+
|
|
|
|
+
|
|
%files
|
|
%files
|
|
-%doc LICENSE README.md
|
|
+%doc README.md
|
|
%{_bindir}/opencv_*
|
|
%{_bindir}/opencv_*
|
|
-%{_libdir}/libopencv_calib3d.so.2.4*
|
|
+%dir %{_datadir}/opencv4
|
|
-%{_libdir}/libopencv_contrib.so.2.4*
|
|
+%{_datadir}/opencv4/haarcascades
|
|
-%{_libdir}/libopencv_features2d.so.2.4*
|
|
+%{_datadir}/opencv4/lbpcascades
|
|
-%{_libdir}/libopencv_highgui.so.2.4*
|
|
+%{_datadir}/opencv4/valgrind*
|
|
-%{_libdir}/libopencv_legacy.so.2.4*
|
|
+%{_datadir}/opencv4/quality
|
|
-%{_libdir}/libopencv_objdetect.so.2.4*
|
|
|
|
-#{_libdir}/libopencv_ocl.so.2.4*
|
|
|
|
-%{_libdir}/libopencv_stitching.so.2.4*
|
|
|
|
-%{_libdir}/libopencv_superres.so.2.4*
|
|
|
|
-%{_libdir}/libopencv_ts.so.2.4*
|
|
|
|
-%{_libdir}/libopencv_videostab.so.2.4*
|
|
|
|
-%dir %{_datadir}/OpenCV
|
|
|
|
-%{_datadir}/OpenCV/haarcascades
|
|
|
|
-%{_datadir}/OpenCV/lbpcascades
|
|
|
|
|
|
|
|
%files core
|
|
%files core
|
|
-%{_libdir}/libopencv_core.so.2.4*
|
|
+%license LICENSE
|
|
-%{_libdir}/libopencv_flann.so.2.4*
|
|
+%{_datadir}/licenses/opencv4/
|
|
-%{_libdir}/libopencv_imgproc.so.2.4*
|
|
+%{_libdir}/libopencv_alphamat.so.*
|
|
-%{_libdir}/libopencv_ml.so.2.4*
|
|
+%{_libdir}/libopencv_core.so.*
|
|
-%{_libdir}/libopencv_photo.so.2.4*
|
|
+%{_libdir}/libopencv_cvv.so.*
|
|
-%{_libdir}/libopencv_video.so.2.4*
|
|
+%{_libdir}/libopencv_features2d.so.*
|
|
|
|
+%{_libdir}/libopencv_flann.so.*
|
|
|
|
+%{_libdir}/libopencv_gapi.so.*
|
|
|
|
+%{_libdir}/libopencv_hfs.so.*
|
|
|
|
+%{_libdir}/libopencv_highgui.so.*
|
|
|
|
+%{_libdir}/libopencv_imgcodecs.so.*
|
|
|
|
+%{_libdir}/libopencv_imgproc.so.*
|
|
|
|
+%{_libdir}/libopencv_intensity_transform.so.*
|
|
|
|
+%{_libdir}/libopencv_ml.so.*
|
|
|
|
+%{_libdir}/libopencv_objdetect.so.*
|
|
|
|
+%{_libdir}/libopencv_photo.so.*
|
|
|
|
+%{_libdir}/libopencv_rapid.so.*
|
|
|
|
+%{_libdir}/libopencv_shape.so.*
|
|
|
|
+%{_libdir}/libopencv_stitching.so.*
|
|
|
|
+%{_libdir}/libopencv_superres.so.*
|
|
|
|
+%{_libdir}/libopencv_video.so.*
|
|
|
|
+%{_libdir}/libopencv_videoio.so.*
|
|
|
|
+%{_libdir}/libopencv_videostab.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
-%{_includedir}/opencv
|
|
+%dir %{_includedir}/opencv4
|
|
-%{_includedir}/opencv2
|
|
+%{_includedir}/opencv4/opencv2
|
|
%{_libdir}/lib*.so
|
|
%{_libdir}/lib*.so
|
|
-%{_libdir}/pkgconfig/opencv.pc
|
|
+%{_libdir}/pkgconfig/opencv*.pc
|
|
-%dir %{_libdir}/OpenCV/
|
|
+%{_libdir}/cmake/OpenCV/*.cmake
|
|
-%{_libdir}/OpenCV/*.cmake
|
|
+
|
|
|
|
+%files -n python3-opencv
|
|
|
|
+%exclude %{_bindir}/setup_vars_opencv4.sh
|
|
|
|
+%{python3_sitearch}/cv2.cpython-3*.so
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%files contrib
|
|
|
|
+%{_libdir}/libopencv_aruco.so.*
|
|
|
|
+%{_libdir}/libopencv_bgsegm.so.*
|
|
|
|
+%{_libdir}/libopencv_bioinspired.so.*
|
|
|
|
+%{_libdir}/libopencv_calib3d.so.*
|
|
|
|
+%{_libdir}/libopencv_ccalib.so.*
|
|
|
|
+%{_libdir}/libopencv_datasets.so.*
|
|
|
|
+# needs protobuf
|
|
|
|
+#{_libdir}/libopencv_dnn.so.*
|
|
|
|
+#{_libdir}/libopencv_dnn_objdetect.so.*
|
|
|
|
+#{_libdir}/libopencv_dnn_superres.so.*
|
|
|
|
+%{_libdir}/libopencv_dpm.so.*
|
|
|
|
+%{_libdir}/libopencv_face.so.*
|
|
|
|
+%{_libdir}/libopencv_freetype.so.*
|
|
|
|
+%{_libdir}/libopencv_fuzzy.so.*
|
|
|
|
+# needs hdf5
|
|
|
|
+#{_libdir}/libopencv_hdf.so.*
|
|
|
|
+%{_libdir}/libopencv_img_hash.so.*
|
|
|
|
+%{_libdir}/libopencv_line_descriptor.so.*
|
|
|
|
+%{_libdir}/libopencv_optflow.so.*
|
|
|
|
+%{_libdir}/libopencv_phase_unwrapping.so.*
|
|
|
|
+%{_libdir}/libopencv_plot.so.*
|
|
|
|
+%{_libdir}/libopencv_reg.so.*
|
|
|
|
+%{_libdir}/libopencv_rgbd.so.*
|
|
|
|
+%{_libdir}/libopencv_quality.so.*
|
|
|
|
+%{_libdir}/libopencv_saliency.so.*
|
|
|
|
+%{_libdir}/libopencv_stereo.so.*
|
|
|
|
+%{_libdir}/libopencv_structured_light.so.*
|
|
|
|
+%{_libdir}/libopencv_surface_matching.so.*
|
|
|
|
+# needs tesseract
|
|
|
|
+#{_libdir}/libopencv_text.so.*
|
|
|
|
+%{_libdir}/libopencv_tracking.so.*
|
|
|
|
+%{_libdir}/libopencv_ximgproc.so.*
|
|
|
|
+%{_libdir}/libopencv_xobjdetect.so.*
|
|
|
|
+%{_libdir}/libopencv_xphoto.so.*
|
|
|
|
|
|
-%files devel-docs
|
|
|
|
-%doc doc/*.{htm,png,jpg}
|
|
|
|
-%doc %{_datadir}/OpenCV/samples
|
|
|
|
-
|
|
|
|
-%files python
|
|
|
|
-%{python_sitearch}/cv.py*
|
|
|
|
-%{python_sitearch}/cv2.so
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Jun 30 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.3.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Mon Mar 27 2017 Daisuke SUZUKI <daisuke@vinelinux.org> 2.4.9-8
|
|
* Mon Mar 27 2017 Daisuke SUZUKI <daisuke@vinelinux.org> 2.4.9-8
|
|
- use eigen2 on Vine Linux 6.x
|
|
- use eigen2 on Vine Linux 6.x
|
|
- disable tbb/v4l on Vine Linux 6.x
|
|
- disable tbb/v4l on Vine Linux 6.x
|