]> git.pld-linux.org Git - packages/tesseract.git/blob - tesseract.spec
restored previously removed classifier_tester tool
[packages/tesseract.git] / tesseract.spec
1 # TODO:
2 # - warnings at compile stage about pointer size on amd64 - needs check
3 Summary:        Tesseract Open Source OCR Engine
4 Summary(pl.UTF-8):      Tesseract - silnik OCR o otwartych źródłach
5 Name:           tesseract
6 Version:        3.04.00
7 Release:        1
8 License:        Apache v2.0
9 Group:          Applications/Graphics
10 Source0:        https://github.com/tesseract-ocr/tesseract/archive/%{version}.tar.gz
11 # Source0-md5:  078130b9c7d28c558a0e49d432505864
12 URL:            http://code.google.com/p/tesseract-ocr/
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  cairo-devel
16 BuildRequires:  leptonlib-devel >= 1.71
17 BuildRequires:  libicu-devel
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libtool
20 BuildRequires:  pango-devel
21 Suggests:       tesseract-data >= 3
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 A commercial quality OCR engine originally developed at HP between
26 1985 and 1995. In 1995, this engine was among the top 3 evaluated by
27 UNLV. It was open-sourced by HP and UNLV in 2005.
28
29 %description -l pl.UTF-8
30 Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
31 latach 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.
33
34 %package training
35 Summary:        Tesseract training tools
36 Summary(pl.UTF-8):      Pliki treningowe tesseracta
37 Group:          Applications/Graphics
38 Requires:       %{name} = %{version}
39
40 %description training
41 This package contains the Tesseract training tools.
42
43 %description training -l pl.UTF-8
44 Ten pakiet zawiera programy do trenowania tesseracta.
45
46 %package devel
47 Summary:        Header files for Tesseract libraries
48 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek Tesseracta
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Requires:       leptonlib-devel
52 Requires:       libstdc++-devel
53
54 %description devel
55 This package contains the development header files necessary to
56 develop applications using Tesseract API.
57
58 %description devel -l pl.UTF-8
59 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
60 wykorzystujących API Tesseracta.
61
62 %package static
63 Summary:        Static Tesseract libraries
64 Summary(pl.UTF-8):      Statyczne biblioteki Tesseracta
65 Group:          Development/Libraries
66 Requires:       %{name}-devel = %{version}-%{release}
67
68 %description static
69 Static Tesseract libraries.
70
71 %description static -l pl.UTF-8
72 Statyczne biblioteki Tesseracta.
73
74 %prep
75 %setup -q
76 # workaround for 'off_t undefined when -std=c++11' workaround
77 %ifarch x32
78 %{__sed} -e 's|typedef long off_t;|//typedef long off_t;|' -i ccutil/scanutils.cpp
79 %endif
80
81 %build
82 %{__libtoolize}
83 %{__aclocal}
84 %{__autoconf}
85 %{__autoheader}
86 %{__automake}
87 %configure
88 %{__make}
89 %{__make} training
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %{__make} training-install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtesseract.la
101
102 %clean
103 rm -rf $RPM_BUILD_ROOT
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %files
109 %defattr(644,root,root,755)
110 %doc AUTHORS COPYING ChangeLog README ReleaseNotes
111 %attr(755,root,root) %{_bindir}/tesseract
112 %attr(755,root,root) %{_libdir}/libtesseract.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libtesseract.so.3
114 %{_datadir}/tessdata
115 %{_mandir}/man1/tesseract.1*
116
117 %files training
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_bindir}/ambiguous_words
120 %attr(755,root,root) %{_bindir}/classifier_tester
121 %attr(755,root,root) %{_bindir}/cntraining
122 %attr(755,root,root) %{_bindir}/combine_tessdata
123 %attr(755,root,root) %{_bindir}/dawg2wordlist
124 %attr(755,root,root) %{_bindir}/mftraining
125 %attr(755,root,root) %{_bindir}/set_unicharset_properties
126 %attr(755,root,root) %{_bindir}/shapeclustering
127 %attr(755,root,root) %{_bindir}/text2image
128 %attr(755,root,root) %{_bindir}/unicharset_extractor
129 %attr(755,root,root) %{_bindir}/wordlist2dawg
130 %{_mandir}/man1/ambiguous_words.1*
131 %{_mandir}/man1/cntraining.1*
132 %{_mandir}/man1/combine_tessdata.1*
133 %{_mandir}/man1/dawg2wordlist.1*
134 %{_mandir}/man1/mftraining.1*
135 %{_mandir}/man1/shapeclustering.1*
136 %{_mandir}/man1/unicharset_extractor.1*
137 %{_mandir}/man1/wordlist2dawg.1*
138
139 %files devel
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{_libdir}/libtesseract.so
142 %{_includedir}/%{name}
143 %{_pkgconfigdir}/tesseract.pc
144 %{_mandir}/man5/unicharambigs.5*
145 %{_mandir}/man5/unicharset.5*
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/libtesseract.a
This page took 0.068049 seconds and 4 git commands to generate.