]>
Commit | Line | Data |
---|---|---|
2fecdb4d PG |
1 | # TODO: |
2 | # - warnings at compile stage about pointer size on amd64 - needs check | |
a7d2de0d | 3 | Summary: Tesseract Open Source OCR Engine |
877b8a7e | 4 | Summary(pl.UTF-8): Tesseract - silnik OCR o otwartych źródłach |
afaac0e1 | 5 | Name: tesseract |
8028172e | 6 | Version: 3.01 |
136017b2 | 7 | Release: 1 |
187eebd6 | 8 | License: Apache v2.0 |
afaac0e1 | 9 | Group: Applications/Graphics |
f7537631 | 10 | #Source0Download: http://code.google.com/p/tesseract-ocr/downloads/list |
520e1ed8 | 11 | Source0: http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz |
8028172e | 12 | # Source0-md5: 1ba496e51a42358fb9d3ffe781b2d20a |
520e1ed8 | 13 | URL: http://code.google.com/p/tesseract-ocr/ |
f7537631 | 14 | BuildRequires: autoconf >= 2.50 |
a7d2de0d | 15 | BuildRequires: automake |
f7537631 | 16 | BuildRequires: leptonlib-devel |
61b2992b | 17 | BuildRequires: libstdc++-devel |
f7537631 JB |
18 | BuildRequires: libtiff-devel |
19 | BuildRequires: libtool | |
20 | Suggests: tesseract-data >= 3 | |
afaac0e1 ER |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | A commercial quality OCR engine originally developed at HP between | |
25 | 1985 and 1995. In 1995, this engine was among the top 3 evaluated by | |
26 | UNLV. It was open-sourced by HP and UNLV in 2005. | |
27 | ||
ac8a5dbe JR |
28 | %description -l pl.UTF-8 |
29 | Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w | |
30 | latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV. | |
31 | Źródła zostały uwolnione przez HP i UNLV w 2005 roku. | |
a1b42a34 | 32 | |
f7537631 JB |
33 | %package devel |
34 | Summary: Header files for Tesseract libraries | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Tesseracta | |
36 | Group: Development/Libraries | |
2fecdb4d | 37 | Requires: %{name} = %{version}-%{release} |
f7537631 JB |
38 | Requires: leptonlib-devel |
39 | Requires: libstdc++-devel | |
40 | Requires: libtiff-devel | |
2fecdb4d | 41 | |
f7537631 JB |
42 | %description devel |
43 | This package contains the development header files necessary to | |
44 | develop applications using Tesseract API. | |
2fecdb4d | 45 | |
f7537631 JB |
46 | %description devel -l pl.UTF-8 |
47 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
48 | wykorzystujących API Tesseracta. | |
2fecdb4d | 49 | |
f7537631 JB |
50 | %package static |
51 | Summary: Static Tesseract libraries | |
52 | Summary(pl.UTF-8): Statyczne biblioteki Tesseracta | |
2fecdb4d | 53 | Group: Development/Libraries |
f7537631 | 54 | Requires: %{name}-devel = %{version}-%{release} |
2fecdb4d | 55 | |
f7537631 JB |
56 | %description static |
57 | Static Tesseract libraries. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczne biblioteki Tesseracta. | |
2fecdb4d | 61 | |
afaac0e1 | 62 | %prep |
2da6320c | 63 | %setup -q |
afaac0e1 ER |
64 | |
65 | %build | |
f7537631 JB |
66 | %{__libtoolize} |
67 | %{__aclocal} | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
afaac0e1 ER |
71 | %configure |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %files | |
84 | %defattr(644,root,root,755) | |
f7537631 | 85 | %doc AUTHORS COPYING ChangeLog README ReleaseNotes |
d5956ed3 | 86 | %attr(755,root,root) %{_bindir}/cntraining |
f7537631 | 87 | %attr(755,root,root) %{_bindir}/combine_tessdata |
d5956ed3 | 88 | %attr(755,root,root) %{_bindir}/mftraining |
afaac0e1 | 89 | %attr(755,root,root) %{_bindir}/tesseract |
2da6320c AZ |
90 | %attr(755,root,root) %{_bindir}/unicharset_extractor |
91 | %attr(755,root,root) %{_bindir}/wordlist2dawg | |
8028172e JB |
92 | %attr(755,root,root) %{_libdir}/libtesseract.so.*.*.* |
93 | %attr(755,root,root) %ghost %{_libdir}/libtesseract.so.3 | |
520e1ed8 | 94 | %dir %{_datadir}/tessdata |
2fecdb4d PG |
95 | %dir %{_datadir}/tessdata/configs |
96 | %{_datadir}/tessdata/configs/* | |
97 | %dir %{_datadir}/tessdata/tessconfigs | |
98 | %{_datadir}/tessdata/tessconfigs/* | |
8028172e JB |
99 | %{_mandir}/man1/cntraining.1* |
100 | %{_mandir}/man1/combine_tessdata.1* | |
101 | %{_mandir}/man1/mftraining.1* | |
102 | %{_mandir}/man1/tesseract.1* | |
103 | %{_mandir}/man1/unicharset_extractor.1* | |
104 | %{_mandir}/man1/wordlist2dawg.1* | |
2da6320c | 105 | |
2fecdb4d | 106 | %files devel |
2da6320c | 107 | %defattr(644,root,root,755) |
8028172e JB |
108 | %attr(755,root,root) %{_libdir}/libtesseract.so |
109 | %{_libdir}/libtesseract.la | |
f7537631 | 110 | %{_includedir}/%{name} |
8028172e JB |
111 | %{_mandir}/man5/unicharambigs.5* |
112 | %{_mandir}/man5/unicharset.5* | |
f7537631 JB |
113 | |
114 | %files static | |
115 | %defattr(644,root,root,755) | |
8028172e | 116 | %{_libdir}/libtesseract.a |