From 505fd02af01071c0f069dfba1d7a2dd03b68fbdc456cef742d55f230ac3e3ee3 Mon Sep 17 00:00:00 2001 From: Mia Herkt Date: Tue, 5 Aug 2025 17:04:41 +0000 Subject: [PATCH] - add unpin-cython.patch to unpin cython version OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tesserocr?expand=0&rev=46 --- python-tesserocr.changes | 5 +++++ python-tesserocr.spec | 4 +++- unpin-cython.patch | 13 +++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 unpin-cython.patch diff --git a/python-tesserocr.changes b/python-tesserocr.changes index fa5450e..0599bcc 100644 --- a/python-tesserocr.changes +++ b/python-tesserocr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 4 14:15:13 UTC 2025 - Felix Stegmeier + +- add unpin-cython.patch to unpin cython version + ------------------------------------------------------------------- Mon Mar 10 15:10:04 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-tesserocr.spec b/python-tesserocr.spec index c2a5890..f0cae20 100644 --- a/python-tesserocr.spec +++ b/python-tesserocr.spec @@ -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 diff --git a/unpin-cython.patch b/unpin-cython.patch new file mode 100644 index 0000000..ae8faa0 --- /dev/null +++ b/unpin-cython.patch @@ -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"}, + )