public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Use %py_provides and remove srcname variable
Date: Fri, 28 Aug 2026 13:32:02 GMT	[thread overview]
Message-ID: <178792392206.1.10160450625987449795.rpms-opencv-c810b39bfba6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/opencv
Branch : opencv5
Commit : c810b39bfba6d2856a28dfd65a6c3033a394f47d
Author : Sérgio M. Basto <sergio@serjux.com>
Date   : 2021-10-10T14:30:22+01:00
Stats  : +1/-3 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/opencv/c/c810b39bfba6d2856a28dfd65a6c3033a394f47d?branch=opencv5

Log:
Use %py_provides and remove srcname variable

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

                 reply	other threads:[~2026-08-28 13:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178792392206.1.10160450625987449795.rpms-opencv-c810b39bfba6@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox