From 4c3dc8bf8ead33f1f1bff2c58910d972c4dd5863 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 13 Jul 2023 23:43:40 +0200 Subject: [PATCH] Update to 5.3.2 --- .gitignore | 1 + sources | 2 +- tesseract.spec | 7 +++++-- tesseract_cmake.patch | 18 +++++++++--------- tesseract_neon.patch | 14 +++++++------- 5 files changed, 23 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 540eaec..a11b4c4 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,4 @@ tesseract-2.00.eng.tar.gz /tesseract-5.2.0.tar.gz /tesseract-5.3.0.tar.gz /tesseract-5.3.1.tar.gz +/tesseract-5.3.2.tar.gz diff --git a/sources b/sources index 8e07b22..8dfa55b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (tesseract-5.3.1.tar.gz) = 1744106d76eafd0786b99b517707afdd22b7b5cb3dfd7f0af02954539715c981ff0f12d142ee103113ba38dac8476052d6880b81d4c8050de650bf1cee6ba06c +SHA512 (tesseract-5.3.2.tar.gz) = 92db2a513f00b931a0207cc705020bee9fea4ff7fa93c57a6f446b5777713864cce19121b316ef8b78b6bd625ee7e6fd473352515f98c4a2187569cbd0a9713a diff --git a/tesseract.spec b/tesseract.spec index 118681d..f78057e 100644 --- a/tesseract.spec +++ b/tesseract.spec @@ -7,8 +7,8 @@ %endif Name: tesseract -Version: 5.3.1 -Release: 2%{?dist} +Version: 5.3.2 +Release: 1%{?dist} Summary: Raw OCR Engine License: Apache-2.0 @@ -242,6 +242,9 @@ cp -a doc/*.5 %{buildroot}%{_mandir}/man5/ %changelog +* Thu Jul 13 2023 Sandro Mani - 5.3.2-1 +- Update to 5.3.2 + * Tue Jul 11 2023 FrantiĊĦek Zatloukal - 5.3.1-2 - Rebuilt for ICU 73.2 diff --git a/tesseract_cmake.patch b/tesseract_cmake.patch index 18c7d59..9c02e1d 100644 --- a/tesseract_cmake.patch +++ b/tesseract_cmake.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference tesseract-5.3.1/CMakeLists.txt tesseract-5.3.1-new/CMakeLists.txt ---- tesseract-5.3.1/CMakeLists.txt 2023-04-01 21:50:30.000000000 +0200 -+++ tesseract-5.3.1-new/CMakeLists.txt 2023-04-03 12:08:00.033581846 +0200 -@@ -361,7 +361,7 @@ elseif(UNIX) +diff -rupN --no-dereference tesseract-5.3.2/CMakeLists.txt tesseract-5.3.2-new/CMakeLists.txt +--- tesseract-5.3.2/CMakeLists.txt 2023-07-11 13:54:45.000000000 +0200 ++++ tesseract-5.3.2-new/CMakeLists.txt 2023-07-13 23:43:05.571496441 +0200 +@@ -362,7 +362,7 @@ elseif(UNIX) set(LIB_pthread pthread) endif() elseif(WIN32) @@ -10,7 +10,7 @@ diff -rupN --no-dereference tesseract-5.3.1/CMakeLists.txt tesseract-5.3.1-new/C endif() add_definitions("-DCMAKE_BUILD") -@@ -831,12 +831,17 @@ set_target_properties( +@@ -850,12 +850,17 @@ set_target_properties( libtesseract PROPERTIES SOVERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) @@ -34,7 +34,7 @@ diff -rupN --no-dereference tesseract-5.3.1/CMakeLists.txt tesseract-5.3.1-new/C if(SW_BUILD) target_link_libraries(libtesseract PUBLIC org.sw.demo.danbloomberg.leptonica -@@ -958,9 +963,9 @@ install( +@@ -977,9 +982,9 @@ install( if(INSTALL_CONFIGS) install(FILES ${TESSERACT_CONFIGS} @@ -46,9 +46,9 @@ diff -rupN --no-dereference tesseract-5.3.1/CMakeLists.txt tesseract-5.3.1-new/C endif() # ############################################################################## -diff -rupN --no-dereference tesseract-5.3.1/src/training/CMakeLists.txt tesseract-5.3.1-new/src/training/CMakeLists.txt ---- tesseract-5.3.1/src/training/CMakeLists.txt 2023-04-01 21:50:30.000000000 +0200 -+++ tesseract-5.3.1-new/src/training/CMakeLists.txt 2023-04-03 12:08:00.034581845 +0200 +diff -rupN --no-dereference tesseract-5.3.2/src/training/CMakeLists.txt tesseract-5.3.2-new/src/training/CMakeLists.txt +--- tesseract-5.3.2/src/training/CMakeLists.txt 2023-07-11 13:54:45.000000000 +0200 ++++ tesseract-5.3.2-new/src/training/CMakeLists.txt 2023-07-13 23:43:05.571496441 +0200 @@ -115,7 +115,7 @@ if(NOT DISABLED_LEGACY_ENGINE) common/trainingsampleset.h) endif() diff --git a/tesseract_neon.patch b/tesseract_neon.patch index a295782..f759a81 100644 --- a/tesseract_neon.patch +++ b/tesseract_neon.patch @@ -1,7 +1,7 @@ -diff -rupN --no-dereference tesseract-5.3.1/CMakeLists.txt tesseract-5.3.1-new/CMakeLists.txt ---- tesseract-5.3.1/CMakeLists.txt 2023-04-03 12:08:00.080581809 +0200 -+++ tesseract-5.3.1-new/CMakeLists.txt 2023-04-03 12:08:00.084581806 +0200 -@@ -248,7 +248,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "a +diff -rupN --no-dereference tesseract-5.3.2/CMakeLists.txt tesseract-5.3.2-new/CMakeLists.txt +--- tesseract-5.3.2/CMakeLists.txt 2023-07-13 23:43:05.622496401 +0200 ++++ tesseract-5.3.2-new/CMakeLists.txt 2023-07-13 23:43:05.627496397 +0200 +@@ -249,7 +249,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "a set(HAVE_AVX512F FALSE) set(HAVE_FMA FALSE) set(HAVE_SSE4_1 FALSE) @@ -10,9 +10,9 @@ diff -rupN --no-dereference tesseract-5.3.1/CMakeLists.txt tesseract-5.3.1-new/C elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm.*") -diff -rupN --no-dereference tesseract-5.3.1/src/arch/simddetect.cpp tesseract-5.3.1-new/src/arch/simddetect.cpp ---- tesseract-5.3.1/src/arch/simddetect.cpp 2023-04-01 21:50:30.000000000 +0200 -+++ tesseract-5.3.1-new/src/arch/simddetect.cpp 2023-04-03 12:08:00.084581806 +0200 +diff -rupN --no-dereference tesseract-5.3.2/src/arch/simddetect.cpp tesseract-5.3.2-new/src/arch/simddetect.cpp +--- tesseract-5.3.2/src/arch/simddetect.cpp 2023-07-11 13:54:45.000000000 +0200 ++++ tesseract-5.3.2-new/src/arch/simddetect.cpp 2023-07-13 23:43:05.627496397 +0200 @@ -254,7 +254,7 @@ SIMDDetect::SIMDDetect() { // SSE detected. SetDotProduct(DotProductSSE, &IntSimdMatrix::intSimdMatrixSSE);