14
0

Accepting request 1297803 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/1297803
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tesserocr?expand=0&rev=22
This commit is contained in:
2025-08-06 12:34:02 +00:00
committed by Git OBS Bridge
3 changed files with 21 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 4 14:15:13 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- add unpin-cython.patch to unpin cython version
-------------------------------------------------------------------
Mon Mar 10 15:10:04 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -25,6 +25,8 @@ 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
#PATCH-FIX-OPENSUSE unpin-cython.patch
Patch: unpin-cython.patch
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module devel}
@@ -55,7 +57,7 @@ execution when used with Python's threading module by releasing the
GIL while processing an image in tesseract.
%prep
%setup -q -n tesserocr-%{version}
%autosetup -p1 -n tesserocr-%{version}
%build
%pyproject_wheel

13
unpin-cython.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: tesserocr-2.8.0/setup.py
===================================================================
--- tesserocr-2.8.0.orig/setup.py
+++ tesserocr-2.8.0/setup.py
@@ -318,7 +318,7 @@ setup(
cmdclass={"build_ext": my_build_ext},
ext_modules=[make_extension()],
test_suite="tests",
- setup_requires=["Cython>=0.23,<3.1.0"],
+ setup_requires=["Cython>=0.23"],
packages=["tesserocr"],
package_dir={"tesserocr": "tesserocr"},
)