From ceebceda217ff601c2e024547b276b15d665b28beaf6583ec8cd6afe3f00cd02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 26 Dec 2017 20:07:56 +0000 Subject: [PATCH] Accepting request 560035 from home:pluskalm:branches:devel:languages:python - Update to version 0.5: * Tesseract/Libtesseract + LineBoxBuilder: Add confidence scores to every word boxes and to hOCR files (thanks to Adriano Pagano) * Tesseract 4 (shell): Add '--oem 0' to specify legacy model when doing orientation detection as orientation detection does not work yet with Tesseract 4 (thanks to Adriano Pagano) * Libtesseract: Fix multi-language support * Tesseract (shell) + Windows: Never let the cmd window appear * Libtesseract: Implements image_to_pdf() (thanks to Marian Skrip) * Libtesseract: Hide debug messages (thanks to Ashish Kulkarni) - Update project url and use github sources - Use python singlespec OBS-URL: https://build.opensuse.org/request/show/560035 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyocr?expand=0&rev=3 --- pyocr-0.4.1.tar.gz | 3 --- python-pyocr-0.5.tar.gz | 3 +++ python-pyocr.changes | 20 ++++++++++++++++++++ python-pyocr.spec | 40 +++++++++++++++++++++------------------- 4 files changed, 44 insertions(+), 22 deletions(-) delete mode 100644 pyocr-0.4.1.tar.gz create mode 100644 python-pyocr-0.5.tar.gz diff --git a/pyocr-0.4.1.tar.gz b/pyocr-0.4.1.tar.gz deleted file mode 100644 index 1f0e87c..0000000 --- a/pyocr-0.4.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f85a0fbfb8ab21e1af9a5e6a3140b71c40d5bd9f1f294edda8319f7761c61f9d -size 13918 diff --git a/python-pyocr-0.5.tar.gz b/python-pyocr-0.5.tar.gz new file mode 100644 index 0000000..fbbad36 --- /dev/null +++ b/python-pyocr-0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9110dee4daad7d172e7b90c5ddfc39abc72840b918d3346afc86935fc67f2c4 +size 2182562 diff --git a/python-pyocr.changes b/python-pyocr.changes index 8008964..0de51e6 100644 --- a/python-pyocr.changes +++ b/python-pyocr.changes @@ -1,3 +1,23 @@ +------------------------------------------------------------------- +Tue Dec 26 15:53:23 UTC 2017 - mpluskal@suse.com + +- Update to version 0.5: + * Tesseract/Libtesseract + LineBoxBuilder: Add confidence scores + to every word boxes and to hOCR files (thanks to Adriano Pagano) + * Tesseract 4 (shell): Add '--oem 0' to specify legacy model when + doing orientation detection as orientation detection does not + work yet with Tesseract 4 (thanks to Adriano Pagano) + * Libtesseract: Fix multi-language support + * Tesseract (shell) + Windows: Never let the cmd window appear + * Libtesseract: Implements image_to_pdf() (thanks to Marian Skrip) + * Libtesseract: Hide debug messages (thanks to Ashish Kulkarni) +- Update project url and use github sources + +------------------------------------------------------------------- +Fri Dec 15 11:09:17 UTC 2017 - mvetter@suse.com + +- Use python singlespec + ------------------------------------------------------------------- Wed Oct 5 03:17:47 UTC 2016 - mailaender@opensuse.org diff --git a/python-pyocr.spec b/python-pyocr.spec index da9f02b..08e9e4f 100644 --- a/python-pyocr.spec +++ b/python-pyocr.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyocr # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -13,43 +13,45 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyocr -Version: 0.4.1 +Version: 0.5 Release: 0 -License: GPL-3.0+ Summary: Python wrapper for OCR engines -Url: https://github.com/jflesch/pyocr +License: GPL-3.0+ Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/p/pyocr/pyocr-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-Pillow -Requires: python-Pillow +Url: https://github.com/openpaperwork/pyocr +Source: https://github.com/openpaperwork/pyocr/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module base} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-Pillow Recommends: cuneiform Recommends: tesseract-ocr -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description -A Python wrapper for OCR engines (Tesseract, Cuneiform, etc) +PyOCR is an optical character recognition (OCR) tool wrapper for python. +That is, it helps using various OCR tools from a Python program. %prep %setup -q -n pyocr-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files -%defattr(-,root,root,-) +%files %{python_files} +%doc AUTHORS COPYING ChangeLog README.markdown %{python_sitelib}/* %changelog