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: b44eba1a9f4892ac62e484c807fe0533
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}-gcc44.patch
30 URL: http://code.google.com/p/tesseract-ocr/
31 BuildRequires: automake
32 BuildRequires: libtiff-devel
33 BuildRequires: libstdc++-devel
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 A commercial quality OCR engine originally developed at HP between
38 1985 and 1995. In 1995, this engine was among the top 3 evaluated by
39 UNLV. It was open-sourced by HP and UNLV in 2005.
41 %description -l pl.UTF-8
42 Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
43 latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
44 Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
47 Summary: German language data for Tesseract
48 Summary(pl.UTF-8): Dane języka niemieckiego dla Tesseracta
49 Group: Applications/Graphics
50 Requires: %{name} = %{version}-%{release}
51 Obsoletes: tesseract-deu
54 This package contains the data files required to recognize German
57 %description lang-de -l pl.UTF-8
58 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
62 Summary: English language data for Tesseract
63 Summary(pl.UTF-8): Dane języka angielskiego dla Tesseracta
64 Group: Applications/Graphics
65 Requires: %{name} = %{version}-%{release}
66 Obsoletes: tesseract-eng
69 This package contains the data files required to recognize English
72 %description lang-en -l pl.UTF-8
73 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
77 Summary: Spanish language data for Tesseract
78 Summary(pl.UTF-8): Dane języka hiszpańskiego dla Tesseracta
79 Group: Applications/Graphics
80 Requires: %{name} = %{version}-%{release}
81 Obsoletes: tesseract-spa
84 This package contains the data files required to recognize Spanish
87 %description lang-es -l pl.UTF-8
88 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
92 Summary: French language data for Tesseract
93 Summary(pl.UTF-8): Dane języka francuskiego dla Tesseracta
94 Group: Applications/Graphics
95 Requires: %{name} = %{version}-%{release}
96 Obsoletes: tesseract-fra
99 This package contains the data files required to recognize French
102 %description lang-fr -l pl.UTF-8
103 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
107 Summary: Italian language data for Tesseract
108 Summary(pl.UTF-8): Dane języka włoskiego dla Tesseracta
109 Group: Applications/Graphics
110 Requires: %{name} = %{version}-%{release}
111 Obsoletes: tesseract-ita
114 This package contains the data files required to recognize Italian
117 %description lang-it -l pl.UTF-8
118 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
122 Summary: Dutch language data for Tesseract
123 Summary(pl.UTF-8): Dane języka holenderskiego dla Tesseracta
124 Group: Applications/Graphics
125 Requires: %{name} = %{version}-%{release}
126 Obsoletes: tesseract-nl
129 This package contains the data files required to recognize Dutch
132 %description lang-nl -l pl.UTF-8
133 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
137 Summary: Tesseract - Development header files and libraries
138 Summary(pl.UTF-8): Tesseract - Pliki nagłówkowe i biblioteki dla programistów
139 Group: Development/Libraries
142 This package contains the development header files and libraries
143 necessary to develop applications using Tesseract.
157 cp -f /usr/share/automake/config.sub config
162 rm -rf $RPM_BUILD_ROOT
165 DESTDIR=$RPM_BUILD_ROOT
168 rm -rf $RPM_BUILD_ROOT
171 %defattr(644,root,root,755)
172 %doc AUTHORS COPYING ChangeLog README
173 %attr(755,root,root) %{_bindir}/cntraining
174 %attr(755,root,root) %{_bindir}/mftraining
175 %attr(755,root,root) %{_bindir}/tesseract
176 %attr(755,root,root) %{_bindir}/unicharset_extractor
177 %attr(755,root,root) %{_bindir}/wordlist2dawg
178 %dir %{_datadir}/tessdata
179 %{_datadir}/tessdata/confsets
180 %dir %{_datadir}/tessdata/configs
181 %{_datadir}/tessdata/configs/*
182 %dir %{_datadir}/tessdata/tessconfigs
183 %{_datadir}/tessdata/tessconfigs/*
186 %defattr(644,root,root,755)
187 %{_datadir}/tessdata/deu.*
190 %defattr(644,root,root,755)
191 %{_datadir}/tessdata/eng.*
194 %defattr(644,root,root,755)
195 %{_datadir}/tessdata/spa.*
198 %defattr(644,root,root,755)
199 %{_datadir}/tessdata/fra.*
202 %defattr(644,root,root,755)
203 %{_datadir}/tessdata/ita.*
206 %defattr(644,root,root,755)
207 %{_datadir}/tessdata/nld.*
210 %defattr(644,root,root,755)
211 %dir %{_includedir}/%{name}
212 %{_includedir}/%{name}/*.h