]> git.pld-linux.org Git - packages/tesseract.git/blobdiff - tesseract.spec
- updated to 5.3.4
[packages/tesseract.git] / tesseract.spec
index bb3159d54e6205e7dda8f9bb389028d9f6f8fd8e..934119ad3a699b4fc19325d35c033e7a8a019e6e 100644 (file)
@@ -1,26 +1,23 @@
 # TODO:
 # - tensorflow support
-# - warnings at compile stage about pointer size on amd64 - needs check
-# - warning: Installed (but unpackaged) file(s) found:
-#        /usr/bin/language-specific.sh
-#        /usr/bin/tesstrain.sh
-#        /usr/bin/tesstrain_utils.sh
 #
 # Conditional build:
 %bcond_without openmp  # OpenMP support
 %bcond_with    opencl  # OpenCL support
+
 Summary:       Tesseract Open Source OCR Engine
 Summary(pl.UTF-8):     Tesseract - silnik OCR o otwartych źródłach
 Name:          tesseract
-Version:       5.3.1
+Version:       5.3.4
 Release:       1
 License:       Apache v2.0
 Group:         Applications/Graphics
 #Source0Download: https://github.com/tesseract-ocr/tesseract/releases
 Source0:       https://github.com/tesseract-ocr/tesseract/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 39c2d8d7a3efa2265f8fcf4f27f76652
+# Source0-md5: 53de961804ccbcb83b73122f721d8f83
 URL:           https://github.com/tesseract-ocr/
 %{?with_opencl:BuildRequires:  OpenCL-devel}
+BuildRequires: asciidoc
 BuildRequires: autoconf >= 2.69
 BuildRequires: automake
 BuildRequires: cairo-devel
@@ -32,6 +29,7 @@ BuildRequires:        libicu-devel >= 52.1
 BuildRequires: libstdc++-devel >= 6:7
 BuildRequires: libtiff-devel
 BuildRequires: libtool >= 2:2
+BuildRequires: libxslt-progs
 BuildRequires: pango-devel >= 1:1.38.0
 Requires:      leptonlib >= 1.74
 Suggests:      tesseract-data >= 3
@@ -108,6 +106,7 @@ Statyczne biblioteki Tesseracta.
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/tessdata/script
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -129,7 +128,11 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/tesseract
 %attr(755,root,root) %{_libdir}/libtesseract.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libtesseract.so.5
-%{_datadir}/tessdata
+%dir %{_datadir}/tessdata
+%{_datadir}/tessdata/configs
+%dir %{_datadir}/tessdata/script
+%{_datadir}/tessdata/tessconfigs
+%{_datadir}/tessdata/pdf.ttf
 %{_mandir}/man1/tesseract.1*
 
 %files training
This page took 0.047485 seconds and 4 git commands to generate.