public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Fix cmake build
Date: Fri, 28 Aug 2026 13:31:45 GMT [thread overview]
Message-ID: <178792390579.1.6122520841289360188.rpms-opencv-fb2c54e4ff92@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : fb2c54e4ff925f63417cfe9ea0b65e4f431fef2b
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2020-07-28T23:40:37+01:00
Stats : +4/-9 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/fb2c54e4ff925f63417cfe9ea0b65e4f431fef2b?branch=opencv5
Log:
Fix cmake build
---
diff --git a/opencv.spec b/opencv.spec
index e919ae0..2246b5a 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -278,11 +278,9 @@ install -pm 0644 %{SOURCE4} .cache/ade/
# enabled by default if libraries are presents at build time:
# GTK, GSTREAMER, 1394, V4L, eigen3
# non available on Fedora: FFMPEG, XINE
-mkdir -p build
-pushd build
# disabling IPP because it is closed source library from intel
-%cmake CMAKE_VERBOSE=1 \
+%cmake \
-DCV_TRACE=OFF \
-DWITH_IPP=OFF \
-DWITH_ITT=OFF \
@@ -326,7 +324,7 @@ pushd build
%{?with_opencl: -DOPENCL_INCLUDE_DIR=%{_includedir}/CL } \
%{!?with_opencl: -DWITH_OPENCL=OFF } \
-DOPENCV_SKIP_PYTHON_LOADER=ON \
- -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-%{version}/modules \
+ -DOPENCV_EXTRA_MODULES_PATH=opencv_contrib-%{version}/modules \
-DWITH_LIBV4L=ON \
-DWITH_OPENMP=ON \
-DOPENCV_CONFIG_INSTALL_PATH=%{_lib}/cmake/OpenCV \
@@ -337,16 +335,13 @@ pushd build
%{?with_clp: -DWITH_CLP=ON } \
%{?with_va: -DWITH_VA=ON } \
%{!?with_vtk: -DWITH_VTK=OFF} \
- %{?with_vulkan: -DWITH_VULKAN=ON -DVULKAN_INCLUDE_DIRS=%{_includedir}/vulkan } \
- ..
+ %{?with_vulkan: -DWITH_VULKAN=ON -DVULKAN_INCLUDE_DIRS=%{_includedir}/vulkan }
%cmake_build
-popd
-
%install
-%make_install -C build
+%cmake_install
rm -rf %{buildroot}%{_datadir}/OpenCV/licenses/
%if %{with java}
next reply other threads:[~2026-08-28 13:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 13:31 [this message]
2026-08-28 13:31 [rpms/opencv] opencv5: Fix cmake build
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=178792390579.1.6122520841289360188.rpms-opencv-fb2c54e4ff92@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