public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Use pyprojectize - thanks Miro !
@ 2026-08-28 13:33 Nicolas Chauvet
  0 siblings, 0 replies; only message in thread
From: Nicolas Chauvet @ 2026-08-28 13:33 UTC (permalink / raw)
  To: git-commits

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-28 13:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-28 13:33 [rpms/opencv] opencv5: Use pyprojectize - thanks Miro ! Nicolas Chauvet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox