14
0
forked from pool/python-pyocr

Accepting request 560041 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/560041
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyocr?expand=0&rev=2
This commit is contained in:
2018-01-10 22:33:37 +00:00
committed by Git OBS Bridge
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 Wed Oct 5 03:17:47 UTC 2016 - mailaender@opensuse.org

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pyocr # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -13,43 +13,45 @@
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyocr Name: python-pyocr
Version: 0.4.1 Version: 0.5
Release: 0 Release: 0
License: GPL-3.0+
Summary: Python wrapper for OCR engines Summary: Python wrapper for OCR engines
Url: https://github.com/jflesch/pyocr License: GPL-3.0+
Group: Development/Languages/Python Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/p/pyocr/pyocr-%{version}.tar.gz Url: https://github.com/openpaperwork/pyocr
BuildRequires: python-devel Source: https://github.com/openpaperwork/pyocr/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: python-setuptools BuildRequires: %{python_module Pillow}
BuildRequires: python-Pillow BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Pillow Requires: python-Pillow
Recommends: cuneiform Recommends: cuneiform
Recommends: tesseract-ocr 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 BuildArch: noarch
%endif %python_subpackages
%description %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 %prep
%setup -q -n pyocr-%{version} %setup -q -n pyocr-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %files %{python_files}
%defattr(-,root,root,-) %doc AUTHORS COPYING ChangeLog README.markdown
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog