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