]> git.pld-linux.org Git - packages/tesseract.git/blob - tesseract.spec
- removed obsolete globals patch
[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 Summary:        Tesseract Open Source OCR Engine
5 Summary(pl.UTF-8):      Tesseract - silnik OCR o otwartych źródłach
6 Name:           tesseract
7 Version:        2.00
8 Release:        0.9
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 URL:            http://code.google.com/p/tesseract-ocr/
26 BuildRequires:  automake
27 BuildRequires:  libtiff-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 A commercial quality OCR engine originally developed at HP between
32 1985 and 1995. In 1995, this engine was among the top 3 evaluated by
33 UNLV. It was open-sourced by HP and UNLV in 2005.
34
35 %description -l pl.UTF-8
36 Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
37 latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
38 Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
39
40 %package lang-de
41 Summary:        German language data for Tesseract
42 Summary(pl.UTF-8):      Dane języka niemieckiego dla Tesseracta
43 Group:          Applications/Graphics
44 Requires:       %{name} = %{version}-%{release}
45 Obsoletes:      tesseract-deu
46
47 %description lang-de
48 This package contains the data files required to recognize German
49 language.
50
51 %description lang-de -l pl.UTF-8
52 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
53 niemieckiego.
54
55 %package lang-en
56 Summary:        English language data for Tesseract
57 Summary(pl.UTF-8):      Dane języka angielskiego dla Tesseracta
58 Group:          Applications/Graphics
59 Requires:       %{name} = %{version}-%{release}
60 Obsoletes:      tesseract-eng
61
62 %description lang-en
63 This package contains the data files required to recognize English
64 language.
65
66 %description lang-en -l pl.UTF-8
67 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
68 angielskiego.
69
70 %package lang-es
71 Summary:        Spanish language data for Tesseract
72 Summary(pl.UTF-8):      Dane języka hiszpańskiego dla Tesseracta
73 Group:          Applications/Graphics
74 Requires:       %{name} = %{version}-%{release}
75 Obsoletes:      tesseract-spa
76
77 %description lang-es
78 This package contains the data files required to recognize Spanish
79 language.
80
81 %description lang-es -l pl.UTF-8
82 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
83 hiszpańskiego.
84
85 %package lang-fr
86 Summary:        French language data for Tesseract
87 Summary(pl.UTF-8):      Dane języka francuskiego dla Tesseracta
88 Group:          Applications/Graphics
89 Requires:       %{name} = %{version}-%{release}
90 Obsoletes:      tesseract-fra
91
92 %description lang-fr
93 This package contains the data files required to recognize French
94 language.
95
96 %description lang-fr -l pl.UTF-8
97 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
98 francuskiego.
99
100 %package lang-it
101 Summary:        Italian language data for Tesseract
102 Summary(pl.UTF-8):      Dane języka włoskiego dla Tesseracta
103 Group:          Applications/Graphics
104 Requires:       %{name} = %{version}-%{release}
105 Obsoletes:      tesseract-ita
106
107 %description lang-it
108 This package contains the data files required to recognize Italian
109 language.
110
111 %description lang-it -l pl.UTF-8
112 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
113 włoskiego.
114
115 %package lang-nl
116 Summary:        Dutch language data for Tesseract
117 Summary(pl.UTF-8):      Dane języka holenderskiego dla Tesseracta
118 Group:          Applications/Graphics
119 Requires:       %{name} = %{version}-%{release}
120 Obsoletes:      tesseract-nl
121
122 %description lang-nl
123 This package contains the data files required to recognize Dutch
124 language.
125
126 %description lang-nl -l pl.UTF-8
127 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
128 holenderskiego.
129
130 %package devel
131 Summary:        Tesseract - Development header files and libraries
132 Summary(pl.UTF-8):      Tesseract - Pliki nagłówkowe i biblioteki dla programistów
133 Group:          Development/Libraries
134
135 %description devel
136 This package contains the development header files and libraries
137 necessary to develop applications using Tesseract.
138
139 %prep
140 %setup -q
141 tar xzf %{SOURCE1}
142 tar xzf %{SOURCE2}
143 tar xzf %{SOURCE3}
144 tar xzf %{SOURCE4}
145 tar xzf %{SOURCE5}
146 tar xzf %{SOURCE6}
147
148 %build
149 cp -f /usr/share/automake/config.sub config
150 %configure
151 %{__make}
152
153 %install
154 rm -rf $RPM_BUILD_ROOT
155
156 %{__make} install \
157         DESTDIR=$RPM_BUILD_ROOT
158
159 %clean
160 rm -rf $RPM_BUILD_ROOT
161
162 %files
163 %defattr(644,root,root,755)
164 %doc AUTHORS COPYING ChangeLog README
165 %attr(755,root,root) %{_bindir}/cntraining
166 %attr(755,root,root) %{_bindir}/mftraining
167 %attr(755,root,root) %{_bindir}/tesseract
168 %attr(755,root,root) %{_bindir}/unicharset_extractor
169 %attr(755,root,root) %{_bindir}/wordlist2dawg
170 %dir %{_datadir}/tessdata
171 %{_datadir}/tessdata/confsets
172 %dir %{_datadir}/tessdata/configs
173 %{_datadir}/tessdata/configs/*
174 %dir %{_datadir}/tessdata/tessconfigs
175 %{_datadir}/tessdata/tessconfigs/*
176
177 %files lang-de
178 %defattr(644,root,root,755)
179 %{_datadir}/tessdata/deu.*
180
181 %files lang-en
182 %defattr(644,root,root,755)
183 %{_datadir}/tessdata/eng.*
184
185 %files lang-es
186 %defattr(644,root,root,755)
187 %{_datadir}/tessdata/spa.*
188
189 %files lang-fr
190 %defattr(644,root,root,755)
191 %{_datadir}/tessdata/fra.*
192
193 %files lang-it
194 %defattr(644,root,root,755)
195 %{_datadir}/tessdata/ita.*
196
197 %files lang-nl
198 %defattr(644,root,root,755)
199 %{_datadir}/tessdata/nld.*
200
201 %files devel
202 %defattr(644,root,root,755)
203 %dir %{_includedir}/%{name}
204 %{_includedir}/%{name}/*.h
205 %{_libdir}/*.a
This page took 0.07887 seconds and 4 git commands to generate.