2 # - warnings at compile stage about pointer size on amd64 - needs check
3 # - build dynamic library, not the static one
4 Summary: Tesseract Open Source OCR Engine
5 Summary(pl.UTF-8): Tesseract - silnik OCR o otwartych źródłach
9 License: Apache Software License v2
10 Group: Applications/Graphics
11 Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
12 # Source0-md5: 6d68d940ed15c61300cb04019c30f46c
13 Source1: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.eng.tar.gz
14 # Source1-md5: b8291d6b3a63ce7879d688e845e341a9
15 Source2: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.fra.tar.gz
16 # Source2-md5: 64896b462e62572a3708bb461820126c
17 Source3: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.ita.tar.gz
18 # Source3-md5: 2759e1dae91a989a43490ff4c2253a4b
19 Source4: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.deu.tar.gz
20 # Source4-md5: 609d91b1ae3759a756b819b5d8403653
21 Source5: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.spa.tar.gz
22 # Source5-md5: bc26a777b2384613895677cb8e61ca75
23 Source6: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.nld.tar.gz
24 # Source6-md5: b2f6ede182cea4bbfffd3b040533ce58
25 Patch0: %{name}-globals.patch
26 URL: http://code.google.com/p/tesseract-ocr/
27 BuildRequires: automake
28 BuildRequires: libtiff-devel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 A commercial quality OCR engine originally developed at HP between
33 1985 and 1995. In 1995, this engine was among the top 3 evaluated by
34 UNLV. It was open-sourced by HP and UNLV in 2005.
36 %description -l pl.UTF-8
37 Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
38 latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
39 Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
42 Summary: German language data for Tesseract
43 Summary(pl.UTF-8): Dane języka niemieckiego dla Tesseracta
44 Group: Applications/Graphics
45 Requires: %{name} = %{version}-%{release}
46 Obsoletes: tesseract-deu
49 This package contains the data files required to recognize German
52 %description lang-de -l pl.UTF-8
53 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
57 Summary: English language data for Tesseract
58 Summary(pl.UTF-8): Dane języka angielskiego dla Tesseracta
59 Group: Applications/Graphics
60 Requires: %{name} = %{version}-%{release}
61 Obsoletes: tesseract-eng
64 This package contains the data files required to recognize English
67 %description lang-en -l pl.UTF-8
68 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
72 Summary: Spanish language data for Tesseract
73 Summary(pl.UTF-8): Dane języka hiszpańskiego dla Tesseracta
74 Group: Applications/Graphics
75 Requires: %{name} = %{version}-%{release}
76 Obsoletes: tesseract-spa
79 This package contains the data files required to recognize Spanish
82 %description lang-es -l pl.UTF-8
83 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
87 Summary: French language data for Tesseract
88 Summary(pl.UTF-8): Dane języka francuskiego dla Tesseracta
89 Group: Applications/Graphics
90 Requires: %{name} = %{version}-%{release}
91 Obsoletes: tesseract-fra
94 This package contains the data files required to recognize French
97 %description lang-fr -l pl.UTF-8
98 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
102 Summary: Italian language data for Tesseract
103 Summary(pl.UTF-8): Dane języka włoskiego dla Tesseracta
104 Group: Applications/Graphics
105 Requires: %{name} = %{version}-%{release}
106 Obsoletes: tesseract-ita
109 This package contains the data files required to recognize Italian
112 %description lang-it -l pl.UTF-8
113 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
117 Summary: Dutch language data for Tesseract
118 Summary(pl.UTF-8): Dane języka holenderskiego dla Tesseracta
119 Group: Applications/Graphics
120 Requires: %{name} = %{version}-%{release}
121 Obsoletes: tesseract-nl
123 %description lang-nld
124 This package contains the data files required to recognize Dutch
127 %description lang-nl -l pl.UTF-8
128 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
132 Summary: Tesseract - Development header files and libraries
133 Summary(pl.UTF-8): Tesseract - Pliki nagłówkowe i biblioteki dla programistów
134 Group: Development/Libraries
137 This package contains the development header files and libraries
138 necessary to develop applications using Tesseract.
151 cp -f /usr/share/automake/config.sub config
156 rm -rf $RPM_BUILD_ROOT
159 DESTDIR=$RPM_BUILD_ROOT
162 rm -rf $RPM_BUILD_ROOT
165 %defattr(644,root,root,755)
166 %doc AUTHORS COPYING ChangeLog README
167 %attr(755,root,root) %{_bindir}/cntraining
168 %attr(755,root,root) %{_bindir}/mftraining
169 %attr(755,root,root) %{_bindir}/tesseract
170 %attr(755,root,root) %{_bindir}/unicharset_extractor
171 %attr(755,root,root) %{_bindir}/wordlist2dawg
172 %dir %{_datadir}/tessdata
173 %{_datadir}/tessdata/confsets
174 %dir %{_datadir}/tessdata/configs
175 %{_datadir}/tessdata/configs/*
176 %dir %{_datadir}/tessdata/tessconfigs
177 %{_datadir}/tessdata/tessconfigs/*
180 %defattr(644,root,root,755)
181 %{_datadir}/tessdata/deu.*
184 %defattr(644,root,root,755)
185 %{_datadir}/tessdata/eng.*
188 %defattr(644,root,root,755)
189 %{_datadir}/tessdata/spa.*
192 %defattr(644,root,root,755)
193 %{_datadir}/tessdata/fra.*
196 %defattr(644,root,root,755)
197 %{_datadir}/tessdata/ita.*
200 %defattr(644,root,root,755)
201 %{_datadir}/tessdata/nld.*
204 %defattr(644,root,root,755)
205 %dir %{_includedir}/%{name}
206 %{_includedir}/%{name}/*.h