]> git.pld-linux.org Git - packages/tesseract.git/blob - tesseract.spec
build training tools
[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:        0.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:  libicu-devel
17 BuildRequires:  leptonlib-devel >= 1.71
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 devel
35 Summary:        Header files for Tesseract libraries
36 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek Tesseracta
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       leptonlib-devel
40 Requires:       libstdc++-devel
41
42 %description devel
43 This package contains the development header files necessary to
44 develop applications using Tesseract API.
45
46 %description devel -l pl.UTF-8
47 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
48 wykorzystujących API Tesseracta.
49
50 %package static
51 Summary:        Static Tesseract libraries
52 Summary(pl.UTF-8):      Statyczne biblioteki Tesseracta
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static Tesseract libraries.
58
59 %description static -l pl.UTF-8
60 Statyczne biblioteki Tesseracta.
61
62 %prep
63 %setup -q
64
65 %build
66 %{__libtoolize}
67 %{__aclocal}
68 %{__autoconf}
69 %{__autoheader}
70 %{__automake}
71 %configure
72 %{__make}
73 %{__make} training
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %{__make} training-install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 # test program?
85 #%{__rm} $RPM_BUILD_ROOT%{_bindir}/classifier_tester
86 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtesseract.la
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 %doc AUTHORS COPYING ChangeLog README ReleaseNotes
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.*.*.*
107 %attr(755,root,root) %ghost %{_libdir}/libtesseract.so.3
108 %{_datadir}/tessdata
109 %{_mandir}/man1/ambiguous_words.1*
110 %{_mandir}/man1/cntraining.1*
111 %{_mandir}/man1/combine_tessdata.1*
112 %{_mandir}/man1/dawg2wordlist.1*
113 %{_mandir}/man1/mftraining.1*
114 %{_mandir}/man1/shapeclustering.1*
115 %{_mandir}/man1/tesseract.1*
116 %{_mandir}/man1/unicharset_extractor.1*
117 %{_mandir}/man1/wordlist2dawg.1*
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libtesseract.so
122 %{_includedir}/%{name}
123 %{_pkgconfigdir}/tesseract.pc
124 %{_mandir}/man5/unicharambigs.5*
125 %{_mandir}/man5/unicharset.5*
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/libtesseract.a
This page took 0.050055 seconds and 4 git commands to generate.