From c810b39bfba6d2856a28dfd65a6c3033a394f47d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Sun, 10 Oct 2021 14:28:46 +0100 Subject: [PATCH] Use %py_provides and remove srcname variable --- opencv.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/opencv.spec b/opencv.spec index 8913e70..50441ba 100644 --- a/opencv.spec +++ b/opencv.spec @@ -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.