Compare commits

...

5 Commits
rawhide ... f11

Author SHA1 Message Date
Fedora Release Engineering
23e5c617e1 dist-git conversion 2010-07-29 04:57:37 +00:00
Bill Nottingham
751de57c84 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:23:56 +00:00
Nicolas Chauvet
75ee5a6541 Disable make check failure to see how it works for ppc64 2009-04-24 11:43:11 +00:00
Nicolas Chauvet
17d1246390 Fix FTBFS for F-11 2009-04-22 14:28:34 +00:00
Jesse Keating
92950c13d9 Initialize branch F-11 for opencv 2009-04-15 06:24:19 +00:00
4 changed files with 40 additions and 35 deletions

View File

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: opencv
# $Id$
NAME := opencv
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

12
opencv-1.0.0-gcc44.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up opencv-1.0.0/cxcore/include/cxmisc.h.gcc44 opencv-1.0.0/cxcore/include/cxmisc.h
--- opencv-1.0.0/cxcore/include/cxmisc.h.gcc44 2006-05-04 17:55:17.000000000 +0200
+++ opencv-1.0.0/cxcore/include/cxmisc.h 2009-04-22 12:42:49.000000000 +0200
@@ -130,7 +130,7 @@
#include <alloca.h>
#elif defined HAVE_ALLOCA
#include <stdlib.h>
-#elif
+#else
#error
#endif

View File

@ -1,11 +1,9 @@
%define with_ffmpeg 0
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?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)")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: opencv Name: opencv
Version: 1.0.0 Version: 1.0.0
Release: 13%{?dist} Release: 15%{?dist}
Summary: Collection of algorithms for computer vision Summary: Collection of algorithms for computer vision
Group: Development/Libraries Group: Development/Libraries
@ -18,14 +16,19 @@ Patch0: opencv-1.0.0-pythondir.diff
Patch1: opencv-1.0.0-configure.in.diff Patch1: opencv-1.0.0-configure.in.diff
Patch2: opencv-1.0.0-autotools.diff Patch2: opencv-1.0.0-autotools.diff
Patch3: opencv-1.0.0-pkgconfig.diff Patch3: opencv-1.0.0-pkgconfig.diff
Patch4: opencv-1.0.0-gcc44.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gtk2-devel, libpng-devel, libjpeg-devel, libtiff-devel BuildRequires: gtk2-devel
BuildRequires: jasper-devel
BuildRequires: libpng-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: swig >= 1.3.24, zlib-devel, pkgconfig BuildRequires: swig >= 1.3.24, zlib-devel, pkgconfig
BuildRequires: python python-devel BuildRequires: python-devel
%if %{with_ffmpeg} %{?_with_ffmpeg:BuildRequires: ffmpeg-devel >= 0.4.9}
BuildRequires: ffmpeg-devel >= 0.4.9
%endif
%description %description
OpenCV means Intel® Open Source Computer Vision Library. It is a collection of OpenCV means Intel® Open Source Computer Vision Library. It is a collection of
@ -60,6 +63,7 @@ This package contains Python bindings for the OpenCV library.
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 -p1 -b .gcc44
%{__sed} -i 's/\r//' interfaces/swig/python/*.py \ %{__sed} -i 's/\r//' interfaces/swig/python/*.py \
samples/python/*.py samples/python/*.py
%{__sed} -i 's/^#!.*//' interfaces/swig/python/adaptors.py \ %{__sed} -i 's/^#!.*//' interfaces/swig/python/adaptors.py \
@ -74,7 +78,7 @@ make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" CPPROG="cp -p"
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \
$RPM_BUILD_ROOT%{python_sitearch}/opencv/*.la \ $RPM_BUILD_ROOT%{python_sitearch}/opencv/*.la \
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/build_all.sh \ $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/build_all.sh \
@ -83,11 +87,15 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la \
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/facedetect.cmd \ $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.gcc \
$RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/makefile.gen $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/makefile.gen
install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/GNUmakefile install -pm644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/opencv/samples/c/GNUmakefile
%check %check
make check #Known to fail on ppc
make check \
%ifnarch %{ix86} x86_64
|| :
%endif
%clean %clean
@ -98,9 +106,6 @@ rm -rf $RPM_BUILD_ROOT
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%post python -p /sbin/ldconfig
%postun python -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -130,6 +135,15 @@ rm -rf $RPM_BUILD_ROOT
%changelog %changelog
* Fri Apr 24 2009 kwizart < kwizart at gmail.com > - 1.0.0-15
- Disable make check failure
* Wed Apr 22 2009 kwizart < kwizart at gmail.com > - 1.0.0-14
- Fix for gcc44
- Enable BR jasper-devel
- Disable ldconfig run on python modules (uneeded)
- Prevent timestamp change on install
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-13 * 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 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild