]>
Commit | Line | Data |
---|---|---|
2fecdb4d PG |
1 | # TODO: |
2 | # - warnings at compile stage about pointer size on amd64 - needs check | |
3 | # - build dynamic library, not the static one | |
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 | 7 | Version: 2.00 |
2fecdb4d | 8 | Release: 0.9 |
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 | |
2fecdb4d PG |
41 | %package lang-deu |
42 | Summary: German language data for Tesseract | |
43 | Group: Applications/Graphics | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Obsoletes: %{name}-deu | |
46 | ||
47 | %description lang-deu | |
48 | The Tesseract deu package contains the data files required to | |
49 | recognize German language. | |
50 | ||
51 | %package lang-eng | |
52 | Summary: English language data for Tesseract | |
53 | Group: Applications/Graphics | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | Obsoletes: %{name}-eng | |
56 | ||
57 | %description lang-eng | |
58 | The Tesseract eng package contains the data files required to | |
59 | recognize English language. | |
60 | ||
61 | %package lang-fra | |
62 | Summary: French language data for Tesseract | |
63 | Group: Applications/Graphics | |
64 | Requires: %{name} = %{version}-%{release} | |
65 | Obsoletes: %{name}-fra | |
66 | ||
67 | %description lang-fra | |
68 | The Tesseract fra package contains the data files required to | |
69 | recognize French language. | |
70 | ||
71 | %package lang-ita | |
72 | Summary: Italian language data for Tesseract | |
73 | Group: Applications/Graphics | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | Obsoletes: %{name}-ita | |
76 | ||
77 | %description lang-ita | |
78 | The Tesseract ita package contains the data files required to | |
79 | recognize Italian language. | |
80 | ||
81 | %package lang-nld | |
82 | Summary: Dutch language data for Tesseract | |
83 | Group: Applications/Graphics | |
84 | Requires: %{name} = %{version}-%{release} | |
85 | Obsoletes: %{name}-nld | |
86 | ||
87 | %description lang-nld | |
88 | The Tesseract nld package contains the data files required to | |
89 | recognize Dutch language. | |
90 | ||
91 | %package lang-spa | |
92 | Summary: Spanish language data for Tesseract | |
93 | Group: Applications/Graphics | |
94 | Requires: %{name} = %{version}-%{release} | |
95 | Obsoletes: %{name}-spa | |
96 | ||
97 | %description lang-spa | |
98 | The Tesseract spa package contains the data files required to | |
99 | recognize Spanish language. | |
100 | ||
101 | %package devel | |
102 | Summary: Tesseract - Development header files and libraries | |
103 | Summary(pl.UTF-8): Tesseract - Pliki nagłówkowe i biblioteki dla programistów | |
104 | Group: Development/Libraries | |
105 | ||
106 | %description devel | |
107 | This package contains the development header files and libraries | |
108 | necessary to develop applications using Tesseract. | |
109 | ||
afaac0e1 | 110 | %prep |
2da6320c AZ |
111 | %setup -q |
112 | #%patch0 -p1 | |
2fecdb4d PG |
113 | tar -zxvf %{SOURCE1} |
114 | tar -zxvf %{SOURCE2} | |
115 | tar -zxvf %{SOURCE3} | |
116 | tar -zxvf %{SOURCE4} | |
117 | tar -zxvf %{SOURCE5} | |
118 | tar -zxvf %{SOURCE6} | |
afaac0e1 ER |
119 | |
120 | %build | |
a7d2de0d | 121 | cp -f /usr/share/automake/config.sub config |
afaac0e1 ER |
122 | %configure |
123 | %{__make} | |
124 | ||
125 | %install | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %{__make} install \ | |
129 | DESTDIR=$RPM_BUILD_ROOT | |
130 | ||
131 | %clean | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | ||
134 | %files | |
135 | %defattr(644,root,root,755) | |
136 | %doc AUTHORS COPYING ChangeLog README | |
d5956ed3 JB |
137 | %attr(755,root,root) %{_bindir}/cntraining |
138 | %attr(755,root,root) %{_bindir}/mftraining | |
afaac0e1 | 139 | %attr(755,root,root) %{_bindir}/tesseract |
2da6320c AZ |
140 | %attr(755,root,root) %{_bindir}/unicharset_extractor |
141 | %attr(755,root,root) %{_bindir}/wordlist2dawg | |
520e1ed8 | 142 | %dir %{_datadir}/tessdata |
2fecdb4d PG |
143 | %{_datadir}/tessdata/confsets |
144 | %dir %{_datadir}/tessdata/configs | |
145 | %{_datadir}/tessdata/configs/* | |
146 | %dir %{_datadir}/tessdata/tessconfigs | |
147 | %{_datadir}/tessdata/tessconfigs/* | |
2da6320c | 148 | |
2fecdb4d | 149 | %files lang-deu |
2da6320c | 150 | %defattr(644,root,root,755) |
2fecdb4d | 151 | %{_datadir}/tessdata/deu.* |
2da6320c | 152 | |
2fecdb4d | 153 | %files lang-eng |
2da6320c | 154 | %defattr(644,root,root,755) |
2fecdb4d | 155 | %{_datadir}/tessdata/eng.* |
2da6320c | 156 | |
2fecdb4d | 157 | %files lang-fra |
2da6320c | 158 | %defattr(644,root,root,755) |
2fecdb4d | 159 | %{_datadir}/tessdata/fra.* |
2da6320c | 160 | |
2fecdb4d | 161 | %files lang-ita |
2da6320c | 162 | %defattr(644,root,root,755) |
2fecdb4d | 163 | %{_datadir}/tessdata/ita.* |
2da6320c | 164 | |
2fecdb4d | 165 | %files lang-nld |
2da6320c | 166 | %defattr(644,root,root,755) |
2fecdb4d | 167 | %{_datadir}/tessdata/nld.* |
2da6320c | 168 | |
2fecdb4d PG |
169 | %files lang-spa |
170 | %defattr(644,root,root,755) | |
171 | %{_datadir}/tessdata/spa.* | |
2da6320c | 172 | |
2fecdb4d | 173 | %files devel |
2da6320c | 174 | %defattr(644,root,root,755) |
2fecdb4d PG |
175 | %dir %{_includedir}/%{name} |
176 | %{_includedir}/%{name}/*.h | |
177 | %{_libdir}/*.a |