public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/opencv] opencv5: Better conditionals to enable openni only available in ix86, x86_64 and arm
@ 2026-08-28 13:30
0 siblings, 0 replies; only message in thread
From: @ 2026-08-28 13:30 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/opencv
Branch : opencv5
Commit : 3f46513b8b8ea5186b593d2053da609e1e83fd65
Author : Sérgio M. Basto <sergio@serjux.com>
Date : 2017-08-29T00:47:40+01:00
Stats : +10/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/opencv/c/3f46513b8b8ea5186b593d2053da609e1e83fd65?branch=opencv5
Log:
Better conditionals to enable openni only available in ix86, x86_64 and arm
---
diff --git a/opencv.spec b/opencv.spec
index ec249ea..9c52889 100644
--- a/opencv.spec
+++ b/opencv.spec
@@ -7,7 +7,12 @@
%else
%bcond_with eigen3
%endif
+%ifarch %{ix86} x86_64 %{arm}
%bcond_without openni
+# no openni in other arches even with --with openni
+#else
+#bcond_with openni
+%endif
%bcond_without tbb
%bcond_with sse3
%bcond_with cuda
@@ -29,7 +34,7 @@
Name: opencv
Version: 3.2.0
-Release: 9%{?dist}
+Release: 10%{?dist}
Summary: Collection of algorithms for computer vision
Group: Development/Libraries
# This is normal three clause BSD.
@@ -84,12 +89,10 @@ BuildRequires: libGL-devel
BuildRequires: libv4l-devel
BuildRequires: gtkglext-devel
BuildRequires: OpenEXR-devel
-%ifarch %{ix86} x86_64 %{arm}
%{?with_openni:
BuildRequires: openni-devel
BuildRequires: openni-primesense
}
-%endif
%{?with_tbb:
BuildRequires: tbb-devel
}
@@ -257,9 +260,7 @@ pushd build
-DCUDA_VERBOSE_BUILD=ON \
-DCUDA_PROPAGATE_HOST_FLAGS=OFF \
} \
-%ifarch %{ix86} x86_64
-%{?with_openni: -DWITH_OPENNI=ON } \
-%endif
+ %{?with_openni: -DWITH_OPENNI=ON } \
%{!?with_xine:-DWITH_XINE=OFF} \
-DBUILD_EXAMPLES=ON \
-DINSTALL_C_EXAMPLES=ON \
@@ -387,6 +388,9 @@ popd
%{_libdir}/libopencv_xphoto.so.%{abiver}*
%changelog
+* Mon Aug 28 2017 Sérgio Basto <sergio@serjux.com> - 3.2.0-10
+- Better conditionals to enable openni only available in ix86, x86_64 and arm
+
* Sun Aug 20 2017 Sérgio Basto <sergio@serjux.com> - 3.2.0-9
- Enable openni.
- Enable eigen3 except in ppc64le because fails to build in OpenCL headers.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-28 13:30 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:30 [rpms/opencv] opencv5: Better conditionals to enable openni only available in ix86, x86_64 and arm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox