Use %py_provides and remove srcname variable

This commit is contained in:
Sérgio M. Basto 2021-10-10 14:28:46 +01:00
parent 37d3d10b19
commit c810b39bfb
1 changed files with 1 additions and 3 deletions

View File

@ -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.