1. Do not enable NEON for x86.
2. Do not define ARCH=arm for x86
Change-Id: Idc30def83543ae10f6c665d58ad672962de7a8e4
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Name: opencv
Summary: OpenCV library
Version: 3.4.1
-Release: 4
+Release: 5
Group: Development/Libraries
License: BSD-3-Clause and LGPL-2.1+
Source0: %{name}-%{version}.tar.gz
%setup -q -T -D -a 100
%build
-%ifarch aarch64 x86_64
+%ifarch aarch64
ARCH=aarch64
-%else
+%endif
+%ifarch %arm
ARCH=arm
%endif
+%ifarch x86_64
+ARCH=x86_64
+%endif
+%ifarch %ix86
+ARCH=i386
+%endif
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_SOLUTION_FOLDERS=OFF \
-DENABLE_PROFILLING=OFF \
-DENABLE_COVERAGE=OFF \
- -DCV_TRACE=OFF \
+%ifarch %arm aarch64
-DCPU_BASELINE="" \
- -DCPU_DISPATCH=NEON
+ -DCPU_DISPATCH=NEON \
+%endif
+ -DCV_TRACE=OFF
make %{?jobs:-j%jobs}