automatic version update by autodist [release 4.1.2-1mamba;Fri Oct 11 2019]
This commit is contained in:
parent
e982cf2fb6
commit
4b1c86abad
85
opencv.spec
85
opencv.spec
@ -1,7 +1,7 @@
|
||||
%define pkgver %(echo %version | sed "s|[a-z]||")
|
||||
%define javaver %(echo %version | cut -d. -f1-3 | tr -d .)
|
||||
Name: opencv
|
||||
Version: 3.4.3
|
||||
Version: 4.1.2
|
||||
Release: 1mamba
|
||||
Summary: Collection of algorithms for computer vision
|
||||
Group: Development/Libraries
|
||||
@ -9,7 +9,7 @@ Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
||||
URL: http://opencv.willowgarage.com/wiki/
|
||||
Source: http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/%{version}/opencv-%{version}.zip
|
||||
Source: https://sourceforge.net/projects/opencvlibrary/files/%{version}/OpenCV%20%{version}.tar.gz
|
||||
#Source: http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/%{version}/opencv-%{version}.tar.gz
|
||||
Patch0: %{name}-2.1.0-libpng14.patch
|
||||
Patch1: %{name}-2.3.1-arm-build.patch
|
||||
@ -95,22 +95,23 @@ Obsoletes: opencv-python
|
||||
%description -n python-cv
|
||||
This package contains Python bindings for the OpenCV library.
|
||||
|
||||
%package -n python-cv-py3
|
||||
%package -n python-cv-py36
|
||||
Summary: Python bindings for apps which use OpenCV
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||
Requires: python-Pillow-py3
|
||||
Requires: python-numpy-py3
|
||||
Requires: python-Pillow-py36
|
||||
Requires: python-numpy-py36
|
||||
Provides: opencv-python
|
||||
Obsoletes: opencv-python
|
||||
|
||||
%description -n python-cv
|
||||
%description -n python-cv-py36
|
||||
This package contains Python bindings for the OpenCV library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -c
|
||||
#-D -T
|
||||
#:<< _EOF
|
||||
mv opencv-opencv-*/* .
|
||||
|
||||
%ifarch %{ix86}
|
||||
%patch2 -p1
|
||||
@ -168,56 +169,58 @@ rm -fr %{buildroot}%{_datadir}/opencv/doc
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/opencv_*
|
||||
%{_bindir}/setup_vars_opencv4.sh
|
||||
|
||||
%files -n libopencv
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libopencv_*.so.*
|
||||
%dir %{_datadir}/OpenCV
|
||||
%dir %{_datadir}/OpenCV/haarcascades
|
||||
%{_datadir}/OpenCV/haarcascades/*
|
||||
%dir %{_datadir}/OpenCV/lbpcascades
|
||||
%{_datadir}/OpenCV/lbpcascades/*
|
||||
%dir %{_datadir}/OpenCV/licenses
|
||||
%{_datadir}/OpenCV/licenses/*
|
||||
#% ifarch x86_64
|
||||
#%dir %{_datadir}/OpenCV/3rdparty
|
||||
#%dir %{_datadir}/OpenCV/3rdparty/lib*
|
||||
#%{_datadir}/OpenCV/3rdparty/lib*/libippicv.a
|
||||
#% endif
|
||||
%dir %{_datadir}/opencv4
|
||||
%{_datadir}/opencv4/*
|
||||
|
||||
%files -n libopencv-devel
|
||||
%defattr(-,root,root)
|
||||
%dir %{_includedir}/opencv
|
||||
%{_includedir}/opencv/*
|
||||
%dir %{_includedir}/opencv2
|
||||
%{_includedir}/opencv2/*
|
||||
%dir %{_includedir}/opencv4
|
||||
%dir %{_includedir}/opencv4/opencv2
|
||||
%{_includedir}/opencv4/opencv2/*
|
||||
%{_libdir}/libopencv_*.so
|
||||
#%{_libdir}/libopencv_ts.a
|
||||
%dir %{_datadir}/OpenCV
|
||||
#%dir %{_datadir}/OpenCV/doc
|
||||
#%{_datadir}/OpenCV/doc/*
|
||||
%{_datadir}/OpenCV/valgrind.supp
|
||||
%{_datadir}/OpenCV/valgrind_3rdparty.supp
|
||||
%{_datadir}/OpenCV/*.cmake
|
||||
%{_libdir}/pkgconfig/opencv.pc
|
||||
|
||||
%files -n java-opencv
|
||||
%defattr(-,root,root)
|
||||
%dir %{_datadir}/OpenCV/java
|
||||
%{_datadir}/OpenCV/java/libopencv_java%{javaver}.so
|
||||
%{_datadir}/OpenCV/java/opencv-%{javaver}.jar
|
||||
%dir %{_libdir}/cmake/opencv4
|
||||
%{_libdir}/cmake/opencv4/OpenCV*.cmake
|
||||
%dir %{_datadir}/licenses/opencv4
|
||||
%{_datadir}/licenses/opencv4/*
|
||||
|
||||
%ifnarch arm
|
||||
%files -n java-opencv
|
||||
%defattr(-,root,root)
|
||||
%{_datadir}/java/opencv4/libopencv_java*.so
|
||||
%{_datadir}/java/opencv4/opencv-*.jar
|
||||
|
||||
%files -n python-cv
|
||||
%defattr(-,root,root)
|
||||
%{python_sitelib}/cv2.so
|
||||
%dir %{python_sitelib}/cv2
|
||||
%{python_sitelib}/cv2/*
|
||||
|
||||
#%files -n python-cv-py3
|
||||
#%defattr(-,root,root)
|
||||
##%{python3_sitearch}/cv2.so
|
||||
%files -n python-cv-py36
|
||||
%defattr(-,root,root)
|
||||
%dir %{python36_sitelib}/cv2
|
||||
%{python36_sitelib}/cv2/*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Oct 11 2019 Automatic Build System <autodist@mambasoft.it> 4.1.2-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.1-2mamba
|
||||
- python-cv-py36: require -py36 packages, not -py3
|
||||
|
||||
* Sat Jul 27 2019 Automatic Build System <autodist@mambasoft.it> 4.1.1-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Thu Apr 25 2019 Automatic Build System <autodist@mambasoft.it> 4.1.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sat Apr 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.1-1mamba
|
||||
- update to 4.0.1
|
||||
|
||||
* Thu Aug 30 2018 Automatic Build System <autodist@mambasoft.it> 3.4.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user