3 Summary: A library of programming functions mainly aimed at real time computer vision
10 Source0: http://dl.sourceforge.net/opencvlibrary/%{name}-%{version}%{snap}.tar.gz
11 # Source0-md5: b147b7cd3c059831c415c5a2bcecdf95
12 Patch0: %{name}-ffmpeg.patch
13 Patch1: %{name}-am.patch
14 Patch2: %{name}-build.patch
15 URL: http://opencv.willowgarage.com
16 BuildRequires: autoconf >= 2.53
17 BuildRequires: automake
18 BuildRequires: ffmpeg-devel
19 BuildRequires: jasper-devel
20 BuildRequires: libdc1394-devel
21 BuildRequires: libjpeg-devel
22 BuildRequires: libpng-devel
23 BuildRequires: libraw1394-devel
24 BuildRequires: libtiff-devel
25 BuildRequires: libtool
26 BuildRequires: pkgconfig
27 BuildRequires: python-devel
28 BuildRequires: rpm-pythonprov
29 BuildRequires: swig-python
30 BuildRequires: zlib-devel
31 %pyrequires_eq python-libs
32 %{?with_xine:BuildRequires: xine-lib-devel}
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 OpenCV (Open Source Computer Vision) is a library of programming
37 functions mainly aimed at real time computer vision.
39 Example applications of the OpenCV library are Human-Computer
40 Interaction (HCI); Object Identification, Segmentation and
41 Recognition; Face Recognition; Gesture Recognition; Motion Tracking,
42 Ego Motion, Motion Understanding; Structure From Motion (SFM); Stereo
43 and Multi-Camera Calibration and Depth Computation; Mobile Robotics.
46 Summary: Header files and develpment documentation for opencv
47 Group: Development/Libraries
48 Requires: %{name} = %{epoch}:%{version}-%{release}
51 Header files and opencv documentation.
54 Summary: Static opencv library
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
59 This package contains the static library used for development.
61 %package -n python-opencv
62 Summary: OpenCV Python bindings
63 Group: Development/Languages/Python
65 Requires: %{name} = %{epoch}:%{version}-%{release}
67 %description -n python-opencv
68 OpenCV Python bindings.
71 %setup -q -n %{name}-%{version}.0
76 sed -i -e 's#ACLOCAL_AMFLAGS.*##g' Makefile.am
77 sed -i -e 's#pkgpython#pkgpyexec#g' interfaces/swig/python/Makefile.am
78 sed -i -e 's#-L$(SWIG_PYTHON_LIBS)#$(NOTING_NOT_EMPTY_LINE)#g' interfaces/swig/python/Makefile.am
82 %{__aclocal} -I autotools/aclocal
86 %ifarch i686 pentium4 athlon %{x8664}
92 --with%{!?with_xine:out}-xine \
102 rm -rf $RPM_BUILD_ROOT
105 DESTDIR=$RPM_BUILD_ROOT
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
114 %defattr(644,root,root,755)
115 %doc AUTHORS COPYING ChangeLog THANKS TODO
116 %doc docs/*.{htm,rtf,png,txt} docs/papers docs/ref
117 %attr(755,root,root) %{_bindir}/*
118 %attr(755,root,root) %{_libdir}/lib*so.*.*
119 %attr(755,root,root) %ghost %{_libdir}/lib*.so.2
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/lib*.so
125 %{_includedir}/opencv
126 %{_pkgconfigdir}/*.pc
129 %defattr(644,root,root,755)
132 %files -n python-opencv
133 %defattr(644,root,root,755)
134 %dir %{py_sitedir}/opencv
135 %attr(755,root,root) %{py_sitedir}/opencv/*.so
136 %{py_sitedir}/opencv/*.py[co]