From bbac7ceffbcb90a69d35ae5af283eee50477e0d55f53b8aee2fe948c5cccdde0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 16 May 2019 22:29:52 +0000 Subject: [PATCH] Accepting request 703572 from home:hitalia:branches:devel:languages:python Update python-pyocr to 0.7 OBS-URL: https://build.opensuse.org/request/show/703572 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyocr?expand=0&rev=5 --- python-pyocr-0.5.tar.gz | 3 --- python-pyocr-0.7.tar.gz | 3 +++ python-pyocr.changes | 14 ++++++++++++++ python-pyocr.spec | 19 +++++++++++-------- 4 files changed, 28 insertions(+), 11 deletions(-) delete mode 100644 python-pyocr-0.5.tar.gz create mode 100644 python-pyocr-0.7.tar.gz diff --git a/python-pyocr-0.5.tar.gz b/python-pyocr-0.5.tar.gz deleted file mode 100644 index fbbad36..0000000 --- a/python-pyocr-0.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9110dee4daad7d172e7b90c5ddfc39abc72840b918d3346afc86935fc67f2c4 -size 2182562 diff --git a/python-pyocr-0.7.tar.gz b/python-pyocr-0.7.tar.gz new file mode 100644 index 0000000..456037e --- /dev/null +++ b/python-pyocr-0.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac5f682ca9e066d9a10824d200ae1fc169b122527f975a568723d487ad1eb1fe +size 63681 diff --git a/python-pyocr.changes b/python-pyocr.changes index 0de51e6..bfd108d 100644 --- a/python-pyocr.changes +++ b/python-pyocr.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Thu May 16 22:25:00 UTC 2019 - Hardik Italia + +- Update to vetison 0.7: + * Drop support for Python <= 2.7 + * Fix: Make sure the builder objects can be used to parse box files + even if Tesseract is not installed. + * PyOCR version is now automatically set in the module by setuptools_scm + instead of PyOCR's Makefile (except on Windows) + * Tesseract: optim: keep the get_version() in memory instead of calling + Tesseract everytime (get_version() by psm_parameter() which is called each + time a box file is parsed ...) +- Update project url and source to gitlab + ------------------------------------------------------------------- Tue Dec 26 15:53:23 UTC 2017 - mpluskal@suse.com diff --git a/python-pyocr.spec b/python-pyocr.spec index 08e9e4f..f6f64eb 100644 --- a/python-pyocr.spec +++ b/python-pyocr.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyocr # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,21 +12,24 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%define sha 0ffeca803fca7c812560a6c0e34342e4833f1ab0 +%define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyocr -Version: 0.5 +Version: 0.7 Release: 0 Summary: Python wrapper for OCR engines -License: GPL-3.0+ +License: GPL-3.0-or-later Group: Development/Languages/Python -Url: https://github.com/openpaperwork/pyocr -Source: https://github.com/openpaperwork/pyocr/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Url: https://gitlab.gnome.org/World/OpenPaperwork/pyocr +Source: https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: %{python_module Pillow} BuildRequires: %{python_module base} +BuildRequires: %{python_module setuptools_scm_git_archive} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -41,7 +44,7 @@ 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} +%setup -q -n pyocr-%{version}-%{sha} %build %python_build @@ -51,7 +54,7 @@ That is, it helps using various OCR tools from a Python program. %python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%doc AUTHORS COPYING ChangeLog README.markdown +%doc AUTHORS COPYING ChangeLog README.md %{python_sitelib}/* %changelog