public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Conversion to %pyproject macros followup
Date: Fri, 28 Aug 2026 13:33:08 GMT	[thread overview]
Message-ID: <178792398839.1.11624231924828389334.rpms-opencv-9db5b7b826e8@fedoraproject.org> (raw)

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

                 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=178792398839.1.11624231924828389334.rpms-opencv-9db5b7b826e8@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