Compare commits

...

4 Commits
rawhide ... f11

Author SHA1 Message Date
Fedora Release Engineering
7466c9b281 dist-git conversion 2010-07-29 14:03:37 +00:00
Bill Nottingham
c981dafa12 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:28:07 +00:00
Karol Trzcionka
3cf6556296 Update to v2.04 2009-10-21 11:33:09 +00:00
Jesse Keating
ff5e240daf Initialize branch F-11 for tesseract 2009-04-15 05:33:16 +00:00
4 changed files with 12 additions and 32 deletions

View File

@ -1,2 +1,2 @@
tesseract-2.03.tar.gz
tesseract-2.04.tar.gz
tesseract-2.00.eng.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: tesseract
# $Id$
NAME := tesseract
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)

View File

@ -1,2 +1,2 @@
5777b70b11df16c1ac9aa155d7cfc553 tesseract-2.03.tar.gz
b44eba1a9f4892ac62e484c807fe0533 tesseract-2.04.tar.gz
b8291d6b3a63ce7879d688e845e341a9 tesseract-2.00.eng.tar.gz

View File

@ -1,6 +1,6 @@
Name: tesseract
Version: 2.03
Release: 3%{?dist}
Version: 2.04
Release: 1%{?dist}
Summary: Raw OCR Engine
Group: Applications/File
@ -15,6 +15,7 @@ BuildRequires: libtiff-devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
%description
A commercial quality OCR engine originally developed at HP between 1985 and
@ -30,11 +31,7 @@ developing applications that use %{name}.
%build
sed -i 's#-DTESSDATA_PREFIX=@datadir@/#-DTESSDATA_PREFIX=@datadir@/%{name}/##' ccutil/Makefile.*
find . -type f -exec sed -i 's/#include <string>/#include <string>\n#include <cstring>/' {} \; ;
sed -i 's/#include <iostream>/#include <iostream>\n#include <cstring>/' viewer/svmnode.cpp
sed -i 's/#include <cstring>/#include <cstring>\n#include <cstdlib>\n#include <stdio.h>/' viewer/svutil.cpp
sed -i 's/#include <cstring>/#include <cstring>\n#include <climits>/' viewer/scrollview.cpp
rm -f java/makefile
sed -i 's/#include <iostream>/#include <iostream>\n#include <cstdio>/' viewer/svutil.cpp
%configure
make %{?_smp_mflags}
@ -43,7 +40,6 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/tesseract
mv $RPM_BUILD_ROOT%{_datadir}/tessdata $RPM_BUILD_ROOT%{_datadir}/tesseract
rm -rf $RPM_BUILD_ROOT%{_libdir}
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/tessdata/{deu,fra,ita,nld,spa}*
@ -58,13 +54,18 @@ rm -rf $RPM_BUILD_ROOT
%{_bindir}/wordlist2dawg
%{_datadir}/%{name}
%doc AUTHORS ChangeLog COPYING NEWS phototest.tif README
%doc AUTHORS ChangeLog COPYING eurotext.tif NEWS phototest.tif README
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
%{_libdir}/lib%{name}*
%changelog
* Wed Oct 21 2009 Karol Trzcionka <karlikt at gmail.com> - 2.04-1
- Update to v2.04
- Add static libraries to -devel subpackage
* Wed Mar 04 2009 Caolán McNamara <caolanm@redhat.com> - 2.03-3
- include stdio.h for snprintf