public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/opencv] opencv5: Better conditionals to enable openni only available in ix86, x86_64 and arm
Date: Fri, 28 Aug 2026 13:30:45 GMT [thread overview]
Message-ID: <178792384519.1.4509681115396480150.rpms-opencv-3f46513b8b8e@fedoraproject.org> (raw)
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.
reply other threads:[~2026-08-28 13:30 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=178792384519.1.4509681115396480150.rpms-opencv-3f46513b8b8e@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