From 9b542176efcaeac74108ce682f2c8b678d7e5df2 Mon Sep 17 00:00:00 2001 From: Karol Trzcionka Date: Sat, 3 May 2008 23:19:00 +0000 Subject: [PATCH] Update to v2.03 --- .cvsignore | 2 +- sources | 2 +- tesseract-2.01-upstream_patch1.patch | 11 ----------- tesseract.spec | 15 +++++++++++---- 4 files changed, 13 insertions(+), 17 deletions(-) delete mode 100644 tesseract-2.01-upstream_patch1.patch diff --git a/.cvsignore b/.cvsignore index e15ce7f..a79eb1a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,2 @@ -tesseract-2.01.tar.gz +tesseract-2.03.tar.gz tesseract-2.00.eng.tar.gz diff --git a/sources b/sources index 69fc667..2fbf4e7 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -fb0e6e7652b985049c11a4bc8e593885 tesseract-2.01.tar.gz +5777b70b11df16c1ac9aa155d7cfc553 tesseract-2.03.tar.gz b8291d6b3a63ce7879d688e845e341a9 tesseract-2.00.eng.tar.gz diff --git a/tesseract-2.01-upstream_patch1.patch b/tesseract-2.01-upstream_patch1.patch deleted file mode 100644 index 4a9cc4b..0000000 --- a/tesseract-2.01-upstream_patch1.patch +++ /dev/null @@ -1,11 +0,0 @@ -+++ 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)) diff --git a/tesseract.spec b/tesseract.spec index 3d4b2d3..e7d9a49 100644 --- a/tesseract.spec +++ b/tesseract.spec @@ -1,5 +1,5 @@ Name: tesseract -Version: 2.01 +Version: 2.03 Release: 1%{?dist} Summary: Raw OCR Engine @@ -8,7 +8,6 @@ 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 @@ -28,10 +27,14 @@ developing applications that use %{name}. %prep %setup -q -a 1 -%patch0 %build sed -i 's#-DTESSDATA_PREFIX=@datadir@/#-DTESSDATA_PREFIX=@datadir@/%{name}/##' ccutil/Makefile.* +find . -type f -exec sed -i 's/#include /#include \n#include /' {} \; ; +sed -i 's/#include /#include \n#include /' viewer/svmnode.cpp +sed -i 's/#include /#include \n#include /' viewer/svutil.cpp +sed -i 's/#include /#include \n#include /' viewer/scrollview.cpp +rm -f java/makefile %configure make %{?_smp_mflags} @@ -62,6 +65,10 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/%{name} %changelog +* Sun May 04 2008 Karol Trzcionka - 2.03-1 +- Update to v2.03 +* Sat Feb 09 2008 Karol Trzcionka - 2.01-2 +- Rebuild for gcc43 * Fri Sep 07 2007 Karol Trzcionka - 2.01-1 - Upgrade to v2.01 * Tue Aug 21 2007 Karol Trzcionka - 2.00-1 @@ -82,4 +89,4 @@ rm -rf $RPM_BUILD_ROOT * Sat Dec 30 2006 Karol Trzcionka - 1.02-2 - Fixed rpmlint warning in SRPM * Fri Dec 29 2006 Karol Trzcionka - 1.02-1 -- Initial Release \ No newline at end of file +- Initial Release