public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Conversion to %pyproject macros followup
@ 2026-08-28 13:33 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-08-28 13:33 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/opencv
Branch : opencv5
Commit : 9db5b7b826e8e54d3eaccd16d2685eb5956864db
Author : Miro Hrončok <miro@hroncok.cz>
Date   : 2025-10-20T15:22:00+02:00
Stats  : +4/-8 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/opencv/c/9db5b7b826e8e54d3eaccd16d2685eb5956864db?branch=opencv5

Log:
Conversion to %pyproject macros followup

---
diff --git a/opencv.spec b/opencv.spec
index 3a349d7..3bc6f39 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -164,9 +164,6 @@ BuildRequires:  tbb-devel
 BuildRequires:  zlib-devel
 BuildRequires:  pkgconfig
 BuildRequires:  python3-devel
-BuildRequires:  python3-pip
-BuildRequires:  python3-setuptools
-BuildRequires:  python3-types-setuptools
 BuildRequires:  python3-numpy
 %{?with_linters:
 BuildRequires:  pylint
@@ -460,7 +457,8 @@ mkdir -p .cache/ade
 install -pm 0644 %{S:4} .cache/ade/
 
 %generate_buildrequires
-%pyproject_buildrequires -N
+cd modules/python/package
+%pyproject_buildrequires
 
 %build
 # enabled by default if libraries are presents at build time:
@@ -569,9 +567,8 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
 
 
 %check
-# Currently fails during build with:
-# ImportError: libopencv_hdf.so.411: cannot open shared object file: No such file or directory
-%pyproject_check_import || :
+export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/%{__cmake_builddir}/lib:$LD_LIBARY_PATH
+%pyproject_check_import -e cv2.config
 
 #ifnarch ppc64
 %if %{with tests}
@@ -583,7 +580,6 @@ ln -s -r %{buildroot}%{_jnidir}/opencv-%{javaver}.jar %{buildroot}%{_jnidir}/ope
     fi
     $Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xorg.log -config ./xorg.conf -configdir . :99 &
     export DISPLAY=:99
-    export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/%{__cmake_builddir}/lib:$LD_LIBARY_PATH
     %ctest || :
 %endif
 #endif

^ 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: Conversion to %pyproject macros followup 

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