]>
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 |
854e1083 JB |
6 | Version: 3.02.02 |
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 |
854e1083 JB |
11 | Source0: http://tesseract-ocr.googlecode.com/files/%{name}-ocr-%{version}.tar.gz |
12 | # Source0-md5: 26adc8154f0e815053816825dde246e6 | |
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: libtool |
19 | Suggests: tesseract-data >= 3 | |
afaac0e1 ER |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | A commercial quality OCR engine originally developed at HP between | |
24 | 1985 and 1995. In 1995, this engine was among the top 3 evaluated by | |
25 | UNLV. It was open-sourced by HP and UNLV in 2005. | |
26 | ||
ac8a5dbe JR |
27 | %description -l pl.UTF-8 |
28 | Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w | |
29 | latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV. | |
30 | Źródła zostały uwolnione przez HP i UNLV w 2005 roku. | |
a1b42a34 | 31 | |
f7537631 JB |
32 | %package devel |
33 | Summary: Header files for Tesseract libraries | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Tesseracta | |
35 | Group: Development/Libraries | |
2fecdb4d | 36 | Requires: %{name} = %{version}-%{release} |
f7537631 JB |
37 | Requires: leptonlib-devel |
38 | Requires: libstdc++-devel | |
2fecdb4d | 39 | |
f7537631 JB |
40 | %description devel |
41 | This package contains the development header files necessary to | |
42 | develop applications using Tesseract API. | |
2fecdb4d | 43 | |
f7537631 JB |
44 | %description devel -l pl.UTF-8 |
45 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów | |
46 | wykorzystujących API Tesseracta. | |
2fecdb4d | 47 | |
f7537631 JB |
48 | %package static |
49 | Summary: Static Tesseract libraries | |
50 | Summary(pl.UTF-8): Statyczne biblioteki Tesseracta | |
2fecdb4d | 51 | Group: Development/Libraries |
f7537631 | 52 | Requires: %{name}-devel = %{version}-%{release} |
2fecdb4d | 53 | |
f7537631 JB |
54 | %description static |
55 | Static Tesseract libraries. | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczne biblioteki Tesseracta. | |
2fecdb4d | 59 | |
afaac0e1 | 60 | %prep |
854e1083 | 61 | %setup -q -n %{name}-ocr |
afaac0e1 ER |
62 | |
63 | %build | |
f7537631 JB |
64 | %{__libtoolize} |
65 | %{__aclocal} | |
66 | %{__autoconf} | |
67 | %{__autoheader} | |
68 | %{__automake} | |
afaac0e1 ER |
69 | %configure |
70 | %{__make} | |
71 | ||
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %{__make} install \ | |
76 | DESTDIR=$RPM_BUILD_ROOT | |
77 | ||
854e1083 JB |
78 | # test program? |
79 | %{__rm} $RPM_BUILD_ROOT%{_bindir}/classifier_tester | |
afaac0e1 ER |
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 |
854e1083 | 86 | %attr(755,root,root) %{_bindir}/ambiguous_words |
d5956ed3 | 87 | %attr(755,root,root) %{_bindir}/cntraining |
f7537631 | 88 | %attr(755,root,root) %{_bindir}/combine_tessdata |
854e1083 | 89 | %attr(755,root,root) %{_bindir}/dawg2wordlist |
d5956ed3 | 90 | %attr(755,root,root) %{_bindir}/mftraining |
854e1083 | 91 | %attr(755,root,root) %{_bindir}/shapeclustering |
afaac0e1 | 92 | %attr(755,root,root) %{_bindir}/tesseract |
2da6320c AZ |
93 | %attr(755,root,root) %{_bindir}/unicharset_extractor |
94 | %attr(755,root,root) %{_bindir}/wordlist2dawg | |
8028172e JB |
95 | %attr(755,root,root) %{_libdir}/libtesseract.so.*.*.* |
96 | %attr(755,root,root) %ghost %{_libdir}/libtesseract.so.3 | |
520e1ed8 | 97 | %dir %{_datadir}/tessdata |
2fecdb4d PG |
98 | %dir %{_datadir}/tessdata/configs |
99 | %{_datadir}/tessdata/configs/* | |
100 | %dir %{_datadir}/tessdata/tessconfigs | |
101 | %{_datadir}/tessdata/tessconfigs/* | |
854e1083 | 102 | %{_mandir}/man1/ambiguous_words.1* |
8028172e JB |
103 | %{_mandir}/man1/cntraining.1* |
104 | %{_mandir}/man1/combine_tessdata.1* | |
854e1083 | 105 | %{_mandir}/man1/dawg2wordlist.1* |
8028172e | 106 | %{_mandir}/man1/mftraining.1* |
854e1083 | 107 | %{_mandir}/man1/shapeclustering.1* |
8028172e JB |
108 | %{_mandir}/man1/tesseract.1* |
109 | %{_mandir}/man1/unicharset_extractor.1* | |
110 | %{_mandir}/man1/wordlist2dawg.1* | |
2da6320c | 111 | |
2fecdb4d | 112 | %files devel |
2da6320c | 113 | %defattr(644,root,root,755) |
8028172e | 114 | %attr(755,root,root) %{_libdir}/libtesseract.so |
3b4a3956 | 115 | %{_libdir}/libtesseract.la |
f7537631 | 116 | %{_includedir}/%{name} |
854e1083 | 117 | %{_pkgconfigdir}/tesseract.pc |
8028172e JB |
118 | %{_mandir}/man5/unicharambigs.5* |
119 | %{_mandir}/man5/unicharset.5* | |
f7537631 JB |
120 | |
121 | %files static | |
122 | %defattr(644,root,root,755) | |
8028172e | 123 | %{_libdir}/libtesseract.a |