]> git.pld-linux.org Git - packages/tesseract.git/blame - tesseract.spec
build training tools
[packages/tesseract.git] / tesseract.spec
CommitLineData
2fecdb4d
PG
1# TODO:
2# - warnings at compile stage about pointer size on amd64 - needs check
a7d2de0d 3Summary: Tesseract Open Source OCR Engine
877b8a7e 4Summary(pl.UTF-8): Tesseract - silnik OCR o otwartych źródłach
afaac0e1 5Name: tesseract
6f607027
TP
6Version: 3.04.00
7Release: 0.1
187eebd6 8License: Apache v2.0
afaac0e1 9Group: Applications/Graphics
6f607027
TP
10Source0: https://github.com/tesseract-ocr/tesseract/archive/%{version}.tar.gz
11# Source0-md5: 078130b9c7d28c558a0e49d432505864
520e1ed8 12URL: http://code.google.com/p/tesseract-ocr/
f7537631 13BuildRequires: autoconf >= 2.50
a7d2de0d 14BuildRequires: automake
caa3afbb
TP
15BuildRequires: cairo-devel
16BuildRequires: libicu-devel
6f607027 17BuildRequires: leptonlib-devel >= 1.71
61b2992b 18BuildRequires: libstdc++-devel
f7537631 19BuildRequires: libtool
caa3afbb 20BuildRequires: pango-devel
f7537631 21Suggests: tesseract-data >= 3
afaac0e1
ER
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25A commercial quality OCR engine originally developed at HP between
261985 and 1995. In 1995, this engine was among the top 3 evaluated by
27UNLV. It was open-sourced by HP and UNLV in 2005.
28
ac8a5dbe
JR
29%description -l pl.UTF-8
30Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
31latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
32Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
a1b42a34 33
f7537631
JB
34%package devel
35Summary: Header files for Tesseract libraries
36Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Tesseracta
37Group: Development/Libraries
2fecdb4d 38Requires: %{name} = %{version}-%{release}
f7537631
JB
39Requires: leptonlib-devel
40Requires: libstdc++-devel
2fecdb4d 41
f7537631
JB
42%description devel
43This package contains the development header files necessary to
44develop applications using Tesseract API.
2fecdb4d 45
f7537631
JB
46%description devel -l pl.UTF-8
47Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
48wykorzystujących API Tesseracta.
2fecdb4d 49
f7537631
JB
50%package static
51Summary: Static Tesseract libraries
52Summary(pl.UTF-8): Statyczne biblioteki Tesseracta
2fecdb4d 53Group: Development/Libraries
f7537631 54Requires: %{name}-devel = %{version}-%{release}
2fecdb4d 55
f7537631
JB
56%description static
57Static Tesseract libraries.
58
59%description static -l pl.UTF-8
60Statyczne biblioteki Tesseracta.
2fecdb4d 61
afaac0e1 62%prep
6f607027 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}
caa3afbb 73%{__make} training
afaac0e1
ER
74
75%install
76rm -rf $RPM_BUILD_ROOT
77
78%{__make} install \
79 DESTDIR=$RPM_BUILD_ROOT
80
caa3afbb
TP
81%{__make} training-install \
82 DESTDIR=$RPM_BUILD_ROOT
83
854e1083 84# test program?
caa3afbb 85#%{__rm} $RPM_BUILD_ROOT%{_bindir}/classifier_tester
6f607027
TP
86%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtesseract.la
87
afaac0e1
ER
88%clean
89rm -rf $RPM_BUILD_ROOT
90
0527fb34
BS
91%post -p /sbin/ldconfig
92%postun -p /sbin/ldconfig
93
afaac0e1
ER
94%files
95%defattr(644,root,root,755)
f7537631 96%doc AUTHORS COPYING ChangeLog README ReleaseNotes
caa3afbb
TP
97#%attr(755,root,root) %{_bindir}/ambiguous_words
98#%attr(755,root,root) %{_bindir}/cntraining
99#%attr(755,root,root) %{_bindir}/combine_tessdata
100#%attr(755,root,root) %{_bindir}/dawg2wordlist
101#%attr(755,root,root) %{_bindir}/mftraining
102#%attr(755,root,root) %{_bindir}/shapeclustering
103#%attr(755,root,root) %{_bindir}/tesseract
104#%attr(755,root,root) %{_bindir}/unicharset_extractor
105#%attr(755,root,root) %{_bindir}/wordlist2dawg
106#%attr(755,root,root) %{_libdir}/libtesseract.so.*.*.*
8028172e 107%attr(755,root,root) %ghost %{_libdir}/libtesseract.so.3
caa3afbb 108%{_datadir}/tessdata
854e1083 109%{_mandir}/man1/ambiguous_words.1*
8028172e
JB
110%{_mandir}/man1/cntraining.1*
111%{_mandir}/man1/combine_tessdata.1*
854e1083 112%{_mandir}/man1/dawg2wordlist.1*
8028172e 113%{_mandir}/man1/mftraining.1*
854e1083 114%{_mandir}/man1/shapeclustering.1*
8028172e
JB
115%{_mandir}/man1/tesseract.1*
116%{_mandir}/man1/unicharset_extractor.1*
117%{_mandir}/man1/wordlist2dawg.1*
2da6320c 118
2fecdb4d 119%files devel
2da6320c 120%defattr(644,root,root,755)
8028172e 121%attr(755,root,root) %{_libdir}/libtesseract.so
f7537631 122%{_includedir}/%{name}
854e1083 123%{_pkgconfigdir}/tesseract.pc
8028172e
JB
124%{_mandir}/man5/unicharambigs.5*
125%{_mandir}/man5/unicharset.5*
f7537631
JB
126
127%files static
128%defattr(644,root,root,755)
8028172e 129%{_libdir}/libtesseract.a
This page took 0.1271 seconds and 4 git commands to generate.