Stefan Brüns 2020-11-03 05:51:22 +00:00 committed by Git OBS Bridge
parent 7899669f0a
commit de974ff699

View File

@ -99,7 +99,7 @@ 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.
%package -n %{name}-cascades-data
%package -n %{name}4-cascades-data
Summary: Classifier cascades for OpenCV
License: BSD-3-Clause
Group: System/Libraries
@ -107,7 +107,7 @@ Conflicts: %{name} < %{version}-%{release}
Provides: %{name}:%{_datadir}/opencv4/lbpcascades/lbpcascade_silverware.xml
BuildArch: noarch
%description -n %{name}-cascades-data
%description -n %{name}4-cascades-data
Haar and LBP cascades for face and object detecton
%package -n %{libname}%{soname}
@ -125,7 +125,7 @@ Summary: Face detection libraries for OpenCV
License: BSD-3-Clause
Group: System/Libraries
Conflicts: %{libname}%{soname} < %{version}-%{release}
Requires: %{name}-cascades-data = %{version}
Requires: %{name}4-cascades-data
%description -n libopencv_face%{soname}
Face detection libraries for OpenCV
@ -162,7 +162,7 @@ Summary: Face detection libraries for OpenCV
License: BSD-3-Clause
Group: System/Libraries
Conflicts: %{libname}%{soname} < %{version}-%{release}
Requires: %{name}-cascades-data = %{version}
Requires: %{name}4-cascades-data
%description -n libopencv_objdetect%{soname}
Object detection libraries for OpenCV
@ -359,12 +359,13 @@ sed -i -e 's|//usr||g' %{buildroot}%{_libdir}/pkgconfig/opencv4.pc
%post -n libopencv_objdetect%{soname} -p /sbin/ldconfig
%postun -n libopencv_objdetect%{soname} -p /sbin/ldconfig
%post -n libopencv_superres%{soname} -p /sbin/ldconfig
%postun -n libopencv_videoio%{soname} -p /sbin/ldconfig
%postun -n libopencv_superres%{soname} -p /sbin/ldconfig
%post -n libopencv_videoio%{soname} -p /sbin/ldconfig
%postun -n libopencv_videostab%{soname} -p /sbin/ldconfig
%postun -n libopencv_videoio%{soname} -p /sbin/ldconfig
%post -n libopencv_videostab%{soname} -p /sbin/ldconfig
%postun -n libopencv_ximgproc%{soname} -p /sbin/ldconfig
%postun -n libopencv_videostab%{soname} -p /sbin/ldconfig
%post -n libopencv_ximgproc%{soname} -p /sbin/ldconfig
%postun -n libopencv_ximgproc%{soname} -p /sbin/ldconfig
%files
@ -374,7 +375,7 @@ sed -i -e 's|//usr||g' %{buildroot}%{_libdir}/pkgconfig/opencv4.pc
%dir %{_datadir}/opencv4
%exclude %{_datadir}/opencv4/valgrind*
%files -n %{name}-cascades-data
%files -n %{name}4-cascades-data
%{_datadir}/opencv4/*cascades
%files -n %{libname}%{soname}