[packages/tesseract] - up to 4.0.0-beta.4

baggins baggins at pld-linux.org
Tue Aug 7 23:12:43 CEST 2018


commit 595d84bc89f312470dc39628a03847dcc63a32bf
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Aug 7 22:25:56 2018 +0200

    - up to 4.0.0-beta.4

 tesseract-opencl.patch | 18 ------------------
 tesseract.spec         | 32 ++++++++++++++++++++++----------
 2 files changed, 22 insertions(+), 28 deletions(-)
---
diff --git a/tesseract.spec b/tesseract.spec
index 06be0be..614a83a 100644
--- a/tesseract.spec
+++ b/tesseract.spec
@@ -7,14 +7,15 @@
 #
 Summary:	Tesseract Open Source OCR Engine
 Summary(pl.UTF-8):	Tesseract - silnik OCR o otwartych źródłach
+%define	_beta	beta.4
 Name:		tesseract
-Version:	3.05.01
-Release:	1
+Version:	4.0.0
+Release:	0.%{_beta}.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:	0ac91d57fd35a47f93a9e47b29b63c75
+Source0:	https://github.com/tesseract-ocr/tesseract/archive/%{version}-%{_beta}/%{name}-%{version}-%{_beta}.tar.gz
+# Source0-md5:	9984be13fd64872fb236a60475f5fec6
 Patch0:		%{name}-opencl.patch
 URL:		https://github.com/tesseract-ocr/
 %{?with_opencl:BuildRequires:	OpenCL-devel}
@@ -44,7 +45,7 @@ latach 1985-1995. W 1995 roku był jednym z 3 najlepszych wg UNLV.
 %package training
 Summary:	Tesseract training tools
 Summary(pl.UTF-8):	Narzędzia treningowe Tesseracta
-Group:          Applications/Graphics
+Group:		Applications/Graphics
 Requires:	%{name} = %{version}
 
 %description training
@@ -56,7 +57,7 @@ Ten pakiet zawiera programy do trenowania Tesseracta.
 %package devel
 Summary:	Header files for Tesseract libraries
 Summary(pl.UTF-8):	Pliki nagłówkowe bibliotek Tesseracta
-Group:          Development/Libraries
+Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	leptonlib-devel
 Requires:	libstdc++-devel
@@ -72,7 +73,7 @@ wykorzystujących API Tesseracta.
 %package static
 Summary:	Static Tesseract libraries
 Summary(pl.UTF-8):	Statyczne biblioteki Tesseracta
-Group:          Development/Libraries
+Group:		Development/Libraries
 Requires:	%{name}-devel = %{version}-%{release}
 
 %description static
@@ -82,8 +83,8 @@ Static Tesseract libraries.
 Statyczne biblioteki Tesseracta.
 
 %prep
-%setup -q
-%patch0 -p1
+%setup -q -n %{name}-%{version}-%{_beta}
+#%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -119,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS COPYING ChangeLog README.md
 %attr(755,root,root) %{_bindir}/tesseract
 %attr(755,root,root) %{_libdir}/libtesseract.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libtesseract.so.3
+%attr(755,root,root) %ghost %{_libdir}/libtesseract.so.4
 %{_datadir}/tessdata
 %{_mandir}/man1/tesseract.1*
 
@@ -128,8 +129,12 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/ambiguous_words
 %attr(755,root,root) %{_bindir}/classifier_tester
 %attr(755,root,root) %{_bindir}/cntraining
+%attr(755,root,root) %{_bindir}/combine_lang_model
 %attr(755,root,root) %{_bindir}/combine_tessdata
 %attr(755,root,root) %{_bindir}/dawg2wordlist
+%attr(755,root,root) %{_bindir}/lstmeval
+%attr(755,root,root) %{_bindir}/lstmtraining
+%attr(755,root,root) %{_bindir}/merge_unicharsets
 %attr(755,root,root) %{_bindir}/mftraining
 %attr(755,root,root) %{_bindir}/set_unicharset_properties
 %attr(755,root,root) %{_bindir}/shapeclustering
@@ -137,11 +142,18 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/unicharset_extractor
 %attr(755,root,root) %{_bindir}/wordlist2dawg
 %{_mandir}/man1/ambiguous_words.1*
+%{_mandir}/man1/classifier_tester.1*
 %{_mandir}/man1/cntraining.1*
+%{_mandir}/man1/combine_lang_model.1*
 %{_mandir}/man1/combine_tessdata.1*
 %{_mandir}/man1/dawg2wordlist.1*
+%{_mandir}/man1/lstmeval.1*
+%{_mandir}/man1/lstmtraining.1*
+%{_mandir}/man1/merge_unicharsets.1*
 %{_mandir}/man1/mftraining.1*
+%{_mandir}/man1/set_unicharset_properties.1*
 %{_mandir}/man1/shapeclustering.1*
+%{_mandir}/man1/text2image.1*
 %{_mandir}/man1/unicharset_extractor.1*
 %{_mandir}/man1/wordlist2dawg.1*
 
diff --git a/tesseract-opencl.patch b/tesseract-opencl.patch
deleted file mode 100644
index 4dea621..0000000
--- a/tesseract-opencl.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- tesseract-3.04.01/opencl/Makefile.am.orig	2016-02-16 22:27:01.000000000 +0100
-+++ tesseract-3.04.01/opencl/Makefile.am	2016-02-26 15:40:52.609300973 +0100
-@@ -4,12 +4,14 @@
- 
- if !USING_MULTIPLELIBS
- noinst_LTLIBRARIES = libtesseract_opencl.la
-+libtesseract_opencl_la_LIBADD = $(OPENCL_LDFLAGS) -ltiff
- else
- lib_LTLIBRARIES = libtesseract_opencl.la
- libtesseract_opencl_la_LDFLAGS = -version-info $(GENERIC_LIBRARY_VERSION) $(OPENCL_LDFLAGS)
- libtesseract_opencl_la_LIBADD = \
-     ../ccutil/libtesseract_ccutil.la \
--    ../viewer/libtesseract_viewer.la
-+    ../viewer/libtesseract_viewer.la \
-+    $(OPENCL_LDFLAGS) -ltiff
- endif
- 
- libtesseract_opencl_la_SOURCES = \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tesseract.git/commitdiff/595d84bc89f312470dc39628a03847dcc63a32bf



More information about the pld-cvs-commit mailing list