2 # - warnings at compile stage about pointer size on amd64 - needs check
3 # - build dynamic library, not the static one
5 %define lang_version 2.00
7 Summary: Tesseract Open Source OCR Engine
8 Summary(pl.UTF-8): Tesseract - silnik OCR o otwartych źródłach
13 Group: Applications/Graphics
14 Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
15 # Source0-md5: 5777b70b11df16c1ac9aa155d7cfc553
16 Source1: http://tesseract-ocr.googlecode.com/files/%{name}-%{lang_version}.eng.tar.gz
17 # Source1-md5: b8291d6b3a63ce7879d688e845e341a9
18 Source2: http://tesseract-ocr.googlecode.com/files/%{name}-%{lang_version}.fra.tar.gz
19 # Source2-md5: 64896b462e62572a3708bb461820126c
20 Source3: http://tesseract-ocr.googlecode.com/files/%{name}-%{lang_version}.ita.tar.gz
21 # Source3-md5: 2759e1dae91a989a43490ff4c2253a4b
22 Source4: http://tesseract-ocr.googlecode.com/files/%{name}-%{lang_version}.deu.tar.gz
23 # Source4-md5: 609d91b1ae3759a756b819b5d8403653
24 Source5: http://tesseract-ocr.googlecode.com/files/%{name}-%{lang_version}.spa.tar.gz
25 # Source5-md5: bc26a777b2384613895677cb8e61ca75
26 Source6: http://tesseract-ocr.googlecode.com/files/%{name}-%{lang_version}.nld.tar.gz
27 # Source6-md5: b2f6ede182cea4bbfffd3b040533ce58
28 Patch0: %{name}-no-java.patch
29 Patch1: %{name}-gcc43.patch
30 URL: http://code.google.com/p/tesseract-ocr/
31 BuildRequires: automake
32 BuildRequires: libtiff-devel
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 A commercial quality OCR engine originally developed at HP between
37 1985 and 1995. In 1995, this engine was among the top 3 evaluated by
38 UNLV. It was open-sourced by HP and UNLV in 2005.
40 %description -l pl.UTF-8
41 Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
42 latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
43 Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
46 Summary: German language data for Tesseract
47 Summary(pl.UTF-8): Dane języka niemieckiego dla Tesseracta
48 Group: Applications/Graphics
49 Requires: %{name} = %{version}-%{release}
50 Obsoletes: tesseract-deu
53 This package contains the data files required to recognize German
56 %description lang-de -l pl.UTF-8
57 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
61 Summary: English language data for Tesseract
62 Summary(pl.UTF-8): Dane języka angielskiego dla Tesseracta
63 Group: Applications/Graphics
64 Requires: %{name} = %{version}-%{release}
65 Obsoletes: tesseract-eng
68 This package contains the data files required to recognize English
71 %description lang-en -l pl.UTF-8
72 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
76 Summary: Spanish language data for Tesseract
77 Summary(pl.UTF-8): Dane języka hiszpańskiego dla Tesseracta
78 Group: Applications/Graphics
79 Requires: %{name} = %{version}-%{release}
80 Obsoletes: tesseract-spa
83 This package contains the data files required to recognize Spanish
86 %description lang-es -l pl.UTF-8
87 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
91 Summary: French language data for Tesseract
92 Summary(pl.UTF-8): Dane języka francuskiego dla Tesseracta
93 Group: Applications/Graphics
94 Requires: %{name} = %{version}-%{release}
95 Obsoletes: tesseract-fra
98 This package contains the data files required to recognize French
101 %description lang-fr -l pl.UTF-8
102 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
106 Summary: Italian language data for Tesseract
107 Summary(pl.UTF-8): Dane języka włoskiego dla Tesseracta
108 Group: Applications/Graphics
109 Requires: %{name} = %{version}-%{release}
110 Obsoletes: tesseract-ita
113 This package contains the data files required to recognize Italian
116 %description lang-it -l pl.UTF-8
117 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
121 Summary: Dutch language data for Tesseract
122 Summary(pl.UTF-8): Dane języka holenderskiego dla Tesseracta
123 Group: Applications/Graphics
124 Requires: %{name} = %{version}-%{release}
125 Obsoletes: tesseract-nl
128 This package contains the data files required to recognize Dutch
131 %description lang-nl -l pl.UTF-8
132 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
136 Summary: Tesseract - Development header files and libraries
137 Summary(pl.UTF-8): Tesseract - Pliki nagłówkowe i biblioteki dla programistów
138 Group: Development/Libraries
141 This package contains the development header files and libraries
142 necessary to develop applications using Tesseract.
156 cp -f /usr/share/automake/config.sub config
161 rm -rf $RPM_BUILD_ROOT
164 DESTDIR=$RPM_BUILD_ROOT
167 rm -rf $RPM_BUILD_ROOT
170 %defattr(644,root,root,755)
171 %doc AUTHORS COPYING ChangeLog README
172 %attr(755,root,root) %{_bindir}/cntraining
173 %attr(755,root,root) %{_bindir}/mftraining
174 %attr(755,root,root) %{_bindir}/tesseract
175 %attr(755,root,root) %{_bindir}/unicharset_extractor
176 %attr(755,root,root) %{_bindir}/wordlist2dawg
177 %dir %{_datadir}/tessdata
178 %{_datadir}/tessdata/confsets
179 %dir %{_datadir}/tessdata/configs
180 %{_datadir}/tessdata/configs/*
181 %dir %{_datadir}/tessdata/tessconfigs
182 %{_datadir}/tessdata/tessconfigs/*
185 %defattr(644,root,root,755)
186 %{_datadir}/tessdata/deu.*
189 %defattr(644,root,root,755)
190 %{_datadir}/tessdata/eng.*
193 %defattr(644,root,root,755)
194 %{_datadir}/tessdata/spa.*
197 %defattr(644,root,root,755)
198 %{_datadir}/tessdata/fra.*
201 %defattr(644,root,root,755)
202 %{_datadir}/tessdata/ita.*
205 %defattr(644,root,root,755)
206 %{_datadir}/tessdata/nld.*
209 %defattr(644,root,root,755)
210 %dir %{_includedir}/%{name}
211 %{_includedir}/%{name}/*.h