public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Use pyprojectize - thanks Miro !
Date: Fri, 28 Aug 2026 13:33:03 GMT [thread overview]
Message-ID: <178792398327.1.12677826177553863254.rpms-opencv-ddca32a93457@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : ddca32a9345750687356e4f4d3974db6e7ae069f
Author : Nicolas Chauvet <kwizart@gmail.com>
Date : 2025-10-16T14:52:54+02:00
Stats : +8/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/ddca32a9345750687356e4f4d3974db6e7ae069f?branch=opencv5
Log:
Use pyprojectize - thanks Miro !
---
diff --git a/opencv.spec b/opencv.spec
index 56cfdb8..96c3887 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -166,7 +166,6 @@ BuildRequires: zlib-devel
BuildRequires: pkgconfig
BuildRequires: python3-devel
BuildRequires: python3-numpy
-BuildRequires: python3-setuptools
%{?with_linters:
BuildRequires: pylint
BuildRequires: python3-flake8
@@ -458,6 +457,9 @@ mv opencv_3rdparty-%{wechat_commit}/sr.prototxt .cache/wechat_qrcode/69db99927a7
mkdir -p .cache/ade
install -pm 0644 %{S:4} .cache/ade/
+%generate_buildrequires
+%pyproject_buildrequires
+
%build
# enabled by default if libraries are presents at build time:
# GTK, GSTREAMER, 1394, V4L, eigen3
@@ -537,7 +539,8 @@ install -pm 0644 %{S:4} .cache/ade/
%install
%cmake_install
cd %{__cmake_builddir}/python_loader/
-%py3_install -- --install-lib %{python3_sitearch}
+%pyproject_install}
+%pyproject_save_files cv2
rm -rf %{buildroot}%{_datadir}/OpenCV/licenses/
%if %{with java}
@@ -552,6 +555,8 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
%check
+%pyproject_check_import
+
#ifnarch ppc64
%if %{with tests}
cp %{S:5} %{__cmake_builddir}
@@ -598,9 +603,7 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
%files doc
%{_datadir}/opencv4/samples
-%files -n python3-opencv
-%{python3_sitearch}/cv2
-%{python3_sitearch}/opencv-*.egg-info
+%files -n python3-opencv -f %{pyproject_files}
%if %{with java}
%files java
reply other threads:[~2026-08-28 13:33 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=178792398327.1.12677826177553863254.rpms-opencv-ddca32a93457@fedoraproject.org \
--to=kwizart@gmail.com \
--cc=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