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 URL: http://opencv.willowgarage.com
15 BuildRequires: autoconf >= 2.53
16 BuildRequires: automake
17 BuildRequires: ffmpeg-devel
18 BuildRequires: jasper-devel
19 BuildRequires: libdc1394-devel
20 BuildRequires: libjpeg-devel
21 BuildRequires: libpng-devel
22 BuildRequires: libraw1394-devel
23 BuildRequires: libtiff-devel
24 BuildRequires: libtool
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} = %{version}-%{release}
65 %description -n python-opencv
66 OpenCV Python bindings.
69 %setup -q -n %{name}-%{version}.0
73 sed -i -e 's#ACLOCAL_AMFLAGS.*##g' Makefile.am
74 sed -i -e 's#pkgpython#pkgpyexec#g' interfaces/swig/python/Makefile.am
75 sed -i -e 's#-L$(SWIG_PYTHON_LIBS)#$(NOTING_NOT_EMPTY_LINE)#g' interfaces/swig/python/Makefile.am
79 %{__aclocal} -I autotools/aclocal
83 %ifarch i686 pentium4 athlon %{x8664}
89 --with%{!?with_xine:out}-xine \
99 rm -rf $RPM_BUILD_ROOT
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]