2 Summary: A library of programming functions mainly aimed at real time computer vision
9 Source0: http://downloads.sourceforge.net/opencvlibrary/OpenCV-%{version}.tar.bz2
10 # Source0-md5: 1d71584fb4e04214c0085108f95e24c8
11 Patch0: %{name}-2.0.0-libpng14.patch
12 Patch1: %{name}-2.1.0-mmap.patch
13 Patch2: %{name}-2.1.0-multilib.patch
14 URL: http://opencv.willowgarage.com
16 BuildRequires: ffmpeg-devel
17 BuildRequires: jasper-devel
18 BuildRequires: libdc1394-devel
19 BuildRequires: libjpeg-devel
20 BuildRequires: libpng-devel
21 BuildRequires: libraw1394-devel
22 BuildRequires: libtiff-devel
23 BuildRequires: libtool
24 BuildRequires: pkgconfig
25 BuildRequires: python-devel
26 BuildRequires: rpm-pythonprov
27 BuildRequires: swig-python
28 BuildRequires: zlib-devel
29 %pyrequires_eq python-libs
30 %{?with_xine:BuildRequires: xine-lib-devel}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 OpenCV (Open Source Computer Vision) is a library of programming
35 functions mainly aimed at real time computer vision.
37 Example applications of the OpenCV library are Human-Computer
38 Interaction (HCI); Object Identification, Segmentation and
39 Recognition; Face Recognition; Gesture Recognition; Motion Tracking,
40 Ego Motion, Motion Understanding; Structure From Motion (SFM); Stereo
41 and Multi-Camera Calibration and Depth Computation; Mobile Robotics.
44 Summary: Header files and develpment documentation for opencv
45 Group: Development/Libraries
46 Requires: %{name} = %{epoch}:%{version}-%{release}
49 Header files and opencv documentation.
52 Summary: Static opencv library
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
57 This package contains the static library used for development.
59 %package -n python-opencv
60 Summary: OpenCV Python bindings
61 Group: Development/Languages/Python
63 Requires: %{name} = %{epoch}:%{version}-%{release}
65 %description -n python-opencv
66 OpenCV Python bindings.
69 %setup -q -n OpenCV-%{version}
78 -DCXXFLAGS="-D__STDC_CONSTANT_MACROS" \
79 %ifarch i686 pentium4 athlon %{x8664}
82 -DBUILD_NEW_PYTHON_SUPPORT=ON \
86 -DWITH_GSTREAMER=OFF \
91 %if "%{_lib}" == "lib64"
99 rm -rf $RPM_BUILD_ROOT
101 %{__make} -C build install \
102 DESTDIR=$RPM_BUILD_ROOT
105 rm -rf $RPM_BUILD_ROOT
107 %post -p /sbin/ldconfig
108 %postun -p /sbin/ldconfig
111 %defattr(644,root,root,755)
112 %doc AUTHORS COPYING ChangeLog THANKS TODO
113 %doc docs/*.{htm,rtf,png,txt} docs/papers docs/ref
114 %attr(755,root,root) %{_bindir}/*
115 %attr(755,root,root) %{_libdir}/lib*so.*.*
116 %attr(755,root,root) %ghost %{_libdir}/lib*.so.2
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_libdir}/lib*.so
122 %{_includedir}/opencv
123 %{_pkgconfigdir}/*.pc
126 %defattr(644,root,root,755)
129 %files -n python-opencv
130 %defattr(644,root,root,755)
131 %dir %{py_sitedir}/opencv
132 %attr(755,root,root) %{py_sitedir}/opencv/*.so
133 %{py_sitedir}/opencv/*.py[co]