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