diff --git a/.cvsignore b/.cvsignore index 65f268c..e15ce7f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,2 +1,2 @@ +tesseract-2.01.tar.gz tesseract-2.00.eng.tar.gz -tesseract-2.00.tar.gz diff --git a/sources b/sources index 423f066..69fc667 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ +fb0e6e7652b985049c11a4bc8e593885 tesseract-2.01.tar.gz b8291d6b3a63ce7879d688e845e341a9 tesseract-2.00.eng.tar.gz -6d68d940ed15c61300cb04019c30f46c tesseract-2.00.tar.gz diff --git a/tesseract-2.01-upstream_patch1.patch b/tesseract-2.01-upstream_patch1.patch new file mode 100644 index 0000000..4a9cc4b --- /dev/null +++ b/tesseract-2.01-upstream_patch1.patch @@ -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)) diff --git a/tesseract.spec b/tesseract.spec index 1030859..3d4b2d3 100644 --- a/tesseract.spec +++ b/tesseract.spec @@ -1,5 +1,5 @@ Name: tesseract -Version: 2.00 +Version: 2.01 Release: 1%{?dist} Summary: Raw OCR Engine @@ -7,7 +7,8 @@ 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}-%{version}.eng.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 @@ -27,6 +28,7 @@ developing applications that use %{name}. %prep %setup -q -a 1 +%patch0 %build sed -i 's#-DTESSDATA_PREFIX=@datadir@/#-DTESSDATA_PREFIX=@datadir@/%{name}/##' ccutil/Makefile.* @@ -52,7 +54,6 @@ rm -rf $RPM_BUILD_ROOT %{_bindir}/unicharset_extractor %{_bindir}/wordlist2dawg %{_datadir}/%{name} -%{_datadir}/%{name}/tessdata/eng* %doc AUTHORS ChangeLog COPYING NEWS phototest.tif README @@ -61,6 +62,8 @@ rm -rf $RPM_BUILD_ROOT %{_includedir}/%{name} %changelog +* Fri Sep 07 2007 Karol Trzcionka - 2.01-1 +- Upgrade to v2.01 * Tue Aug 21 2007 Karol Trzcionka - 2.00-1 - Upgrade to v2.00 * Thu Mar 22 2007 Karol Trzcionka - 1.04-1