forked from pool/python-pytesseract
- 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 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytesseract?expand=0&rev=23
This commit is contained in:
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 6 10:33:46 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- 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 <jayvdb@gmail.com>
|
Mon Mar 1 02:53:00 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pytesseract
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,9 +16,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-pytesseract
|
Name: python-pytesseract
|
||||||
Version: 0.3.7
|
Version: 0.3.10
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python wrapper for Google's Tesseract-OCR
|
Summary: Python wrapper for Google's Tesseract-OCR
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
@@ -31,21 +30,21 @@ BuildRequires: fdupes
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Pillow
|
Requires: python-Pillow
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: tesseract-traineddata-deu
|
Requires: tesseract-ocr-traineddata-deu
|
||||||
Requires: tesseract-traineddata-eng
|
Requires: tesseract-ocr-traineddata-eng
|
||||||
Requires: pkgconfig(tesseract)
|
Requires: pkgconfig(tesseract)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module Pillow}
|
BuildRequires: %{python_module Pillow}
|
||||||
BuildRequires: %{python_module pytest}
|
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-ocr-traineddata-orientation_and_script_detection
|
||||||
BuildRequires: tesseract-traineddata-deu
|
|
||||||
BuildRequires: tesseract-traineddata-eng
|
|
||||||
BuildRequires: tesseract-traineddata-fra
|
|
||||||
BuildRequires: pkgconfig(tesseract)
|
BuildRequires: pkgconfig(tesseract)
|
||||||
# /SECTION
|
# /SECTION
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -62,7 +61,7 @@ bounding box data is planned for future releases.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pytesseract-%{version}
|
%setup -q -n pytesseract-%{version}
|
||||||
sed -i -e '/^#!\//, 1d' src/pytesseract.py
|
sed -i -e '/^#!\//, 1d' pytesseract/pytesseract.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -73,6 +72,7 @@ sed -i -e '/^#!\//, 1d' src/pytesseract.py
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
export TESSDATA_PREFIX=%{_datadir}/tessdata/
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%post
|
||||||
@@ -85,6 +85,7 @@ sed -i -e '/^#!\//, 1d' src/pytesseract.py
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/pytesseract
|
%python_alternative %{_bindir}/pytesseract
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pytesseract
|
||||||
|
%{python_sitelib}/pytesseract-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
v0.3.10.tar.gz
Normal file
3
v0.3.10.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1de64cae604fc0b2bc5b185620c612199b01c833c64c2a4a9e8877ace1ed5a92
|
||||||
|
size 1098547
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:bd68fb3f6d18e374be49a35d9fec8b0cd1243ecfdb454ae79f8670063b205464
|
|
||||||
size 964018
|
|
Reference in New Issue
Block a user