From 343cdd3feb3beccfd9f45b20f2ed9a59785a39b0 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Fri, 27 Dec 2019 21:30:06 +0100 Subject: [PATCH] Update to 4.1.1 --- .gitignore | 1 + sources | 2 +- tesseract.spec | 7 +++++-- tesseract_datadir.patch | 32 ++++++++++++++++---------------- 4 files changed, 23 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index e124a3e..84ff331 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ tesseract-2.00.eng.tar.gz /tessdata_fast-4.0.0.tar.gz /tesseract-4.0.0.tar.gz /tesseract-4.1.0.tar.gz +/tesseract-4.1.1.tar.gz diff --git a/sources b/sources index d18ac2f..876cfe5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tesseract-4.1.0.tar.gz) = d617f5c5b826640b2871dbe3d7973bcc5e66fafd837921a20e009d683806ed50f0f258aa455019d99fc54f5cb65c2fa0380e3a3c92b39ab0684b8799c730b09d +SHA512 (tesseract-4.1.1.tar.gz) = 017723a2268be789fe98978eed02fd294968cc8050dde376dee026f56f2b99df42db935049ae5e72c4519a920e263b40af1a6a40d9942e66608145b3131a71a2 diff --git a/tesseract.spec b/tesseract.spec index db98e7e..62bcf19 100644 --- a/tesseract.spec +++ b/tesseract.spec @@ -1,8 +1,8 @@ #global pre beta.4 Name: tesseract -Version: 4.1.0 -Release: 2%{?pre:.%pre}%{?dist} +Version: 4.1.1 +Release: 1%{?pre:.%pre}%{?dist} Summary: Raw OCR Engine License: ASL 2.0 @@ -112,6 +112,9 @@ mkdir -p %{buildroot}/%{_datadir}/%{name}/tessdata/ %changelog +* Fri Dec 27 2019 Sandro Mani - 4.1.1-1 +- Update to 4.1.1 + * Fri Nov 01 2019 Pete Walter - 4.1.0-2 - Rebuild for ICU 65 diff --git a/tesseract_datadir.patch b/tesseract_datadir.patch index a0d683f..939557c 100644 --- a/tesseract_datadir.patch +++ b/tesseract_datadir.patch @@ -1,6 +1,6 @@ -diff -rupN tesseract-4.1.0/src/ccutil/Makefile.am tesseract-4.1.0-new/src/ccutil/Makefile.am ---- tesseract-4.1.0/src/ccutil/Makefile.am 2019-07-07 14:34:08.000000000 +0200 -+++ tesseract-4.1.0-new/src/ccutil/Makefile.am 2019-07-16 19:14:00.221957997 +0200 +diff -rupN --no-dereference tesseract-4.1.1/src/ccutil/Makefile.am tesseract-4.1.1-new/src/ccutil/Makefile.am +--- tesseract-4.1.1/src/ccutil/Makefile.am 2019-12-26 15:21:51.000000000 +0100 ++++ tesseract-4.1.1-new/src/ccutil/Makefile.am 2019-12-27 21:19:53.950010557 +0100 @@ -2,7 +2,7 @@ AM_CXXFLAGS = AM_CPPFLAGS = @@ -10,9 +10,9 @@ diff -rupN tesseract-4.1.0/src/ccutil/Makefile.am tesseract-4.1.0-new/src/ccutil endif if VISIBILITY -diff -rupN tesseract-4.1.0/src/lstm/Makefile.am tesseract-4.1.0-new/src/lstm/Makefile.am ---- tesseract-4.1.0/src/lstm/Makefile.am 2019-07-07 14:34:08.000000000 +0200 -+++ tesseract-4.1.0-new/src/lstm/Makefile.am 2019-07-16 19:14:00.221957997 +0200 +diff -rupN --no-dereference tesseract-4.1.1/src/lstm/Makefile.am tesseract-4.1.1-new/src/lstm/Makefile.am +--- tesseract-4.1.1/src/lstm/Makefile.am 2019-12-26 15:21:51.000000000 +0100 ++++ tesseract-4.1.1-new/src/lstm/Makefile.am 2019-12-27 21:19:53.950010557 +0100 @@ -16,7 +16,7 @@ AM_CPPFLAGS += -I/usr/include/tensorflow endif @@ -21,28 +21,28 @@ diff -rupN tesseract-4.1.0/src/lstm/Makefile.am tesseract-4.1.0-new/src/lstm/Mak +AM_CXXFLAGS += -DTESSDATA_PREFIX=@datadir@/tesseract/ endif - if VISIBILITY -diff -rupN tesseract-4.1.0/tessdata/configs/Makefile.am tesseract-4.1.0-new/tessdata/configs/Makefile.am ---- tesseract-4.1.0/tessdata/configs/Makefile.am 2019-07-07 14:34:08.000000000 +0200 -+++ tesseract-4.1.0-new/tessdata/configs/Makefile.am 2019-07-16 19:14:00.221957997 +0200 + if DISABLED_LEGACY_ENGINE +diff -rupN --no-dereference tesseract-4.1.1/tessdata/configs/Makefile.am tesseract-4.1.1-new/tessdata/configs/Makefile.am +--- tesseract-4.1.1/tessdata/configs/Makefile.am 2019-12-26 15:21:51.000000000 +0100 ++++ tesseract-4.1.1-new/tessdata/configs/Makefile.am 2019-12-27 21:19:53.950010557 +0100 @@ -1,4 +1,4 @@ -datadir = @datadir@/tessdata/configs +datadir = @datadir@/tesseract/tessdata/configs data_DATA = inter makebox box.train unlv ambigs.train lstm.train lstmdebug data_DATA += api_config kannada box.train.stderr quiet logfile digits get.images data_DATA += lstmbox wordstrbox -diff -rupN tesseract-4.1.0/tessdata/Makefile.am tesseract-4.1.0-new/tessdata/Makefile.am ---- tesseract-4.1.0/tessdata/Makefile.am 2019-07-07 14:34:08.000000000 +0200 -+++ tesseract-4.1.0-new/tessdata/Makefile.am 2019-07-16 19:14:00.221957997 +0200 +diff -rupN --no-dereference tesseract-4.1.1/tessdata/Makefile.am tesseract-4.1.1-new/tessdata/Makefile.am +--- tesseract-4.1.1/tessdata/Makefile.am 2019-12-26 15:21:51.000000000 +0100 ++++ tesseract-4.1.1-new/tessdata/Makefile.am 2019-12-27 21:19:53.950010557 +0100 @@ -1,4 +1,4 @@ -datadir = @datadir@/tessdata +datadir = @datadir@/tesseract/tessdata data_DATA = pdf.ttf EXTRA_DIST = $(data_DATA) -diff -rupN tesseract-4.1.0/tessdata/tessconfigs/Makefile.am tesseract-4.1.0-new/tessdata/tessconfigs/Makefile.am ---- tesseract-4.1.0/tessdata/tessconfigs/Makefile.am 2019-07-07 14:34:08.000000000 +0200 -+++ tesseract-4.1.0-new/tessdata/tessconfigs/Makefile.am 2019-07-16 19:14:00.221957997 +0200 +diff -rupN --no-dereference tesseract-4.1.1/tessdata/tessconfigs/Makefile.am tesseract-4.1.1-new/tessdata/tessconfigs/Makefile.am +--- tesseract-4.1.1/tessdata/tessconfigs/Makefile.am 2019-12-26 15:21:51.000000000 +0100 ++++ tesseract-4.1.1-new/tessdata/tessconfigs/Makefile.am 2019-12-27 21:19:53.951010558 +0100 @@ -1,3 +1,3 @@ -datadir = @datadir@/tessdata/tessconfigs +datadir = @datadir@/tesseract/tessdata/tessconfigs