Use %py_provides and remove srcname variable

epel9
Sérgio M. Basto 3 years ago
parent 37d3d10b19
commit c810b39bfb

@ -38,8 +38,6 @@
%define _lto_cflags %{nil}
%global srcname opencv
# If _cuda_version is unset
%if 0%{!?_cuda_version:1} && 0%{?with_cuda:1}
%global _cuda_version 11.2
@ -212,7 +210,7 @@ This package contains the OpenCV documentation, samples and examples programs.
Summary: Python3 bindings for apps which use OpenCV
Requires: opencv%{_isa} = %{version}-%{release}
Requires: python3-numpy
%{?python_provide:%python_provide python3-%{srcname}}
%{?%py_provides:%py_provides python3-%{name}}
%description -n python3-opencv
This package contains Python3 bindings for the OpenCV library.

Loading…
Cancel
Save