forked from pool/python-tesserocr
- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
c51923fa89
commit
3251ab8104
@@ -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
|
||||
|
Reference in New Issue
Block a user