]>
Commit | Line | Data |
---|---|---|
a7d2de0d ER |
1 | # NOTE |
2 | # - warnings at compile stage about pointer size on amd64 | |
520e1ed8 | 3 | # - what to do with all the headers and static libs? remove? |
a7d2de0d | 4 | Summary: Tesseract Open Source OCR Engine |
877b8a7e | 5 | Summary(pl.UTF-8): Tesseract - silnik OCR o otwartych źródłach |
afaac0e1 | 6 | Name: tesseract |
2da6320c AZ |
7 | Version: 2.00 |
8 | Release: 0.1 | |
e22c6617 | 9 | License: Apache Software License v2 |
afaac0e1 | 10 | Group: Applications/Graphics |
520e1ed8 | 11 | Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz |
2da6320c AZ |
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 | |
d2ad799f | 25 | Patch0: %{name}-globals.patch |
520e1ed8 | 26 | URL: http://code.google.com/p/tesseract-ocr/ |
a7d2de0d | 27 | BuildRequires: automake |
afaac0e1 ER |
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 | ||
ac8a5dbe JR |
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. | |
a1b42a34 | 40 | |
afaac0e1 | 41 | %prep |
2da6320c AZ |
42 | %setup -q |
43 | #%patch0 -p1 | |
44 | tar zxf %{SOURCE1} | |
45 | tar xzf %{SOURCE2} | |
46 | tar xzf %{SOURCE3} | |
47 | tar xzf %{SOURCE4} | |
48 | tar xzf %{SOURCE5} | |
49 | tar xzf %{SOURCE6} | |
afaac0e1 ER |
50 | |
51 | %build | |
a7d2de0d | 52 | cp -f /usr/share/automake/config.sub config |
afaac0e1 ER |
53 | %configure |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %{__make} install \ | |
60 | DESTDIR=$RPM_BUILD_ROOT | |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %files | |
66 | %defattr(644,root,root,755) | |
67 | %doc AUTHORS COPYING ChangeLog README | |
d5956ed3 JB |
68 | %attr(755,root,root) %{_bindir}/cntraining |
69 | %attr(755,root,root) %{_bindir}/mftraining | |
afaac0e1 | 70 | %attr(755,root,root) %{_bindir}/tesseract |
2da6320c AZ |
71 | %attr(755,root,root) %{_bindir}/unicharset_extractor |
72 | %attr(755,root,root) %{_bindir}/wordlist2dawg | |
520e1ed8 PG |
73 | %dir %{_datadir}/tessdata |
74 | %{_datadir}/tessdata/* | |
2da6320c AZ |
75 | |
76 | %package deu | |
77 | Summary: German language data for Tesseract | |
78 | Group: Applications/Graphics | |
79 | Requires: tesseract >= 2.0 | |
80 | ||
81 | %description deu | |
82 | The %{name}-%{version}.deu package contains the data files required to | |
83 | recognize German | |
84 | ||
85 | %files deu | |
86 | %defattr(644,root,root,755) | |
87 | %{_datadir}/tessdata/deu.DangAmbigs | |
88 | %{_datadir}/tessdata/deu.freq-dawg | |
89 | %{_datadir}/tessdata/deu.inttemp | |
90 | %{_datadir}/tessdata/deu.normproto | |
91 | %{_datadir}/tessdata/deu.pffmtable | |
92 | %{_datadir}/tessdata/deu.unicharset | |
93 | %{_datadir}/tessdata/deu.user-words | |
94 | %{_datadir}/tessdata/deu.word-dawg | |
95 | ||
96 | %package eng | |
97 | Summary: English language data for Tesseract | |
98 | Group: Applications/Graphics | |
99 | Requires: tesseract >= 2.0 | |
100 | ||
101 | %description eng | |
102 | The %{name}-%{version}.eng package contains the data files required to | |
103 | recognize English | |
104 | ||
105 | %files eng | |
106 | %defattr(644,root,root,755) | |
107 | %{_datadir}/tessdata/eng.DangAmbigs | |
108 | %{_datadir}/tessdata/eng.freq-dawg | |
109 | %{_datadir}/tessdata/eng.inttemp | |
110 | %{_datadir}/tessdata/eng.normproto | |
111 | %{_datadir}/tessdata/eng.pffmtable | |
112 | %{_datadir}/tessdata/eng.unicharset | |
113 | %{_datadir}/tessdata/eng.user-words | |
114 | %{_datadir}/tessdata/eng.word-dawg | |
115 | ||
116 | %package fra | |
117 | Summary: French language data for Tesseract | |
118 | Group: Applications/Graphics | |
119 | Requires: tesseract >= 2.0 | |
120 | ||
121 | %description fra | |
122 | The %{name}-%{version}.fra package contains the data files required to | |
123 | recognize French | |
124 | ||
125 | %files fra | |
126 | %defattr(644,root,root,755) | |
127 | %{_datadir}/tessdata/fra.DangAmbigs | |
128 | %{_datadir}/tessdata/fra.freq-dawg | |
129 | %{_datadir}/tessdata/fra.inttemp | |
130 | %{_datadir}/tessdata/fra.normproto | |
131 | %{_datadir}/tessdata/fra.pffmtable | |
132 | %{_datadir}/tessdata/fra.unicharset | |
133 | %{_datadir}/tessdata/fra.user-words | |
134 | %{_datadir}/tessdata/fra.word-dawg | |
135 | ||
136 | %package ita | |
137 | Summary: Italian language data for Tesseract | |
138 | Group: Applications/Graphics | |
139 | Requires: tesseract >= 2.0 | |
140 | ||
141 | %description ita | |
142 | The %{name}-%{version}.ita package contains the data files required to | |
143 | recognize Italian | |
144 | ||
145 | %files ita | |
146 | %defattr(644,root,root,755) | |
147 | %{_datadir}/tessdata/ita.DangAmbigs | |
148 | %{_datadir}/tessdata/ita.freq-dawg | |
149 | %{_datadir}/tessdata/ita.inttemp | |
150 | %{_datadir}/tessdata/ita.normproto | |
151 | %{_datadir}/tessdata/ita.pffmtable | |
152 | %{_datadir}/tessdata/ita.unicharset | |
153 | %{_datadir}/tessdata/ita.user-words | |
154 | %{_datadir}/tessdata/ita.word-dawg | |
155 | ||
156 | %package nld | |
157 | Summary: Dutch language data for Tesseract | |
158 | Group: Applications/Graphics | |
159 | Requires: tesseract >= 2.0 | |
160 | ||
161 | %description nld | |
162 | The %{name}-%{version}.nld package contains the data files required to | |
163 | recognize Dutch | |
164 | ||
165 | %files nld | |
166 | %defattr(644,root,root,755) | |
167 | %{_datadir}/tessdata/nld.DangAmbigs | |
168 | %{_datadir}/tessdata/nld.freq-dawg | |
169 | %{_datadir}/tessdata/nld.inttemp | |
170 | %{_datadir}/tessdata/nld.normproto | |
171 | %{_datadir}/tessdata/nld.pffmtable | |
172 | %{_datadir}/tessdata/nld.unicharset | |
173 | %{_datadir}/tessdata/nld.user-words | |
174 | %{_datadir}/tessdata/nld.word-dawg | |
175 | ||
176 | %package spa | |
177 | Summary: Spanish language data for Tesseract | |
178 | Group: Applications/Graphics | |
179 | Requires: tesseract >= 2.0 | |
180 | ||
181 | %description spa | |
182 | The %{name}-%{version}.spa package contains the data files required to | |
183 | recognize Spanish | |
184 | ||
185 | %files spa | |
186 | %defattr(644,root,root,755) | |
187 | %{_datadir}/tessdata/spa.DangAmbigs | |
188 | %{_datadir}/tessdata/spa.freq-dawg | |
189 | %{_datadir}/tessdata/spa.inttemp | |
190 | %{_datadir}/tessdata/spa.normproto | |
191 | %{_datadir}/tessdata/spa.pffmtable | |
192 | %{_datadir}/tessdata/spa.unicharset | |
193 | %{_datadir}/tessdata/spa.user-words | |
194 | %{_datadir}/tessdata/spa.word-dawg |