2008-12-19 14:24:37 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2006-03-08 01:39:23 +00:00
|
|
|
|
2006-03-05 19:45:57 +00:00
|
|
|
Name: opencv
|
2009-04-24 10:14:52 +00:00
|
|
|
Version: 1.1.0
|
|
|
|
Release: 0.1.pre1%{?dist}
|
2006-03-05 19:45:57 +00:00
|
|
|
Summary: Collection of algorithms for computer vision
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
2008-05-22 18:38:41 +00:00
|
|
|
# This is normal three clause BSD.
|
|
|
|
License: BSD
|
2008-12-29 09:31:24 +00:00
|
|
|
URL: http://opencv.willowgarage.com/wiki/
|
2009-04-24 10:14:52 +00:00
|
|
|
Source0: http://prdownloads.sourceforge.net/opencvlibrary/opencv-1.1pre1.tar.gz
|
2006-03-05 19:45:57 +00:00
|
|
|
Source1: opencv-samples-Makefile
|
2009-04-24 10:14:52 +00:00
|
|
|
Patch0: opencv-1.0.0-gcc44.patch
|
|
|
|
Patch1: opencv-1.1-nooptim.patch
|
|
|
|
Patch2: opencv-1.1.0-pythondir.diff
|
|
|
|
Patch3: opencv-1.1.0-conflicts.patch
|
2006-03-05 19:45:57 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2009-04-24 10:14:52 +00:00
|
|
|
BuildRequires: libtool
|
|
|
|
|
2009-04-23 15:03:05 +00:00
|
|
|
BuildRequires: gtk2-devel
|
|
|
|
BuildRequires: jasper-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libtiff-devel
|
|
|
|
BuildRequires: libtool
|
2006-03-05 19:45:57 +00:00
|
|
|
BuildRequires: swig >= 1.3.24, zlib-devel, pkgconfig
|
2009-04-23 15:03:05 +00:00
|
|
|
BuildRequires: python-devel
|
2009-04-24 10:14:52 +00:00
|
|
|
BuildRequires: python-imaging, numpy
|
2009-04-23 15:03:05 +00:00
|
|
|
%{?_with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9}
|
|
|
|
|
2006-03-05 19:45:57 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
OpenCV means Intel® Open Source Computer Vision Library. It is a collection of
|
|
|
|
C functions and a few C++ classes that implement some popular Image Processing
|
|
|
|
and Computer Vision algorithms.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for using the OpenCV library
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: opencv = %{version}-%{release}
|
2006-09-21 15:52:42 +00:00
|
|
|
Requires: pkgconfig
|
2006-03-05 19:45:57 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the OpenCV C/C++ library and header files, as well as
|
|
|
|
documentation. It should be installed if you want to develop programs that
|
|
|
|
will use the OpenCV library.
|
|
|
|
|
|
|
|
|
|
|
|
%package python
|
|
|
|
Summary: Python bindings for apps which use OpenCV
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: opencv = %{version}-%{release}
|
2009-04-24 10:14:52 +00:00
|
|
|
Requires: python-imaging
|
|
|
|
Requires: numpy
|
2006-03-05 19:45:57 +00:00
|
|
|
|
|
|
|
%description python
|
|
|
|
This package contains Python bindings for the OpenCV library.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-04-24 10:14:52 +00:00
|
|
|
%patch0 -p1 -b .gcc44
|
|
|
|
%patch1 -p1 -b .nooptim
|
|
|
|
%patch2 -p1 -b .pydir
|
|
|
|
#autotools conflicts between AC_CONFIG_MACRO_DIR and AM_FLAGS
|
|
|
|
%patch3 -p1 -b .conflicts
|
|
|
|
|
|
|
|
|
|
|
|
#Renew the autotools (and remove rpath).
|
|
|
|
autoreconf -vif
|
2006-03-05 19:45:57 +00:00
|
|
|
|
|
|
|
%build
|
2009-04-24 10:42:52 +00:00
|
|
|
export SWIG_PYTHON_LIBS=%{_libdir}
|
2009-04-24 10:14:52 +00:00
|
|
|
%configure --disable-static --enable-apps \
|
|
|
|
%ifarch i386 i586
|
|
|
|
--disable-sse2 \
|
|
|
|
%endif
|
|
|
|
|
2006-03-05 19:45:57 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
2009-04-24 10:14:52 +00:00
|
|
|
|
2006-03-05 19:45:57 +00:00
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2009-04-23 15:03:05 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" CPPROG="cp -p"
|
2009-04-24 10:14:52 +00:00
|
|
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/build_all.sh \
|
2006-03-05 19:45:57 +00:00
|
|
|
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/cvsample.dsp \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/cvsample.vcproj \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/facedetect.cmd \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/makefile.gcc \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/makefile.gen
|
2009-04-24 10:14:52 +00:00
|
|
|
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/GNUmakefile
|
|
|
|
|
|
|
|
#Remove unversioned documentation
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_docdir}/opencv
|
|
|
|
#And Octave since we don't build against it yet
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{_datadir}/opencv/{samples/octave/,ChangeLog,THANKS}
|
2006-03-05 19:45:57 +00:00
|
|
|
|
|
|
|
|
2006-09-21 15:52:42 +00:00
|
|
|
%check
|
2009-04-24 10:14:52 +00:00
|
|
|
#Check fails since we don't support most video
|
|
|
|
#read/write capability and we don't provide a display
|
|
|
|
make check || :
|
2006-09-21 15:52:42 +00:00
|
|
|
|
|
|
|
|
2006-03-05 19:45:57 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS ChangeLog COPYING THANKS TODO
|
|
|
|
%{_bindir}/opencv-*
|
|
|
|
%{_libdir}/lib*.so.*
|
|
|
|
%dir %{_datadir}/opencv
|
|
|
|
%{_datadir}/opencv/haarcascades
|
|
|
|
%{_datadir}/opencv/readme.txt
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/opencv
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/lib*.a
|
|
|
|
%{_libdir}/pkgconfig/opencv.pc
|
|
|
|
%doc %{_datadir}/opencv/doc
|
2007-03-22 05:30:02 +00:00
|
|
|
%doc %dir %{_datadir}/opencv/samples
|
2006-03-05 19:45:57 +00:00
|
|
|
%doc %{_datadir}/opencv/samples/c
|
|
|
|
|
|
|
|
|
|
|
|
%files python
|
2008-12-19 14:24:37 +00:00
|
|
|
%{python_sitearch}/opencv
|
2007-03-22 05:30:02 +00:00
|
|
|
%doc %dir %{_datadir}/opencv/samples
|
2006-03-05 19:45:57 +00:00
|
|
|
%doc %{_datadir}/opencv/samples/python
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2009-04-24 10:14:52 +00:00
|
|
|
* Fri Apr 24 2009 kwizart < kwizart at gmail.com > - 1.1.0-0.1.pre1
|
|
|
|
- Update to 1.1pre1
|
|
|
|
- Disable CXXFLAGS hardcoded optimization
|
|
|
|
- Add BR: python-imaging, numpy
|
|
|
|
- Disable make check failure for now
|
|
|
|
|
2009-04-23 15:03:05 +00:00
|
|
|
* Wed Apr 22 2009 kwizart < kwizart at gmail.com > - 1.0.0-14
|
|
|
|
- Fix for gcc44
|
|
|
|
- Enable BR jasper-devel
|
2009-04-24 10:19:29 +00:00
|
|
|
- Disable ldconfig run on python modules (uneeded)
|
|
|
|
- Prevent timestamp change on install
|
2009-04-23 15:03:05 +00:00
|
|
|
|
2009-02-26 08:27:49 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-12-29 09:31:24 +00:00
|
|
|
* Mon Dec 29 2008 Rakesh Pandit <rakesh@fedoraproject.org> - 1.0.0-12
|
|
|
|
- fix URL field
|
|
|
|
|
2008-12-19 14:24:37 +00:00
|
|
|
* Fri Dec 19 2008 Ralf Corsépius <corsepiu@fedoraproject.org> - 1.0.0-11
|
|
|
|
- Adopt latest python spec rules.
|
|
|
|
- Rebuild for Python 2.6 once again.
|
|
|
|
|
2008-11-29 16:55:48 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.0-10
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-05-22 18:38:41 +00:00
|
|
|
* Thu May 22 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.0-9
|
|
|
|
- fix license tag
|
|
|
|
|
2008-05-11 06:04:04 +00:00
|
|
|
* Sun May 11 2008 Ralf Corsépius <rc040203@freenet.de> - 1.0.0-8
|
|
|
|
- Adjust library order in opencv.pc.in (BZ 445937).
|
|
|
|
|
2008-02-18 23:02:14 +00:00
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.0-7
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2008-02-10 06:34:19 +00:00
|
|
|
* Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 1.0.0-6
|
|
|
|
- Rebuild for gcc43.
|
|
|
|
|
2007-08-29 03:50:40 +00:00
|
|
|
* Tue Aug 28 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 1.0.0-5
|
|
|
|
- Rebuild for selinux ppc32 issue.
|
|
|
|
|
2007-08-22 04:08:55 +00:00
|
|
|
* Wed Aug 22 2007 Ralf Corsépius <rc040203@freenet.de> - 1.0.0-4
|
|
|
|
- Mass rebuild.
|
|
|
|
|
2007-03-22 05:30:02 +00:00
|
|
|
* Thu Mar 22 2007 Ralf Corsépius <rc040203@freenet.de> - 1.0.0-3
|
|
|
|
- Fix %%{_datadir}/opencv/samples ownership.
|
|
|
|
- Adjust timestamp of cvconfig.h.in to avoid re-running autoheader.
|
|
|
|
|
2007-03-22 04:03:04 +00:00
|
|
|
* Thu Mar 22 2007 Ralf Corsépius <rc040203@freenet.de> - 1.0.0-2
|
|
|
|
- Move all of the python module to pyexecdir (BZ 233128).
|
|
|
|
- Activate the testsuite.
|
|
|
|
|
2006-12-11 15:35:43 +00:00
|
|
|
* Mon Dec 11 2006 Ralf Corsépius <rc040203@freenet.de> - 1.0.0-1
|
|
|
|
- Upstream update.
|
|
|
|
|
2006-12-11 08:52:45 +00:00
|
|
|
* Mon Dec 11 2006 Ralf Corsépius <rc040203@freenet.de> - 0.9.9-4
|
|
|
|
- Remove python-abi.
|
|
|
|
|
2006-10-04 22:34:05 +00:00
|
|
|
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 0.9.9-3
|
2006-12-11 08:52:45 +00:00
|
|
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
2006-10-04 22:34:05 +00:00
|
|
|
|
2006-09-21 15:52:42 +00:00
|
|
|
* Thu Sep 21 2006 Ralf Corsépius <rc040203@freenet.de> - 0.9.9-2
|
|
|
|
- Stop configure.in from hacking CXXFLAGS.
|
|
|
|
- Activate testsuite.
|
|
|
|
- Let *-devel require pkgconfig.
|
|
|
|
|
2006-09-21 14:44:10 +00:00
|
|
|
* Thu Sep 21 2006 Ralf Corsépius <rc040203@freenet.de> - 0.9.9-1
|
|
|
|
- Upstream update.
|
|
|
|
- Don't BR: autotools.
|
|
|
|
- Install samples' Makefile as GNUmakefile.
|
|
|
|
|
2006-09-21 10:06:22 +00:00
|
|
|
* Thu Sep 21 2006 Ralf Corsépius <rc040203@freenet.de> - 0.9.7-18
|
|
|
|
- Un'%%ghost *.pyo.
|
|
|
|
- Separate %%{pythondir} from %%{pyexecdir}.
|
|
|
|
|
2006-09-21 07:07:04 +00:00
|
|
|
* Thu Sep 21 2006 Ralf Corsépius <rc040203@freenet.de> - 0.9.7-17
|
|
|
|
- Rebuild for FC6.
|
2006-09-21 07:33:25 +00:00
|
|
|
- BR: libtool.
|
2006-09-21 07:07:04 +00:00
|
|
|
|
|
|
|
* Fri Mar 17 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-16
|
|
|
|
- Rebuild.
|
|
|
|
|
2006-03-08 13:15:09 +00:00
|
|
|
* Wed Mar 8 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-15
|
|
|
|
- Force a re-run of Autotools by calling autoreconf.
|
|
|
|
|
2006-03-08 12:42:04 +00:00
|
|
|
* Wed Mar 8 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-14
|
|
|
|
- Added build dependency on Autotools.
|
|
|
|
|
2006-03-08 01:39:23 +00:00
|
|
|
* Tue Mar 7 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-13
|
|
|
|
- Changed intrinsics patch so that it matches upstream.
|
|
|
|
|
|
|
|
* Tue Mar 7 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-12
|
|
|
|
- More intrinsics patch fixing.
|
|
|
|
|
|
|
|
* Tue Mar 7 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-11
|
|
|
|
- Don't do "make check" because it doesn't run any tests anyway.
|
|
|
|
- Back to main intrinsics patch.
|
|
|
|
|
|
|
|
* Tue Mar 7 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-10
|
|
|
|
- Using simple intrinsincs patch.
|
|
|
|
|
|
|
|
* Tue Mar 7 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-9
|
|
|
|
- Still more fixing of intrinsics patch for Python bindings on x86_64.
|
|
|
|
|
|
|
|
* Tue Mar 7 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-8
|
|
|
|
- Again fixed intrinsics patch so that Python modules build on x86_64.
|
|
|
|
|
|
|
|
* Tue Mar 7 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-7
|
|
|
|
- Fixed intrinsics patch so that it works.
|
|
|
|
|
|
|
|
* Tue Mar 7 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-6
|
|
|
|
- Fixed Python bindings location on x86_64.
|
|
|
|
|
|
|
|
* Mon Mar 6 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-5
|
|
|
|
- SSE2 support on x86_64.
|
|
|
|
|
|
|
|
* Mon Mar 6 2006 Simon Perreault <nomis80@nomis80.org> - 0.9.7-4
|
|
|
|
- Rebuild
|
|
|
|
|
2006-03-05 19:45:57 +00:00
|
|
|
* Sun Oct 16 2005 Simon Perreault <nomis80@nomis80.org> - 0.9.7-3
|
|
|
|
- Removed useless sample compilation makefiles/project files and replaced them
|
|
|
|
with one that works on Fedora Core.
|
|
|
|
- Removed shellbang from Python modules.
|
|
|
|
|
|
|
|
* Mon Oct 10 2005 Simon Perreault <nomis80@nomis80.org> - 0.9.7-2
|
|
|
|
- Made FFMPEG dependency optional (needs to be disabled for inclusion in FE).
|
|
|
|
|
|
|
|
* Mon Oct 10 2005 Simon Perreault <nomis80@nomis80.org> - 0.9.7-1
|
|
|
|
- Initial package.
|