]> git.pld-linux.org Git - packages/tesseract.git/blob - tesseract.spec
- general cleanups: group parts in proper places, package headers and
[packages/tesseract.git] / tesseract.spec
1 # TODO:
2 # - warnings at compile stage about pointer size on amd64 - needs check
3 # - build dynamic library, not the static one
4 Summary:        Tesseract Open Source OCR Engine
5 Summary(pl.UTF-8):      Tesseract - silnik OCR o otwartych źródłach
6 Name:           tesseract
7 Version:        2.00
8 Release:        0.9
9 License:        Apache Software License v2
10 Group:          Applications/Graphics
11 Source0:        http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.tar.gz
12 # Source0-md5:  6d68d940ed15c61300cb04019c30f46c
13 Source1:        http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.eng.tar.gz
14 # Source1-md5:  b8291d6b3a63ce7879d688e845e341a9
15 Source2:        http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.fra.tar.gz
16 # Source2-md5:  64896b462e62572a3708bb461820126c
17 Source3:        http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.ita.tar.gz
18 # Source3-md5:  2759e1dae91a989a43490ff4c2253a4b
19 Source4:        http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.deu.tar.gz
20 # Source4-md5:  609d91b1ae3759a756b819b5d8403653
21 Source5:        http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.spa.tar.gz
22 # Source5-md5:  bc26a777b2384613895677cb8e61ca75
23 Source6:        http://tesseract-ocr.googlecode.com/files/%{name}-%{version}.nld.tar.gz
24 # Source6-md5:  b2f6ede182cea4bbfffd3b040533ce58
25 Patch0:         %{name}-globals.patch
26 URL:            http://code.google.com/p/tesseract-ocr/
27 BuildRequires:  automake
28 BuildRequires:  libtiff-devel
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 A commercial quality OCR engine originally developed at HP between
33 1985 and 1995. In 1995, this engine was among the top 3 evaluated by
34 UNLV. It was open-sourced by HP and UNLV in 2005.
35
36 %description -l pl.UTF-8
37 Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
38 latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
39 Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
40
41 %package lang-deu
42 Summary:        German language data for Tesseract
43 Group:          Applications/Graphics
44 Requires:       %{name} = %{version}-%{release}
45 Obsoletes:      %{name}-deu
46
47 %description lang-deu
48 The Tesseract deu package contains the data files required to
49 recognize German language.
50
51 %package lang-eng
52 Summary:        English language data for Tesseract
53 Group:          Applications/Graphics
54 Requires:       %{name} = %{version}-%{release}
55 Obsoletes:      %{name}-eng
56
57 %description lang-eng
58 The Tesseract eng package contains the data files required to
59 recognize English language.
60
61 %package lang-fra
62 Summary:        French language data for Tesseract
63 Group:          Applications/Graphics
64 Requires:       %{name} = %{version}-%{release}
65 Obsoletes:      %{name}-fra
66
67 %description lang-fra
68 The Tesseract fra package contains the data files required to
69 recognize French language.
70
71 %package lang-ita
72 Summary:        Italian language data for Tesseract
73 Group:          Applications/Graphics
74 Requires:       %{name} = %{version}-%{release}
75 Obsoletes:      %{name}-ita
76
77 %description lang-ita
78 The Tesseract ita package contains the data files required to
79 recognize Italian language.
80
81 %package lang-nld
82 Summary:        Dutch language data for Tesseract
83 Group:          Applications/Graphics
84 Requires:       %{name} = %{version}-%{release}
85 Obsoletes:      %{name}-nld
86
87 %description lang-nld
88 The Tesseract nld package contains the data files required to
89 recognize Dutch language.
90
91 %package lang-spa
92 Summary:        Spanish language data for Tesseract
93 Group:          Applications/Graphics
94 Requires:       %{name} = %{version}-%{release}
95 Obsoletes:      %{name}-spa
96
97 %description lang-spa
98 The Tesseract spa package contains the data files required to
99 recognize Spanish language.
100
101 %package devel
102 Summary:        Tesseract - Development header files and libraries
103 Summary(pl.UTF-8):      Tesseract - Pliki nagłówkowe i biblioteki dla programistów
104 Group:          Development/Libraries
105
106 %description devel
107 This package contains the development header files and libraries
108 necessary to develop applications using Tesseract.
109
110 %prep
111 %setup -q
112 #%patch0 -p1
113 tar -zxvf %{SOURCE1}
114 tar -zxvf %{SOURCE2}
115 tar -zxvf %{SOURCE3}
116 tar -zxvf %{SOURCE4}
117 tar -zxvf %{SOURCE5}
118 tar -zxvf %{SOURCE6}
119
120 %build
121 cp -f /usr/share/automake/config.sub config
122 %configure
123 %{__make}
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127
128 %{__make} install \
129         DESTDIR=$RPM_BUILD_ROOT
130
131 %clean
132 rm -rf $RPM_BUILD_ROOT
133
134 %files
135 %defattr(644,root,root,755)
136 %doc AUTHORS COPYING ChangeLog README
137 %attr(755,root,root) %{_bindir}/cntraining
138 %attr(755,root,root) %{_bindir}/mftraining
139 %attr(755,root,root) %{_bindir}/tesseract
140 %attr(755,root,root) %{_bindir}/unicharset_extractor
141 %attr(755,root,root) %{_bindir}/wordlist2dawg
142 %dir %{_datadir}/tessdata
143 %{_datadir}/tessdata/confsets
144 %dir %{_datadir}/tessdata/configs
145 %{_datadir}/tessdata/configs/*
146 %dir %{_datadir}/tessdata/tessconfigs
147 %{_datadir}/tessdata/tessconfigs/*
148
149 %files lang-deu
150 %defattr(644,root,root,755)
151 %{_datadir}/tessdata/deu.*
152
153 %files lang-eng
154 %defattr(644,root,root,755)
155 %{_datadir}/tessdata/eng.*
156
157 %files lang-fra
158 %defattr(644,root,root,755)
159 %{_datadir}/tessdata/fra.*
160
161 %files lang-ita
162 %defattr(644,root,root,755)
163 %{_datadir}/tessdata/ita.*
164
165 %files lang-nld
166 %defattr(644,root,root,755)
167 %{_datadir}/tessdata/nld.*
168
169 %files lang-spa
170 %defattr(644,root,root,755)
171 %{_datadir}/tessdata/spa.*
172
173 %files devel
174 %defattr(644,root,root,755)
175 %dir %{_includedir}/%{name}
176 %{_includedir}/%{name}/*.h
177 %{_libdir}/*.a
This page took 0.079571 seconds and 4 git commands to generate.