automatic version update by autodist [release 4.1.2-1mamba;Fri Oct 11 2019]

This commit is contained in:
Automatic Build System 2024-01-06 08:10:49 +01:00
parent e982cf2fb6
commit 4b1c86abad

View File

@ -1,7 +1,7 @@
%define pkgver %(echo %version | sed "s|[a-z]||") %define pkgver %(echo %version | sed "s|[a-z]||")
%define javaver %(echo %version | cut -d. -f1-3 | tr -d .) %define javaver %(echo %version | cut -d. -f1-3 | tr -d .)
Name: opencv Name: opencv
Version: 3.4.3 Version: 4.1.2
Release: 1mamba Release: 1mamba
Summary: Collection of algorithms for computer vision Summary: Collection of algorithms for computer vision
Group: Development/Libraries Group: Development/Libraries
@ -9,7 +9,7 @@ Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com> Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://opencv.willowgarage.com/wiki/ 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 #Source: http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/%{version}/opencv-%{version}.tar.gz
Patch0: %{name}-2.1.0-libpng14.patch Patch0: %{name}-2.1.0-libpng14.patch
Patch1: %{name}-2.3.1-arm-build.patch Patch1: %{name}-2.3.1-arm-build.patch
@ -95,22 +95,23 @@ Obsoletes: opencv-python
%description -n python-cv %description -n python-cv
This package contains Python bindings for the OpenCV library. 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 Summary: Python bindings for apps which use OpenCV
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: python-Pillow-py3 Requires: python-Pillow-py36
Requires: python-numpy-py3 Requires: python-numpy-py36
Provides: opencv-python Provides: opencv-python
Obsoletes: opencv-python Obsoletes: opencv-python
%description -n python-cv %description -n python-cv-py36
This package contains Python bindings for the OpenCV library. This package contains Python bindings for the OpenCV library.
%prep %prep
%setup -q %setup -q -c
#-D -T #-D -T
#:<< _EOF #:<< _EOF
mv opencv-opencv-*/* .
%ifarch %{ix86} %ifarch %{ix86}
%patch2 -p1 %patch2 -p1
@ -168,56 +169,58 @@ rm -fr %{buildroot}%{_datadir}/opencv/doc
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/opencv_* %{_bindir}/opencv_*
%{_bindir}/setup_vars_opencv4.sh
%files -n libopencv %files -n libopencv
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libopencv_*.so.* %{_libdir}/libopencv_*.so.*
%dir %{_datadir}/OpenCV %dir %{_datadir}/opencv4
%dir %{_datadir}/OpenCV/haarcascades %{_datadir}/opencv4/*
%{_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
%files -n libopencv-devel %files -n libopencv-devel
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_includedir}/opencv %dir %{_includedir}/opencv4
%{_includedir}/opencv/* %dir %{_includedir}/opencv4/opencv2
%dir %{_includedir}/opencv2 %{_includedir}/opencv4/opencv2/*
%{_includedir}/opencv2/*
%{_libdir}/libopencv_*.so %{_libdir}/libopencv_*.so
#%{_libdir}/libopencv_ts.a %dir %{_libdir}/cmake/opencv4
%dir %{_datadir}/OpenCV %{_libdir}/cmake/opencv4/OpenCV*.cmake
#%dir %{_datadir}/OpenCV/doc %dir %{_datadir}/licenses/opencv4
#%{_datadir}/OpenCV/doc/* %{_datadir}/licenses/opencv4/*
%{_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
%ifnarch arm %ifnarch arm
%files -n java-opencv
%defattr(-,root,root)
%{_datadir}/java/opencv4/libopencv_java*.so
%{_datadir}/java/opencv4/opencv-*.jar
%files -n python-cv %files -n python-cv
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitelib}/cv2.so %dir %{python_sitelib}/cv2
%{python_sitelib}/cv2/*
#%files -n python-cv-py3 %files -n python-cv-py36
#%defattr(-,root,root) %defattr(-,root,root)
##%{python3_sitearch}/cv2.so %dir %{python36_sitelib}/cv2
%{python36_sitelib}/cv2/*
%endif %endif
%changelog %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 * Thu Aug 30 2018 Automatic Build System <autodist@mambasoft.it> 3.4.3-1mamba
- automatic version update by autodist - automatic version update by autodist