diff --git a/python-pytesseract.changes b/python-pytesseract.changes index 92d3d78..348df88 100644 --- a/python-pytesseract.changes +++ b/python-pytesseract.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Mon Feb 6 10:33:46 UTC 2023 - Daniel Garcia + +- Update to v0.3.10 + * Fix image_to_osd regression (reported by @klavdijS) +- v0.3.9 + * Support only python 3.7+ (3.6 is End of Life) + * Switch from deprecated distutils version parsing to packaging.version + * Add build system requirements in order for pip to properly install Pillow +- v0.3.8 + * Header handling in file_to_dict function by @igor-ma + * Proper raising behavior in case of timeout by @amenezes + * __version__ attribute support by @amenezes + * Couple of bug fixes + ------------------------------------------------------------------- Mon Mar 1 02:53:00 UTC 2021 - John Vandenberg diff --git a/python-pytesseract.spec b/python-pytesseract.spec index 12a7d74..aeb2654 100644 --- a/python-pytesseract.spec +++ b/python-pytesseract.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytesseract # -# Copyright (c) 2021 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 @@ -16,9 +16,8 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytesseract -Version: 0.3.7 +Version: 0.3.10 Release: 0 Summary: Python wrapper for Google's Tesseract-OCR License: Apache-2.0 @@ -31,21 +30,21 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pillow Requires: python-setuptools -Requires: tesseract-traineddata-deu -Requires: tesseract-traineddata-eng +Requires: tesseract-ocr-traineddata-deu +Requires: tesseract-ocr-traineddata-eng Requires: pkgconfig(tesseract) BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Pillow} BuildRequires: %{python_module pytest} +BuildRequires: tesseract-ocr-traineddata-deu +BuildRequires: tesseract-ocr-traineddata-eng +BuildRequires: tesseract-ocr-traineddata-fra BuildRequires: tesseract-ocr-traineddata-orientation_and_script_detection -BuildRequires: tesseract-traineddata-deu -BuildRequires: tesseract-traineddata-eng -BuildRequires: tesseract-traineddata-fra BuildRequires: pkgconfig(tesseract) # /SECTION -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): update-alternatives +Requires(postun):update-alternatives %python_subpackages %description @@ -62,7 +61,7 @@ bounding box data is planned for future releases. %prep %setup -q -n pytesseract-%{version} -sed -i -e '/^#!\//, 1d' src/pytesseract.py +sed -i -e '/^#!\//, 1d' pytesseract/pytesseract.py %build %python_build @@ -73,6 +72,7 @@ sed -i -e '/^#!\//, 1d' src/pytesseract.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +export TESSDATA_PREFIX=%{_datadir}/tessdata/ %pytest %post @@ -85,6 +85,7 @@ sed -i -e '/^#!\//, 1d' src/pytesseract.py %doc README.rst %license LICENSE %python_alternative %{_bindir}/pytesseract -%{python_sitelib}/* +%{python_sitelib}/pytesseract +%{python_sitelib}/pytesseract-%{version}*-info %changelog diff --git a/v0.3.10.tar.gz b/v0.3.10.tar.gz new file mode 100644 index 0000000..dd64cca --- /dev/null +++ b/v0.3.10.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1de64cae604fc0b2bc5b185620c612199b01c833c64c2a4a9e8877ace1ed5a92 +size 1098547 diff --git a/v0.3.7.tar.gz b/v0.3.7.tar.gz deleted file mode 100644 index 0771bc5..0000000 --- a/v0.3.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bd68fb3f6d18e374be49a35d9fec8b0cd1243ecfdb454ae79f8670063b205464 -size 964018