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