From 5f65b5721896b9380cb9a67806b0286ab0a8250860d9d8c7ee21552a8d9b5301 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 2 Jan 2024 21:29:49 +0000 Subject: [PATCH] - update to 0.8.5: * Fix LineBoxBuilder: Take into account headers and footers too, not just the body. * switch from setup.py to pyproject.toml * switch from tox to pytest - Update project url and source to gitlab OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyocr?expand=0&rev=12 --- python-pyocr-0.8.3.tar.gz | 3 --- python-pyocr-0.8.5.tar.gz | 3 +++ python-pyocr.changes | 11 ++++++++++- python-pyocr.spec | 14 ++++++++------ 4 files changed, 21 insertions(+), 10 deletions(-) delete mode 100644 python-pyocr-0.8.3.tar.gz create mode 100644 python-pyocr-0.8.5.tar.gz diff --git a/python-pyocr-0.8.3.tar.gz b/python-pyocr-0.8.3.tar.gz deleted file mode 100644 index 406ce2d..0000000 --- a/python-pyocr-0.8.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2484c93feca5b8f1fe6c4e7ea3901d37b67555851cb27f4031a457373131b0d -size 65558 diff --git a/python-pyocr-0.8.5.tar.gz b/python-pyocr-0.8.5.tar.gz new file mode 100644 index 0000000..eab092a --- /dev/null +++ b/python-pyocr-0.8.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13f1506c7e10b62ad636759ed6855ef3e5d598974148c8a86cf5de8d90c35fd1 +size 67116 diff --git a/python-pyocr.changes b/python-pyocr.changes index 0281640..d5c3dd9 100644 --- a/python-pyocr.changes +++ b/python-pyocr.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Jan 2 21:26:32 UTC 2024 - Dirk Müller + +- update to 0.8.5: + * Fix LineBoxBuilder: Take into account headers and footers + too, not just the body. + * switch from setup.py to pyproject.toml + * switch from tox to pytest + ------------------------------------------------------------------- Wed Jan 4 18:40:56 UTC 2023 - Dirk Müller @@ -34,7 +43,7 @@ Thu May 16 22:25:00 UTC 2019 - Hardik Italia * 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 +- 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 8eccba0..8c00133 100644 --- a/python-pyocr.spec +++ b/python-pyocr.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyocr # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,11 +16,10 @@ # -%define sha 920b07154e1240efbd16e5b0bfd5fe2b57ac8334 -%define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define sha ca191ba776743fe10a1c3dd99eaa82626ee4edc1 +%{?sle15_python_module_pythons} Name: python-pyocr -Version: 0.8.3 +Version: 0.8.5 Release: 0 Summary: Python wrapper for OCR engines License: GPL-3.0-or-later @@ -30,6 +29,8 @@ Source: https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/archive/%{v BuildRequires: %{python_module Pillow} BuildRequires: %{python_module base} BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -56,6 +57,7 @@ That is, it helps using various OCR tools from a Python program. %files %{python_files} %license COPYING %doc AUTHORS ChangeLog README.md -%{python_sitelib}/* +%{python_sitelib}/pyocr +%{python_sitelib}/pyocr-%{version}.dist-info %changelog