Author: eandry Date: Sat Feb 17 16:40:22 2007 New Revision: 122146 Added: packages/cooker/tesseract-ocr/current/SOURCES/abuild.diff Removed: packages/cooker/tesseract-ocr/current/SOURCES/tesseract-1.02.patch Modified: packages/cooker/tesseract-ocr/current/SPECS/tesseract-ocr.spec
Log: use opensuse patch Added: packages/cooker/tesseract-ocr/current/SOURCES/abuild.diff ============================================================================== --- (empty file) +++ packages/cooker/tesseract-ocr/current/SOURCES/abuild.diff Sat Feb 17 16:40:22 2007 @@ -0,0 +1,51 @@ +--- tesseract-1.03/ccutil/mainblk.cpp.orig 2006-06-17 00:17:05.000000000 +0200 ++++ tesseract-1.03/ccutil/mainblk.cpp 2007-02-05 12:19:02.731959000 +0100 +@@ -99,6 +99,13 @@ + if (m_print_variables) + print_variables(stdout); /*print them all */ + ++#ifdef TESSDATA_PREFIX ++# define _STR(a) #a ++# define _XSTR(a) _STR(a) ++ datadir = _XSTR(TESSDATA_PREFIX); ++# undef _XSTR ++# undef _STR ++#endif + datadir += m_data_sub_dir; /*data directory */ + + #ifdef __UNIX__ +--- tesseract-1.03/cutil/globals.h.orig 2006-06-17 00:17:07.000000000 +0200 ++++ tesseract-1.03/cutil/globals.h 2007-02-05 12:07:01.186229000 +0100 +@@ -43,8 +43,8 @@ + extern int debugs[MAXPROC]; /*debug flags */ + extern int plots[MAXPROC]; /*plot flags */ + extern int corners[4]; /*corners of scan window */ +-extern int optind; /*option index */ +-extern char *optarg; /*option argument */ ++extern "C" int optind; /*option index */ ++extern "C" char *optarg; /*option argument */ + /*image file name */ + extern char imagefile[FILENAMESIZE]; + /* main directory */ +--- tesseract-1.03/cutil/tordvars.h.orig 2006-06-17 00:17:07.000000000 +0200 ++++ tesseract-1.03/cutil/tordvars.h 2007-02-05 12:07:25.101284000 +0100 +@@ -45,7 +45,7 @@ + extern int similarity_debug; /* Level of debug output */ + extern int write_raw_output; /* Text before context */ + extern int write_output; /* Text file output */ +-extern int display_ratings; /* Show the ratings */ ++extern "C" int display_ratings; /* Show the ratings */ + extern int show_bold; /* Use bold text */ + extern int display_text; /* Show word text */ + extern int display_blocks; /* Show word as boxes */ +--- tesseract-1.03/configure.orig 2007-02-02 21:37:43.000000000 +0100 ++++ tesseract-1.03/configure 2007-02-05 12:05:58.241234000 +0100 +@@ -1359,8 +1359,6 @@ + + + +-tesseract +- + ac_aux_dir= + for ac_dir in config $srcdir/config; do + if test -f $ac_dir/install-sh; then Modified: packages/cooker/tesseract-ocr/current/SPECS/tesseract-ocr.spec ============================================================================== --- packages/cooker/tesseract-ocr/current/SPECS/tesseract-ocr.spec (original) +++ packages/cooker/tesseract-ocr/current/SPECS/tesseract-ocr.spec Sat Feb 17 16:40:22 2007 @@ -2,12 +2,12 @@ License: Apache, Other License(s), see package Group: Text tools Version: 1.03 -Release: %mkrel 1 +Release: %mkrel 2 Summary: an OCR engine URL: http://sourceforge.net/projects/tesseract-ocr Source: http://prdownloads.sourceforge.net/tesseract-ocr/tesseract-%{version}.tar.bz2 Source1: tess2col.pl.bz2 -Patch0: tesseract-1.02.patch +Patch0: abuild.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: libjpeg-devel libtiff-devel
