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 Group: Applications/Graphics
44 Requires: %{name} = %{version}-%{release}
45 Obsoletes: %{name}-deu
48 The Tesseract deu package contains the data files required to
49 recognize German language.
52 Summary: English language data for Tesseract
53 Group: Applications/Graphics
54 Requires: %{name} = %{version}-%{release}
55 Obsoletes: %{name}-eng
58 The Tesseract eng package contains the data files required to
59 recognize English language.
62 Summary: French language data for Tesseract
63 Group: Applications/Graphics
64 Requires: %{name} = %{version}-%{release}
65 Obsoletes: %{name}-fra
68 The Tesseract fra package contains the data files required to
69 recognize French language.
72 Summary: Italian language data for Tesseract
73 Group: Applications/Graphics
74 Requires: %{name} = %{version}-%{release}
75 Obsoletes: %{name}-ita
78 The Tesseract ita package contains the data files required to
79 recognize Italian language.
82 Summary: Dutch language data for Tesseract
83 Group: Applications/Graphics
84 Requires: %{name} = %{version}-%{release}
85 Obsoletes: %{name}-nld
88 The Tesseract nld package contains the data files required to
89 recognize Dutch language.
92 Summary: Spanish language data for Tesseract
93 Group: Applications/Graphics
94 Requires: %{name} = %{version}-%{release}
95 Obsoletes: %{name}-spa
98 The Tesseract spa package contains the data files required to
99 recognize Spanish language.
102 Summary: Tesseract - Development header files and libraries
103 Summary(pl.UTF-8): Tesseract - Pliki nagłówkowe i biblioteki dla programistów
104 Group: Development/Libraries
107 This package contains the development header files and libraries
108 necessary to develop applications using Tesseract.
121 cp -f /usr/share/automake/config.sub config
126 rm -rf $RPM_BUILD_ROOT
129 DESTDIR=$RPM_BUILD_ROOT
132 rm -rf $RPM_BUILD_ROOT
135 %defattr(644,root,root,755)
136 %doc AUTHORS COPYING ChangeLog README
137 %attr(755,root,root) %{_bindir}/cntraining
138 %attr(755,root,root) %{_bindir}/mftraining
139 %attr(755,root,root) %{_bindir}/tesseract
140 %attr(755,root,root) %{_bindir}/unicharset_extractor
141 %attr(755,root,root) %{_bindir}/wordlist2dawg
142 %dir %{_datadir}/tessdata
143 %{_datadir}/tessdata/confsets
144 %dir %{_datadir}/tessdata/configs
145 %{_datadir}/tessdata/configs/*
146 %dir %{_datadir}/tessdata/tessconfigs
147 %{_datadir}/tessdata/tessconfigs/*
150 %defattr(644,root,root,755)
151 %{_datadir}/tessdata/deu.*
154 %defattr(644,root,root,755)
155 %{_datadir}/tessdata/eng.*
158 %defattr(644,root,root,755)
159 %{_datadir}/tessdata/fra.*
162 %defattr(644,root,root,755)
163 %{_datadir}/tessdata/ita.*
166 %defattr(644,root,root,755)
167 %{_datadir}/tessdata/nld.*
170 %defattr(644,root,root,755)
171 %{_datadir}/tessdata/spa.*
174 %defattr(644,root,root,755)
175 %dir %{_includedir}/%{name}
176 %{_includedir}/%{name}/*.h