From 598f36bd4d4fd6d97540b2aa8fa6ea2bf5a3083d6c341153dc950c28ff3a5c84 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Mon, 21 Aug 2017 12:42:39 +0000 Subject: [PATCH] Accepting request 516108 from home:lachs0r Added doc files. OBS-URL: https://build.opensuse.org/request/show/516108 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tesserocr?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + _service | 3 ++ python-tesserocr.changes | 47 ++++++++++++++++++++++++++++++ python-tesserocr.spec | 63 ++++++++++++++++++++++++++++++++++++++++ tesserocr-2.2.2.tar.gz | 3 ++ 6 files changed, 140 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 python-tesserocr.changes create mode 100644 python-tesserocr.spec create mode 100644 tesserocr-2.2.2.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..fbbd978 --- /dev/null +++ b/_service @@ -0,0 +1,3 @@ + + + diff --git a/python-tesserocr.changes b/python-tesserocr.changes new file mode 100644 index 0000000..cf78cbf --- /dev/null +++ b/python-tesserocr.changes @@ -0,0 +1,47 @@ +------------------------------------------------------------------- +Fri Aug 11 12:01:33 UTC 2017 - 9@cirno.systems + +- Add doc files + +------------------------------------------------------------------- +Sun Aug 6 10:37:03 UTC 2017 - 9@cirno.systems + +- Switch to PyPI source URL +- Add Pillow (PIL) to Recommends + +------------------------------------------------------------------- +Wed Jul 26 19:42:30 UTC 2017 - 9@cirno.systems + +- v2.2.2 + * Support timeout in Recognize API methods + * Fixed typo in _Enum initialization error message formatting + * Display tessdata path in init exception message + * Fixed version check in Python 3 when reading the version number + from the tesseract executable + +------------------------------------------------------------------- +Thu Jun 1 18:06:25 UTC 2017 - 9@cirno.systems + +v2.2.1 +* Fixed setup bug that affects gcc versions with no -std=c++11 option support + (which should be required by tesseract 4.0+ and not older versions). + +------------------------------------------------------------------- +Sun May 28 15:39:24 UTC 2017 - 9@cirno.systems + +v2.2.0 + +* Improved setup script +* Tesseract 4.0 support: + - Two new OEM enums: OEM.LSTM_ONLY and OEM.TESSERACT_LSTM_COMBINED (tesseract 4.0+) + - Two new API methods: GetTSVText and DetectOrientationScript (tesseract 4.0+) + - PyTessBaseApi.__init__ now accepts a new attribute oem (OCR engine mode: OEM.DEFAULT by default). + - file_to_text and image_to_text functions now also accept the oem attribute as above. +* Fixed segfault on API Init* failure +* Fixed segfault when pixa_to_list returns NULL +* Documentation fixes and other minor improvments + +------------------------------------------------------------------- +Sat Apr 1 03:18:38 UTC 2017 - 9@cirno.systems + +- Initial commit diff --git a/python-tesserocr.spec b/python-tesserocr.spec new file mode 100644 index 0000000..2ec27e6 --- /dev/null +++ b/python-tesserocr.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-tesserocr +# +# Copyright (c) 2017 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-tesserocr +Version: 2.2.2 +Release: 0 +Summary: A simple, Pillow-friendly, Python wrapper around tesseract-ocr +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 +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module six} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: gcc-c++ +BuildRequires: pkgconfig +BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(tesseract) +Recommends: python-Pillow +%python_subpackages + +%description +A simple, Pillow-friendly wrapper around the tesseract-ocr API for Optical +Character Recognition (OCR). + +tesserocr integrates directly with Tesseract's C++ API using Cython +which allows for simple Pythonic and easy-to-read source code. It +enables real concurrent execution when used with Python's threading +module by releasing the GIL while processing an image in tesseract. + +%prep +%setup -q -n tesserocr-%{version} + +%build +%python_build + +%install +%python_install + +%files %{python_files} +%defattr(-,root,root,-) +%doc LICENSE README.rst +%{python_sitearch}/* + +%changelog diff --git a/tesserocr-2.2.2.tar.gz b/tesserocr-2.2.2.tar.gz new file mode 100644 index 0000000..6a93e06 --- /dev/null +++ b/tesserocr-2.2.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f245c85643acaa6c740885c2cb18c6ca2ddb569756fbdeb10bd85a08c0a9fff2 +size 53567