From 3251ab81043b696b66a57a64a7f1325b1224537bd43ba6e56f40f6182d51130b Mon Sep 17 00:00:00 2001 From: Mia Herkt <9+suse@cirno.systems> Date: Tue, 26 Jun 2018 16:09:05 +0000 Subject: [PATCH] - Update to version 2.3.0 * Support for Tesseract 4 + New OCR engines LSTM_ONLY and TESSERACT_LSTM_COMBINED + New default tessdata path handling * Fixed compilation against Tesseract v3.05.02 which required c++11 * Fallback to 'eng' as default language when default language returned by the API is empty OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tesserocr?expand=0&rev=3 --- _service | 3 --- python-tesserocr.changes | 12 ++++++++++++ python-tesserocr.spec | 18 +++++++++++++----- tesserocr-2.2.2.tar.gz | 3 --- tesserocr-2.3.0.tar.gz | 3 +++ 5 files changed, 28 insertions(+), 11 deletions(-) delete mode 100644 _service delete mode 100644 tesserocr-2.2.2.tar.gz create mode 100644 tesserocr-2.3.0.tar.gz diff --git a/_service b/_service deleted file mode 100644 index fbbd978..0000000 --- a/_service +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/python-tesserocr.changes b/python-tesserocr.changes index cf78cbf..2a65a0d 100644 --- a/python-tesserocr.changes +++ b/python-tesserocr.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Jun 26 16:07:43 UTC 2018 - 9+suse@cirno.systems + +- Update to version 2.3.0 + * Support for Tesseract 4 + + New OCR engines LSTM_ONLY and TESSERACT_LSTM_COMBINED + + New default tessdata path handling + * Fixed compilation against Tesseract v3.05.02 which required + c++11 + * Fallback to 'eng' as default language when default language + returned by the API is empty + ------------------------------------------------------------------- Fri Aug 11 12:01:33 UTC 2017 - 9@cirno.systems diff --git a/python-tesserocr.spec b/python-tesserocr.spec index 2ec27e6..91d8549 100644 --- a/python-tesserocr.spec +++ b/python-tesserocr.spec @@ -1,7 +1,7 @@ # # spec file for package python-tesserocr # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without test Name: python-tesserocr -Version: 2.2.2 +Version: 2.3.0 Release: 0 Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr License: MIT @@ -27,12 +27,16 @@ Group: Development/Languages/Python Url: https://github.com/sirfz/tesserocr Source: https://files.pythonhosted.org/packages/source/t/tesserocr/tesserocr-%{version}.tar.gz BuildRequires: %{python_module Cython} -BuildRequires: %{python_module six} +BuildRequires: %{python_module Pillow} BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: python-rpm-macros +BuildRequires: tesseract-ocr-traineddata-english +BuildRequires: tesseract-ocr-traineddata-orientation_and_script_detection BuildRequires: pkgconfig(tesseract) Recommends: python-Pillow %python_subpackages @@ -55,9 +59,13 @@ module by releasing the GIL while processing an image in tesseract. %install %python_install +%check +%python_exec setup.py develop --user +%python_exec -m pytest -v tests + %files %{python_files} -%defattr(-,root,root,-) -%doc LICENSE README.rst +%license LICENSE +%doc README.rst %{python_sitearch}/* %changelog diff --git a/tesserocr-2.2.2.tar.gz b/tesserocr-2.2.2.tar.gz deleted file mode 100644 index 6a93e06..0000000 --- a/tesserocr-2.2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f245c85643acaa6c740885c2cb18c6ca2ddb569756fbdeb10bd85a08c0a9fff2 -size 53567 diff --git a/tesserocr-2.3.0.tar.gz b/tesserocr-2.3.0.tar.gz new file mode 100644 index 0000000..30fa13e --- /dev/null +++ b/tesserocr-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de1c57808f4a3ca59540750114537246685f447a11b0be1abb15b51680189719 +size 54946