Compare commits

...

7 Commits
rawhide ... f7

Author SHA1 Message Date
Fedora Release Engineering
845dc81a4e dist-git conversion 2010-07-29 14:03:33 +00:00
Bill Nottingham
0fb8fcf84a Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:28:08 +00:00
Karol Trzcionka
cf68f0ecb1 Upgrade to v2.01 2007-09-07 21:21:00 +00:00
Karol Trzcionka
ef4ebc4a04 Removing old files 2007-08-24 14:44:19 +00:00
Karol Trzcionka
f7cd4d95a8 Upgrade to v2.00 2007-08-24 14:34:25 +00:00
Karol Trzcionka
a0c45cb681 release tesseract 1.04-1 2007-06-16 13:53:15 +00:00
Kevin Fenzi
6cccde1738 Initialize branch F-7 for tesseract 2007-06-11 03:33:09 +00:00
6 changed files with 100 additions and 21 deletions

View File

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
tesseract-2.01.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

@ -0,0 +1,2 @@
fb0e6e7652b985049c11a4bc8e593885 tesseract-2.01.tar.gz
b8291d6b3a63ce7879d688e845e341a9 tesseract-2.00.eng.tar.gz

View File

@ -0,0 +1,11 @@
+++ training/unicharset_extractor.cpp 2007-08-28 03:59:07.000000000 +0200
--- training/unicharset_extractor.cpp 2007-08-31 00:11:09.000000000 +0200
@@ -72,7 +72,7 @@
unicharset->set_isalpha(id, 1);
if (iswlower(wc))
unicharset->set_islower(id, 1);
- if (iswlower(wc))
+ if (iswupper(wc))
unicharset->set_isupper(id, 1);
}
if (iswdigit(wc))

85
tesseract.spec Normal file
View File

@ -0,0 +1,85 @@
Name: tesseract
Version: 2.01
Release: 1%{?dist}
Summary: Raw OCR Engine
Group: Applications/File
License: ASL 2.0
URL: http://code.google.com/p/tesseract-ocr/
Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
Source1: http://tesseract-ocr.googlecode.com/files/%{name}-2.00.eng.tar.gz
Patch0: tesseract-2.01-upstream_patch1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libtiff-devel
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description
A commercial quality OCR engine originally developed at HP between 1985 and
1995. In 1995, this engine was among the top 3 evaluated by UNLV. It was
open-sourced by HP and UNLV in 2005.
%description devel
The %{name}-devel package contains header file for
developing applications that use %{name}.
%prep
%setup -q -a 1
%patch0
%build
sed -i 's#-DTESSDATA_PREFIX=@datadir@/#-DTESSDATA_PREFIX=@datadir@/%{name}/##' ccutil/Makefile.*
%configure
make %{?_smp_mflags}
%install
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}*
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_bindir}/*training
%{_bindir}/unicharset_extractor
%{_bindir}/wordlist2dawg
%{_datadir}/%{name}
%doc AUTHORS ChangeLog COPYING NEWS phototest.tif README
%files devel
%defattr(-,root,root,-)
%{_includedir}/%{name}
%changelog
* Fri Sep 07 2007 Karol Trzcionka <karlikt at gmail.com> - 2.01-1
- Upgrade to v2.01
* Tue Aug 21 2007 Karol Trzcionka <karlikt at gmail.com> - 2.00-1
- Upgrade to v2.00
* Thu Mar 22 2007 Karol Trzcionka <karlikt at gmail.com> - 1.04-1
- Change url and source
- Update to v1.04
- Make patch bases on upstream's v1.04b
- Change compilefix patch
- Adding -devel subpackage
* Thu Mar 22 2007 Karol Trzcionka <karlikt at gmail.com> - 1.03-2
- Including patch bases on cvs
* Tue Feb 13 2007 Karol Trzcionka <karlikt at gmail.com> - 1.03-1
- Update to v1.03
* Sat Jan 26 2007 Karol Trzcionka <karlikt at gmail.com> - 1.02-3
- Update BRs
- Fix x86_64 compile
* Sat Dec 30 2006 Karol Trzcionka <karlikt at gmail.com> - 1.02-2
- Fixed rpmlint warning in SRPM
* Fri Dec 29 2006 Karol Trzcionka <karlikt at gmail.com> - 1.02-1
- Initial Release