14
0
forked from pool/python-pyocr

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
This commit is contained in:
Tomáš Chvátal
2017-12-26 20:07:56 +00:00
committed by Git OBS Bridge
parent 31babbde91
commit ceebceda21
4 changed files with 44 additions and 22 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f85a0fbfb8ab21e1af9a5e6a3140b71c40d5bd9f1f294edda8319f7761c61f9d
size 13918

3
python-pyocr-0.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c9110dee4daad7d172e7b90c5ddfc39abc72840b918d3346afc86935fc67f2c4
size 2182562

View File

@@ -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

View File

@@ -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