diff --git a/packages/p/python-tesserocr/.files b/packages/p/python-tesserocr/.files index 89837cd737a..4ee0f92e4d9 100644 Binary files a/packages/p/python-tesserocr/.files and b/packages/p/python-tesserocr/.files differ diff --git a/packages/p/python-tesserocr/.rev b/packages/p/python-tesserocr/.rev index 27a91e25120..db1ecdd3887 100644 --- a/packages/p/python-tesserocr/.rev +++ b/packages/p/python-tesserocr/.rev @@ -138,4 +138,22 @@ 1067957 + + f4a9371438347e42605fdbd6ed1269d8 + 2.6.0 + + dimstar_suse + - Update to 2.6.0 + * _pix_to_image now works with binary images + gh#sirfz/tesserocr#274 + * SetImage with alpha channels support + gh#sirfz/tesserocr#280 + * Leptonica 1.83.0 support + gh#sirfz/tesserocr#306 + * Pointsize should be returned even if fontname doesn't exist + gh#sirfz/tesserocr#308 + * Added Python 3.10, 3.11 setup classifiers +- Drop 1441bec703cf68161acce5e85907ddd71c47fdc3.patch + 1072758 + diff --git a/packages/p/python-tesserocr/1441bec703cf68161acce5e85907ddd71c47fdc3.patch b/packages/p/python-tesserocr/1441bec703cf68161acce5e85907ddd71c47fdc3.patch deleted file mode 100644 index 6f0ae476c19..00000000000 --- a/packages/p/python-tesserocr/1441bec703cf68161acce5e85907ddd71c47fdc3.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 1441bec703cf68161acce5e85907ddd71c47fdc3 Mon Sep 17 00:00:00 2001 -From: Stefan Weil -Date: Mon, 18 Jul 2022 08:09:15 +0200 -Subject: [PATCH] Add support for upcoming Leptonica 1.83.0 - -Signed-off-by: Stefan Weil ---- - 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 -+ #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. diff --git a/packages/p/python-tesserocr/python-tesserocr.changes b/packages/p/python-tesserocr/python-tesserocr.changes index 33b177f4874..76b8d1081f9 100644 --- a/packages/p/python-tesserocr/python-tesserocr.changes +++ b/packages/p/python-tesserocr/python-tesserocr.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Mar 17 22:09:28 UTC 2023 - Mia Herkt + +- Update to 2.6.0 + * _pix_to_image now works with binary images + gh#sirfz/tesserocr#274 + * SetImage with alpha channels support + gh#sirfz/tesserocr#280 + * Leptonica 1.83.0 support + gh#sirfz/tesserocr#306 + * Pointsize should be returned even if fontname doesn't exist + gh#sirfz/tesserocr#308 + * Added Python 3.10, 3.11 setup classifiers +- Drop 1441bec703cf68161acce5e85907ddd71c47fdc3.patch + ------------------------------------------------------------------- Mon Feb 27 10:22:49 UTC 2023 - Daniel Garcia diff --git a/packages/p/python-tesserocr/python-tesserocr.spec b/packages/p/python-tesserocr/python-tesserocr.spec index 7aab9092847..814e7148b7e 100644 --- a/packages/p/python-tesserocr/python-tesserocr.spec +++ b/packages/p/python-tesserocr/python-tesserocr.spec @@ -17,14 +17,13 @@ Name: python-tesserocr -Version: 2.5.2 +Version: 2.6.0 Release: 0 Summary: A Python wrapper around tesseract-ocr License: MIT 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} @@ -52,7 +51,6 @@ GIL while processing an image in tesseract. %prep %setup -q -n tesserocr-%{version} -%patch1 -p1 %build %python_build diff --git a/packages/p/python-tesserocr/tesserocr-2.5.2.tar.gz b/packages/p/python-tesserocr/tesserocr-2.5.2.tar.gz deleted file mode 120000 index c5768182b90..00000000000 --- a/packages/p/python-tesserocr/tesserocr-2.5.2.tar.gz +++ /dev/null @@ -1 +0,0 @@ -/ipfs/bafkreietohot637deoadtrz37yk3zlzbhcpx45pwfpktbiybcakj6onsvy \ No newline at end of file diff --git a/packages/p/python-tesserocr/tesserocr-2.6.0.tar.gz b/packages/p/python-tesserocr/tesserocr-2.6.0.tar.gz new file mode 120000 index 00000000000..72655c46a24 --- /dev/null +++ b/packages/p/python-tesserocr/tesserocr-2.6.0.tar.gz @@ -0,0 +1 @@ +/ipfs/bafkreidximgsok2t3lgtxxkk6xkwh7ocjlsrxbx5xsopf2aun4u4pk6juq \ No newline at end of file