--- /dev/null
+--- opencv-2.4.10.1/CMakeLists.txt~ 2015-03-09 14:42:05.000000000 +0100
++++ opencv-2.4.10.1/CMakeLists.txt 2015-03-09 14:50:49.355937198 +0100
+@@ -324,12 +324,7 @@
+ endif()
+ set(OPENCV_INCLUDE_INSTALL_PATH "include")
+
+- math(EXPR SIZEOF_VOID_P_BITS "8 * ${CMAKE_SIZEOF_VOID_P}")
+- if(LIB_SUFFIX AND NOT SIZEOF_VOID_P_BITS EQUAL LIB_SUFFIX)
+- set(OPENCV_CONFIG_INSTALL_PATH lib${LIB_SUFFIX}/cmake/opencv)
+- else()
+- set(OPENCV_CONFIG_INSTALL_PATH share/OpenCV)
+- endif()
++ set(OPENCV_CONFIG_INSTALL_PATH share/OpenCV)
+ endif()
+
+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${OPENCV_LIB_INSTALL_PATH}")
# - other modules
%bcond_without vtk # VTK library support (opencv_viz module)
-%ifarch pentium3 pentium4 %{x8664}
+%ifarch pentium3 pentium4 %{x8664} x32
%define with_sse 1
%endif
-%ifarch pentium4 %{x8664}
+%ifarch pentium4 %{x8664} x32
%define with_sse2 1
%endif
Summary: A library of programming functions mainly aimed at real time computer vision
Patch7: java-ant-sourcelevel.patch
Patch8: %{name}-shared.patch
Patch9: no-sysctl.patch
+Patch10: cmake-install-path.patch
URL: http://www.opencv.org/
%{?with_pvapi:BuildRequires: AVT_GigE_SDK-devel}
%{?with_opencl:BuildRequires: OpenCL-devel}
%patch7 -p1
%patch8 -p1
%patch9 -p1
+%patch10 -p1
%build
install -d build