]> git.pld-linux.org Git - packages/tesseract.git/blame - tesseract.spec
BR: asciidoc libxslt-progs for man pages
[packages/tesseract.git] / tesseract.spec
CommitLineData
2fecdb4d 1# TODO:
c4f06fb1 2# - tensorflow support
9694f838
JB
3#
4# Conditional build:
b011b0dc 5%bcond_without openmp # OpenMP support
9694f838 6%bcond_with opencl # OpenCL support
a7d2de0d 7Summary: Tesseract Open Source OCR Engine
877b8a7e 8Summary(pl.UTF-8): Tesseract - silnik OCR o otwartych źródłach
afaac0e1 9Name: tesseract
c4f06fb1 10Version: 5.3.1
372a4f0e 11Release: 3
187eebd6 12License: Apache v2.0
afaac0e1 13Group: Applications/Graphics
61d69fb5 14#Source0Download: https://github.com/tesseract-ocr/tesseract/releases
2d265a5a 15Source0: https://github.com/tesseract-ocr/tesseract/archive/%{version}/%{name}-%{version}.tar.gz
c4f06fb1 16# Source0-md5: 39c2d8d7a3efa2265f8fcf4f27f76652
9694f838
JB
17URL: https://github.com/tesseract-ocr/
18%{?with_opencl:BuildRequires: OpenCL-devel}
2f7552fd 19BuildRequires: asciidoc
c4f06fb1 20BuildRequires: autoconf >= 2.69
a7d2de0d 21BuildRequires: automake
caa3afbb 22BuildRequires: cairo-devel
af74fbfe 23BuildRequires: curl-devel
cf0c79c1 24BuildRequires: leptonlib-devel >= 1.74
af74fbfe 25BuildRequires: libarchive-devel
b011b0dc 26%{?with_openmp:BuildRequires: libgomp-devel}
0b152fab 27BuildRequires: libicu-devel >= 52.1
c4f06fb1 28BuildRequires: libstdc++-devel >= 6:7
9694f838
JB
29BuildRequires: libtiff-devel
30BuildRequires: libtool >= 2:2
2f7552fd 31BuildRequires: libxslt-progs
c4f06fb1 32BuildRequires: pango-devel >= 1:1.38.0
0b152fab 33Requires: leptonlib >= 1.74
f7537631 34Suggests: tesseract-data >= 3
afaac0e1
ER
35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37%description
38A commercial quality OCR engine originally developed at HP between
391985 and 1995. In 1995, this engine was among the top 3 evaluated by
40UNLV. It was open-sourced by HP and UNLV in 2005.
41
ac8a5dbe
JR
42%description -l pl.UTF-8
43Silnik OCR o komercyjnej jakości oryginalnie stworzony przez HP w
44latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
45Źródła zostały uwolnione przez HP i UNLV w 2005 roku.
a1b42a34 46
ba6a7995
TP
47%package training
48Summary: Tesseract training tools
ab3171d0 49Summary(pl.UTF-8): Narzędzia treningowe Tesseracta
595d84bc 50Group: Applications/Graphics
0b152fab 51Requires: %{name} = %{version}-%{release}
c4f06fb1 52Requires: pango >= 1:1.38.0
ba6a7995
TP
53
54%description training
55This package contains the Tesseract training tools.
56
57%description training -l pl.UTF-8
ab3171d0 58Ten pakiet zawiera programy do trenowania Tesseracta.
ba6a7995 59
f7537631
JB
60%package devel
61Summary: Header files for Tesseract libraries
62Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Tesseracta
595d84bc 63Group: Development/Libraries
2fecdb4d 64Requires: %{name} = %{version}-%{release}
af74fbfe 65Requires: curl-devel
0b152fab 66Requires: leptonlib-devel >= 1.74
af74fbfe 67Requires: libarchive-devel
c4f06fb1 68Requires: libstdc++-devel >= 6:7
2fecdb4d 69
f7537631
JB
70%description devel
71This package contains the development header files necessary to
72develop applications using Tesseract API.
2fecdb4d 73
f7537631
JB
74%description devel -l pl.UTF-8
75Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia programów
76wykorzystujących API Tesseracta.
2fecdb4d 77
f7537631
JB
78%package static
79Summary: Static Tesseract libraries
80Summary(pl.UTF-8): Statyczne biblioteki Tesseracta
595d84bc 81Group: Development/Libraries
f7537631 82Requires: %{name}-devel = %{version}-%{release}
2fecdb4d 83
f7537631
JB
84%description static
85Static Tesseract libraries.
86
87%description static -l pl.UTF-8
88Statyczne biblioteki Tesseracta.
2fecdb4d 89
afaac0e1 90%prep
2d265a5a 91%setup -q
afaac0e1
ER
92
93%build
f7537631
JB
94%{__libtoolize}
95%{__aclocal}
96%{__autoconf}
97%{__autoheader}
98%{__automake}
9694f838
JB
99%configure \
100 %{?with_opencl:--enable-opencl} \
83bc763d
JB
101 %{!?with_openmp:--disable-openmp} \
102 --disable-silent-rules
afaac0e1 103%{__make}
caa3afbb 104%{__make} training
afaac0e1
ER
105
106%install
107rm -rf $RPM_BUILD_ROOT
9ac0ccac 108install -d $RPM_BUILD_ROOT%{_datadir}/tessdata/script
afaac0e1
ER
109
110%{__make} install \
111 DESTDIR=$RPM_BUILD_ROOT
112
caa3afbb
TP
113%{__make} training-install \
114 DESTDIR=$RPM_BUILD_ROOT
115
6f607027
TP
116%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtesseract.la
117
afaac0e1
ER
118%clean
119rm -rf $RPM_BUILD_ROOT
120
0527fb34
BS
121%post -p /sbin/ldconfig
122%postun -p /sbin/ldconfig
123
afaac0e1
ER
124%files
125%defattr(644,root,root,755)
ce7214c1 126%doc AUTHORS ChangeLog README.md
ba6a7995
TP
127%attr(755,root,root) %{_bindir}/tesseract
128%attr(755,root,root) %{_libdir}/libtesseract.so.*.*.*
c4f06fb1 129%attr(755,root,root) %ghost %{_libdir}/libtesseract.so.5
9ac0ccac
JB
130%dir %{_datadir}/tessdata
131%{_datadir}/tessdata/configs
132%dir %{_datadir}/tessdata/script
133%{_datadir}/tessdata/tessconfigs
134%{_datadir}/tessdata/pdf.ttf
ba6a7995
TP
135%{_mandir}/man1/tesseract.1*
136
137%files training
138%defattr(644,root,root,755)
139%attr(755,root,root) %{_bindir}/ambiguous_words
d02c75d3 140%attr(755,root,root) %{_bindir}/classifier_tester
ba6a7995 141%attr(755,root,root) %{_bindir}/cntraining
595d84bc 142%attr(755,root,root) %{_bindir}/combine_lang_model
ba6a7995
TP
143%attr(755,root,root) %{_bindir}/combine_tessdata
144%attr(755,root,root) %{_bindir}/dawg2wordlist
595d84bc
JR
145%attr(755,root,root) %{_bindir}/lstmeval
146%attr(755,root,root) %{_bindir}/lstmtraining
147%attr(755,root,root) %{_bindir}/merge_unicharsets
ba6a7995
TP
148%attr(755,root,root) %{_bindir}/mftraining
149%attr(755,root,root) %{_bindir}/set_unicharset_properties
150%attr(755,root,root) %{_bindir}/shapeclustering
151%attr(755,root,root) %{_bindir}/text2image
152%attr(755,root,root) %{_bindir}/unicharset_extractor
153%attr(755,root,root) %{_bindir}/wordlist2dawg
854e1083 154%{_mandir}/man1/ambiguous_words.1*
595d84bc 155%{_mandir}/man1/classifier_tester.1*
8028172e 156%{_mandir}/man1/cntraining.1*
595d84bc 157%{_mandir}/man1/combine_lang_model.1*
8028172e 158%{_mandir}/man1/combine_tessdata.1*
854e1083 159%{_mandir}/man1/dawg2wordlist.1*
595d84bc
JR
160%{_mandir}/man1/lstmeval.1*
161%{_mandir}/man1/lstmtraining.1*
162%{_mandir}/man1/merge_unicharsets.1*
8028172e 163%{_mandir}/man1/mftraining.1*
595d84bc 164%{_mandir}/man1/set_unicharset_properties.1*
854e1083 165%{_mandir}/man1/shapeclustering.1*
595d84bc 166%{_mandir}/man1/text2image.1*
8028172e
JB
167%{_mandir}/man1/unicharset_extractor.1*
168%{_mandir}/man1/wordlist2dawg.1*
2da6320c 169
2fecdb4d 170%files devel
2da6320c 171%defattr(644,root,root,755)
8028172e 172%attr(755,root,root) %{_libdir}/libtesseract.so
f7537631 173%{_includedir}/%{name}
854e1083 174%{_pkgconfigdir}/tesseract.pc
8028172e
JB
175%{_mandir}/man5/unicharambigs.5*
176%{_mandir}/man5/unicharset.5*
f7537631
JB
177
178%files static
179%defattr(644,root,root,755)
8028172e 180%{_libdir}/libtesseract.a
This page took 0.239411 seconds and 4 git commands to generate.