]> git.pld-linux.org Git - packages/tesseract.git/blob - tesseract.spec
- leftover
[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 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)
30
31 %description
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.
35
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.
40
41 %package lang-de
42 Summary:        German language data for Tesseract
43 Summary(pl.UTF-8):      Dane języka niemieckiego dla Tesseracta
44 Group:          Applications/Graphics
45 Requires:       %{name} = %{version}-%{release}
46 Obsoletes:      tesseract-deu
47
48 %description lang-de
49 This package contains the data files required to recognize German
50 language.
51
52 %description lang-de -l pl.UTF-8
53 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
54 niemieckiego.
55
56 %package lang-en
57 Summary:        English language data for Tesseract
58 Summary(pl.UTF-8):      Dane języka angielskiego dla Tesseracta
59 Group:          Applications/Graphics
60 Requires:       %{name} = %{version}-%{release}
61 Obsoletes:      tesseract-eng
62
63 %description lang-en
64 This package contains the data files required to recognize English
65 language.
66
67 %description lang-en -l pl.UTF-8
68 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
69 angielskiego.
70
71 %package lang-es
72 Summary:        Spanish language data for Tesseract
73 Summary(pl.UTF-8):      Dane języka hiszpańskiego dla Tesseracta
74 Group:          Applications/Graphics
75 Requires:       %{name} = %{version}-%{release}
76 Obsoletes:      tesseract-spa
77
78 %description lang-es
79 This package contains the data files required to recognize Spanish
80 language.
81
82 %description lang-es -l pl.UTF-8
83 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
84 hiszpańskiego.
85
86 %package lang-fr
87 Summary:        French language data for Tesseract
88 Summary(pl.UTF-8):      Dane języka francuskiego dla Tesseracta
89 Group:          Applications/Graphics
90 Requires:       %{name} = %{version}-%{release}
91 Obsoletes:      tesseract-fra
92
93 %description lang-fr
94 This package contains the data files required to recognize French
95 language.
96
97 %description lang-fr -l pl.UTF-8
98 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
99 francuskiego.
100
101 %package lang-it
102 Summary:        Italian language data for Tesseract
103 Summary(pl.UTF-8):      Dane języka włoskiego dla Tesseracta
104 Group:          Applications/Graphics
105 Requires:       %{name} = %{version}-%{release}
106 Obsoletes:      tesseract-ita
107
108 %description lang-it
109 This package contains the data files required to recognize Italian
110 language.
111
112 %description lang-it -l pl.UTF-8
113 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
114 włoskiego.
115
116 %package lang-nl
117 Summary:        Dutch language data for Tesseract
118 Summary(pl.UTF-8):      Dane języka holenderskiego dla Tesseracta
119 Group:          Applications/Graphics
120 Requires:       %{name} = %{version}-%{release}
121 Obsoletes:      tesseract-nl
122
123 %description lang-nl
124 This package contains the data files required to recognize Dutch
125 language.
126
127 %description lang-nl -l pl.UTF-8
128 Ten pakiet zawiera pliki danych potrzebne do rozpoznawania języka
129 holenderskiego.
130
131 %package devel
132 Summary:        Tesseract - Development header files and libraries
133 Summary(pl.UTF-8):      Tesseract - Pliki nagłówkowe i biblioteki dla programistów
134 Group:          Development/Libraries
135
136 %description devel
137 This package contains the development header files and libraries
138 necessary to develop applications using Tesseract.
139
140 %prep
141 %setup -q
142 #%patch0 -p1
143 tar xzf %{SOURCE1}
144 tar xzf %{SOURCE2}
145 tar xzf %{SOURCE3}
146 tar xzf %{SOURCE4}
147 tar xzf %{SOURCE5}
148 tar xzf %{SOURCE6}
149
150 %build
151 cp -f /usr/share/automake/config.sub config
152 %configure
153 %{__make}
154
155 %install
156 rm -rf $RPM_BUILD_ROOT
157
158 %{__make} install \
159         DESTDIR=$RPM_BUILD_ROOT
160
161 %clean
162 rm -rf $RPM_BUILD_ROOT
163
164 %files
165 %defattr(644,root,root,755)
166 %doc AUTHORS COPYING ChangeLog README
167 %attr(755,root,root) %{_bindir}/cntraining
168 %attr(755,root,root) %{_bindir}/mftraining
169 %attr(755,root,root) %{_bindir}/tesseract
170 %attr(755,root,root) %{_bindir}/unicharset_extractor
171 %attr(755,root,root) %{_bindir}/wordlist2dawg
172 %dir %{_datadir}/tessdata
173 %{_datadir}/tessdata/confsets
174 %dir %{_datadir}/tessdata/configs
175 %{_datadir}/tessdata/configs/*
176 %dir %{_datadir}/tessdata/tessconfigs
177 %{_datadir}/tessdata/tessconfigs/*
178
179 %files lang-de
180 %defattr(644,root,root,755)
181 %{_datadir}/tessdata/deu.*
182
183 %files lang-en
184 %defattr(644,root,root,755)
185 %{_datadir}/tessdata/eng.*
186
187 %files lang-es
188 %defattr(644,root,root,755)
189 %{_datadir}/tessdata/spa.*
190
191 %files lang-fr
192 %defattr(644,root,root,755)
193 %{_datadir}/tessdata/fra.*
194
195 %files lang-it
196 %defattr(644,root,root,755)
197 %{_datadir}/tessdata/ita.*
198
199 %files lang-nl
200 %defattr(644,root,root,755)
201 %{_datadir}/tessdata/nld.*
202
203 %files devel
204 %defattr(644,root,root,755)
205 %dir %{_includedir}/%{name}
206 %{_includedir}/%{name}/*.h
207 %{_libdir}/*.a
This page took 0.082722 seconds and 4 git commands to generate.