From 10c1114e20fa1a3cd4b9cd244e39f49d7abbc49d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Mon, 26 Sep 2011 12:40:43 +0200 Subject: [PATCH] openni is exclusive for x86/x86_64 --- opencv.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/opencv.spec b/opencv.spec index ce7c664..9aee2e8 100644 --- a/opencv.spec +++ b/opencv.spec @@ -4,7 +4,7 @@ Name: opencv Version: 2.3.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Collection of algorithms for computer vision Group: Development/Libraries @@ -38,8 +38,10 @@ BuildRequires: libjpeg-devel BuildRequires: libtiff-devel BuildRequires: libv4l-devel BuildRequires: OpenEXR-devel +%ifarch %{ix86} x86_64 BuildRequires: openni-devel BuildRequires: openni-primesense +%endif %ifarch %{ix86} x86_64 ia64 BuildRequires: tbb-devel %endif @@ -126,7 +128,9 @@ pushd build -DCUDA_VERBOSE_BUILD=1 \ -DCUDA_PROPAGATE_HOST_FLAGS=0 \ } \ +%ifarch %{ix86} x86_64 -DWITH_OPENNI=ON \ +%endif %{!?_with_xine:-DWITH_XINE=0} \ -DINSTALL_C_EXAMPLES=1 \ -DINSTALL_PYTHON_EXAMPLES=1 \ @@ -210,6 +214,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Sep 26 2011 Dan HorĂ¡k - 2.3.1-2 +- openni is exclusive for x86/x86_64 + * Fri Aug 19 2011 Nicolas Chauvet - 2.3.1-1 - Update to 2.3.1 - Add BR openni-devel python-sphinx