Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-tesserocr for openSUSE:Factory checked in at 2023-01-17 17:35:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-tesserocr (Old) and /work/SRC/openSUSE:Factory/.python-tesserocr.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-tesserocr" Tue Jan 17 17:35:11 2023 rev:13 rq:1058773 version:2.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-tesserocr/python-tesserocr.changes 2022-11-12 17:41:37.190328973 +0100 +++ /work/SRC/openSUSE:Factory/.python-tesserocr.new.32243/python-tesserocr.changes 2023-01-17 17:35:22.893204667 +0100 @@ -1,0 +2,7 @@ +Sat Jan 14 21:46:21 UTC 2023 - Hans-Peter Jansen <h...@urpla.net> + +- Apply 1441bec703cf68161acce5e85907ddd71c47fdc3.patch from upstream + project in order to build with Leptonica 1.83.0 +- Make tests work again + +------------------------------------------------------------------- New: ---- 1441bec703cf68161acce5e85907ddd71c47fdc3.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-tesserocr.spec ++++++ --- /var/tmp/diff_new_pack.KeSr4W/_old 2023-01-17 17:35:23.505208218 +0100 +++ /var/tmp/diff_new_pack.KeSr4W/_new 2023-01-17 17:35:23.509208240 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-tesserocr # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,6 +24,7 @@ Group: Development/Languages/Python URL: https://github.com/sirfz/tesserocr Source: https://files.pythonhosted.org/packages/source/t/tesserocr/tesserocr-%{version}.tar.gz +Patch1: 1441bec703cf68161acce5e85907ddd71c47fdc3.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module Pillow} BuildRequires: %{python_module devel} @@ -51,6 +52,7 @@ %prep %setup -q -n tesserocr-%{version} +%patch1 -p1 %build %python_build @@ -59,6 +61,7 @@ %python_install %check +export TESSDATA_PREFIX=/usr/share/tessdata %python_exec setup.py develop --user # test_LSTM_choices failure: https://github.com/sirfz/tesserocr/issues/214 %pytest -k 'not test_LSTM_choices' ++++++ 1441bec703cf68161acce5e85907ddd71c47fdc3.patch ++++++ >From 1441bec703cf68161acce5e85907ddd71c47fdc3 Mon Sep 17 00:00:00 2001 From: Stefan Weil <s...@weilnetz.de> Date: Mon, 18 Jul 2022 08:09:15 +0200 Subject: [PATCH] Add support for upcoming Leptonica 1.83.0 Signed-off-by: Stefan Weil <s...@weilnetz.de> --- tesseract5.pxd | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tesseract5.pxd b/tesseract5.pxd index 21ad667..aa7e52d 100644 --- a/tesseract5.pxd +++ b/tesseract5.pxd @@ -54,6 +54,16 @@ cdef extern from "leptonica/allheaders.h" nogil: L_SEVERITY_ERROR = 5 # Print error and higher messages L_SEVERITY_NONE = 6 # Highest severity: print no messages +cdef extern from *: + """ + #if (LIBLEPT_MAJOR_VERSION > 1) || (LIBLEPT_MINOR_VERSION > 82) + // The public API of Leptonica 1.83.0 hides details of some data + // structures which are used by tesserocr (see Pix, Box, ... above). + // Get those details by including a private header file. + #include <leptonica/pix_internal.h> + #endif + """ + cdef extern from "tesseract/publictypes.h" namespace "tesseract" nogil: cdef enum PolyBlockType: PT_UNKNOWN # Type is not yet known. Keep as the first element.