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