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
12 License: Apache Software License v2
13 Group: Applications/Graphics
14 Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
15 # Source0-md5: fb0e6e7652b985049c11a4bc8e593885
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 URL: http://code.google.com/p/tesseract-ocr/
29 BuildRequires: automake
30 BuildRequires: libtiff-devel
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 A commercial quality OCR engine originally developed at HP between
35 1985 and 1995. In 1995, this engine was among the top 3 evaluated by
36 UNLV. It was open-sourced by HP and UNLV in 2005.
38 %description -l pl.UTF-8
39 Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
40 latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
41 Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
44 Summary: German language data for Tesseract
45 Summary(pl.UTF-8): Dane języka niemieckiego dla Tesseracta
46 Group: Applications/Graphics
47 Requires: %{name} = %{version}-%{release}
48 Obsoletes: tesseract-deu
51 This package contains the data files required to recognize German
54 %description lang-de -l pl.UTF-8
55 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
59 Summary: English language data for Tesseract
60 Summary(pl.UTF-8): Dane języka angielskiego dla Tesseracta
61 Group: Applications/Graphics
62 Requires: %{name} = %{version}-%{release}
63 Obsoletes: tesseract-eng
66 This package contains the data files required to recognize English
69 %description lang-en -l pl.UTF-8
70 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
74 Summary: Spanish language data for Tesseract
75 Summary(pl.UTF-8): Dane języka hiszpańskiego dla Tesseracta
76 Group: Applications/Graphics
77 Requires: %{name} = %{version}-%{release}
78 Obsoletes: tesseract-spa
81 This package contains the data files required to recognize Spanish
84 %description lang-es -l pl.UTF-8
85 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
89 Summary: French language data for Tesseract
90 Summary(pl.UTF-8): Dane języka francuskiego dla Tesseracta
91 Group: Applications/Graphics
92 Requires: %{name} = %{version}-%{release}
93 Obsoletes: tesseract-fra
96 This package contains the data files required to recognize French
99 %description lang-fr -l pl.UTF-8
100 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
104 Summary: Italian language data for Tesseract
105 Summary(pl.UTF-8): Dane języka włoskiego dla Tesseracta
106 Group: Applications/Graphics
107 Requires: %{name} = %{version}-%{release}
108 Obsoletes: tesseract-ita
111 This package contains the data files required to recognize Italian
114 %description lang-it -l pl.UTF-8
115 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
119 Summary: Dutch language data for Tesseract
120 Summary(pl.UTF-8): Dane języka holenderskiego dla Tesseracta
121 Group: Applications/Graphics
122 Requires: %{name} = %{version}-%{release}
123 Obsoletes: tesseract-nl
126 This package contains the data files required to recognize Dutch
129 %description lang-nl -l pl.UTF-8
130 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
134 Summary: Tesseract - Development header files and libraries
135 Summary(pl.UTF-8): Tesseract - Pliki nagłówkowe i biblioteki dla programistów
136 Group: Development/Libraries
139 This package contains the development header files and libraries
140 necessary to develop applications using Tesseract.
152 cp -f /usr/share/automake/config.sub config
157 rm -rf $RPM_BUILD_ROOT
160 DESTDIR=$RPM_BUILD_ROOT
163 rm -rf $RPM_BUILD_ROOT
166 %defattr(644,root,root,755)
167 %doc AUTHORS COPYING ChangeLog README
168 %attr(755,root,root) %{_bindir}/cntraining
169 %attr(755,root,root) %{_bindir}/mftraining
170 %attr(755,root,root) %{_bindir}/tesseract
171 %attr(755,root,root) %{_bindir}/unicharset_extractor
172 %attr(755,root,root) %{_bindir}/wordlist2dawg
173 %dir %{_datadir}/tessdata
174 %{_datadir}/tessdata/confsets
175 %dir %{_datadir}/tessdata/configs
176 %{_datadir}/tessdata/configs/*
177 %dir %{_datadir}/tessdata/tessconfigs
178 %{_datadir}/tessdata/tessconfigs/*
181 %defattr(644,root,root,755)
182 %{_datadir}/tessdata/deu.*
185 %defattr(644,root,root,755)
186 %{_datadir}/tessdata/eng.*
189 %defattr(644,root,root,755)
190 %{_datadir}/tessdata/spa.*
193 %defattr(644,root,root,755)
194 %{_datadir}/tessdata/fra.*
197 %defattr(644,root,root,755)
198 %{_datadir}/tessdata/ita.*
201 %defattr(644,root,root,755)
202 %{_datadir}/tessdata/nld.*
205 %defattr(644,root,root,755)
206 %dir %{_includedir}/%{name}
207 %{_includedir}/%{name}/*.h