]> git.pld-linux.org Git - packages/tesseract.git/blob - tesseract.spec
- BR: libstdc++-devel
[packages/tesseract.git] / tesseract.spec
1 # TODO:
2 # - warnings at compile stage about pointer size on amd64 - needs check
3 # - build dynamic library, not the static one
4 #
5 %define         lang_version    2.00
6
7 Summary:        Tesseract Open Source OCR Engine
8 Summary(pl.UTF-8):      Tesseract - silnik OCR o otwartych źródłach
9 Name:           tesseract
10 Version:        2.04
11 Release:        1
12 License:        Apache v2.0
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)
35
36 %description
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.
40
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.
45
46 %package lang-de
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
52
53 %description lang-de
54 This package contains the data files required to recognize German
55 language.
56
57 %description lang-de -l pl.UTF-8
58 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
59 niemieckiego.
60
61 %package lang-en
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
67
68 %description lang-en
69 This package contains the data files required to recognize English
70 language.
71
72 %description lang-en -l pl.UTF-8
73 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
74 angielskiego.
75
76 %package lang-es
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
82
83 %description lang-es
84 This package contains the data files required to recognize Spanish
85 language.
86
87 %description lang-es -l pl.UTF-8
88 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
89 hiszpańskiego.
90
91 %package lang-fr
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
97
98 %description lang-fr
99 This package contains the data files required to recognize French
100 language.
101
102 %description lang-fr -l pl.UTF-8
103 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
104 francuskiego.
105
106 %package lang-it
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
112
113 %description lang-it
114 This package contains the data files required to recognize Italian
115 language.
116
117 %description lang-it -l pl.UTF-8
118 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
119 włoskiego.
120
121 %package lang-nl
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
127
128 %description lang-nl
129 This package contains the data files required to recognize Dutch
130 language.
131
132 %description lang-nl -l pl.UTF-8
133 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
134 holenderskiego.
135
136 %package devel
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
140
141 %description devel
142 This package contains the development header files and libraries
143 necessary to develop applications using Tesseract.
144
145 %prep
146 %setup -q
147 tar xzf %{SOURCE1}
148 tar xzf %{SOURCE2}
149 tar xzf %{SOURCE3}
150 tar xzf %{SOURCE4}
151 tar xzf %{SOURCE5}
152 tar xzf %{SOURCE6}
153 %patch0 -p1
154 %patch1 -p1
155
156 %build
157 cp -f /usr/share/automake/config.sub config
158 %configure
159 %{__make}
160
161 %install
162 rm -rf $RPM_BUILD_ROOT
163
164 %{__make} install \
165         DESTDIR=$RPM_BUILD_ROOT
166
167 %clean
168 rm -rf $RPM_BUILD_ROOT
169
170 %files
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/*
184
185 %files lang-de
186 %defattr(644,root,root,755)
187 %{_datadir}/tessdata/deu.*
188
189 %files lang-en
190 %defattr(644,root,root,755)
191 %{_datadir}/tessdata/eng.*
192
193 %files lang-es
194 %defattr(644,root,root,755)
195 %{_datadir}/tessdata/spa.*
196
197 %files lang-fr
198 %defattr(644,root,root,755)
199 %{_datadir}/tessdata/fra.*
200
201 %files lang-it
202 %defattr(644,root,root,755)
203 %{_datadir}/tessdata/ita.*
204
205 %files lang-nl
206 %defattr(644,root,root,755)
207 %{_datadir}/tessdata/nld.*
208
209 %files devel
210 %defattr(644,root,root,755)
211 %dir %{_includedir}/%{name}
212 %{_includedir}/%{name}/*.h
213 %{_libdir}/*.a
This page took 0.063421 seconds and 4 git commands to generate.