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 URL: http://opencv.willowgarage.com
14 BuildRequires: autoconf >= 2.53
15 BuildRequires: automake
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: python-devel
25 BuildRequires: rpm-pythonprov
26 BuildRequires: swig-python
27 BuildRequires: zlib-devel
28 %pyrequires_eq python-libs
29 %{?with_xine:BuildRequires: xine-lib-devel}
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 OpenCV (Open Source Computer Vision) is a library of programming
34 functions mainly aimed at real time computer vision.
36 Example applications of the OpenCV library are Human-Computer
37 Interaction (HCI); Object Identification, Segmentation and
38 Recognition; Face Recognition; Gesture Recognition; Motion Tracking,
39 Ego Motion, Motion Understanding; Structure From Motion (SFM); Stereo
40 and Multi-Camera Calibration and Depth Computation; Mobile Robotics.
43 Summary: Header files and develpment documentation for opencv
44 Group: Development/Libraries
45 Requires: %{name} = %{epoch}:%{version}-%{release}
48 Header files and opencv documentation.
51 Summary: Static opencv library
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
56 This package contains the static library used for development.
58 %package -n python-opencv
59 Summary: OpenCV Python bindings
60 Group: Development/Languages/Python
62 Requires: %{name} = %{version}-%{release}
64 %description -n python-opencv
65 OpenCV Python bindings.
68 %setup -q -n %{name}-%{version}.0
71 sed -i -e 's#ACLOCAL_AMFLAGS.*##g' Makefile.am
72 sed -i -e 's#pkgpython#pkgpyexec#g' interfaces/swig/python/Makefile.am
73 sed -i -e 's#-L$(SWIG_PYTHON_LIBS)#$(NOTING_NOT_EMPTY_LINE)#g' interfaces/swig/python/Makefile.am
77 %{__aclocal} -I autotools/aclocal
81 %ifarch i686 pentium4 athlon %{x8664}
87 --with%{!?with_xine:out}-xine \
97 rm -rf $RPM_BUILD_ROOT
100 DESTDIR=$RPM_BUILD_ROOT
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS COPYING ChangeLog THANKS TODO
111 %doc docs/*.{htm,rtf,png,txt} docs/papers docs/ref
112 %attr(755,root,root) %{_bindir}/*
113 %attr(755,root,root) %{_libdir}/lib*so.*.*
114 %attr(755,root,root) %ghost %{_libdir}/lib*.so.2
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/lib*.so
120 %{_includedir}/opencv
121 %{_pkgconfigdir}/*.pc
124 %defattr(644,root,root,755)
127 %files -n python-opencv
128 %defattr(644,root,root,755)
129 %dir %{py_sitedir}/opencv
130 %attr(755,root,root) %{py_sitedir}/opencv/*.so
131 %{py_sitedir}/opencv/*.py[co]