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: python-devel
27 BuildRequires: rpm-pythonprov
28 BuildRequires: swig-python
29 BuildRequires: zlib-devel
30 %pyrequires_eq python-libs
31 %{?with_xine:BuildRequires: xine-lib-devel}
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 OpenCV (Open Source Computer Vision) is a library of programming
36 functions mainly aimed at real time computer vision.
38 Example applications of the OpenCV library are Human-Computer
39 Interaction (HCI); Object Identification, Segmentation and
40 Recognition; Face Recognition; Gesture Recognition; Motion Tracking,
41 Ego Motion, Motion Understanding; Structure From Motion (SFM); Stereo
42 and Multi-Camera Calibration and Depth Computation; Mobile Robotics.
45 Summary: Header files and develpment documentation for opencv
46 Group: Development/Libraries
47 Requires: %{name} = %{epoch}:%{version}-%{release}
50 Header files and opencv documentation.
53 Summary: Static opencv library
54 Group: Development/Libraries
55 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
58 This package contains the static library used for development.
60 %package -n python-opencv
61 Summary: OpenCV Python bindings
62 Group: Development/Languages/Python
64 Requires: %{name} = %{epoch}:%{version}-%{release}
66 %description -n python-opencv
67 OpenCV Python bindings.
70 %setup -q -n %{name}-%{version}.0
75 sed -i -e 's#ACLOCAL_AMFLAGS.*##g' Makefile.am
76 sed -i -e 's#pkgpython#pkgpyexec#g' interfaces/swig/python/Makefile.am
77 sed -i -e 's#-L$(SWIG_PYTHON_LIBS)#$(NOTING_NOT_EMPTY_LINE)#g' interfaces/swig/python/Makefile.am
81 %{__aclocal} -I autotools/aclocal
85 %ifarch i686 pentium4 athlon %{x8664}
91 --with%{!?with_xine:out}-xine \
101 rm -rf $RPM_BUILD_ROOT
104 DESTDIR=$RPM_BUILD_ROOT
107 rm -rf $RPM_BUILD_ROOT
109 %post -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
113 %defattr(644,root,root,755)
114 %doc AUTHORS COPYING ChangeLog THANKS TODO
115 %doc docs/*.{htm,rtf,png,txt} docs/papers docs/ref
116 %attr(755,root,root) %{_bindir}/*
117 %attr(755,root,root) %{_libdir}/lib*so.*.*
118 %attr(755,root,root) %ghost %{_libdir}/lib*.so.2
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/lib*.so
124 %{_includedir}/opencv
125 %{_pkgconfigdir}/*.pc
128 %defattr(644,root,root,755)
131 %files -n python-opencv
132 %defattr(644,root,root,755)
133 %dir %{py_sitedir}/opencv
134 %attr(755,root,root) %{py_sitedir}/opencv/*.so
135 %{py_sitedir}/opencv/*.py[co]