Obsoletes opencv until fixed

This commit is contained in:
Nicolas Chauvet 2020-01-20 15:33:46 +01:00
parent b5b3e20dbe
commit 4ecb05d105

View File

@ -1,3 +1,7 @@
%if 0%{?fedora} && 0%{?fedora} < 32
%global _with_opencv 1
%endif
Name: frei0r-plugins
Version: 1.7.0
Release: 3%{?dist}
@ -13,8 +17,11 @@ Buildrequires: libtool
BuildRequires: gcc-c++
BuildRequires: gavl-devel >= 0.2.3
%if 0%{?fedora} && 0%{?fedora} < 32
%if 0%{?_with_opencv}
BuildRequires: opencv-devel >= 1.0.0
%else
# Obsoletes introduced in f32
Obsoletes: frei0r-plugins-opencv < 1.7.0-3
%endif
BuildRequires: cairo-devel >= 1.0.0
@ -65,9 +72,11 @@ rm -rf %{buildroot}%{_docdir}/%{name}
%exclude %{_libdir}/frei0r-1/facedetect.so
%{_libdir}/frei0r-1/*.so
%if 0%{?_with_opencv}
%files opencv
%{_libdir}/frei0r-1/facebl0r.so
%{_libdir}/frei0r-1/facedetect.so
%endif
%files -n frei0r-devel
%{_includedir}/frei0r.h