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