From 45fdd76a019b018c177abaf4b9e1b0aa8f5baac6260b3adb1233562274c61ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 23 Mar 2020 10:52:34 +0000 Subject: [PATCH] Accepting request 787403 from home:pgajdos:python - version update to 0.3.3 * no upstream changelog OBS-URL: https://build.opensuse.org/request/show/787403 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytesseract?expand=0&rev=15 --- pytesseract-0.3.0.tar.gz | 3 --- python-pytesseract.changes | 6 ++++++ python-pytesseract.spec | 14 +++++++++++--- v0.3.3.tar.gz | 3 +++ 4 files changed, 20 insertions(+), 6 deletions(-) delete mode 100644 pytesseract-0.3.0.tar.gz create mode 100644 v0.3.3.tar.gz diff --git a/pytesseract-0.3.0.tar.gz b/pytesseract-0.3.0.tar.gz deleted file mode 100644 index 32f165a..0000000 --- a/pytesseract-0.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ae1dce01413d1f8eb0614fd65d831e26e649dc1a31699b7275455c57aa563b59 -size 20790 diff --git a/python-pytesseract.changes b/python-pytesseract.changes index a0f9cb7..eaf1ec3 100644 --- a/python-pytesseract.changes +++ b/python-pytesseract.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 23 09:25:20 UTC 2020 - pgajdos@suse.com + +- version update to 0.3.3 + * no upstream changelog + ------------------------------------------------------------------- Tue Sep 10 11:35:38 UTC 2019 - Tomáš Chvátal diff --git a/python-pytesseract.spec b/python-pytesseract.spec index c40015e..6a6c1e5 100644 --- a/python-pytesseract.spec +++ b/python-pytesseract.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytesseract # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,25 +18,30 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytesseract -Version: 0.3.0 +Version: 0.3.3 Release: 0 Summary: Python wrapper for Google's Tesseract-OCR License: GPL-3.0-only Group: Development/Languages/Python URL: https://github.com/madmaze/python-tesseract -Source: https://files.pythonhosted.org/packages/source/p/pytesseract/pytesseract-%{version}.tar.gz +# https://github.com/madmaze/pytesseract/issues/262 +Source: https://github.com/madmaze/pytesseract/archive/v%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-Pillow +Requires: python-setuptools Requires: tesseract-traineddata-deu Requires: tesseract-traineddata-eng Requires: pkgconfig(tesseract) BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module pytest} +BuildRequires: tesseract-ocr-traineddata-orientation_and_script_detection BuildRequires: tesseract-traineddata-deu BuildRequires: tesseract-traineddata-eng +BuildRequires: tesseract-traineddata-fra BuildRequires: pkgconfig(tesseract) # /SECTION %python_subpackages @@ -64,6 +69,9 @@ sed -i -e '/^#!\//, 1d' src/pytesseract.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +%pytest + %files %{python_files} %doc README.rst %license LICENSE diff --git a/v0.3.3.tar.gz b/v0.3.3.tar.gz new file mode 100644 index 0000000..39376c7 --- /dev/null +++ b/v0.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62e810f1a3eb28ab88e95de17d8f4f7e6681e47c5a11e0c412ec26e36bc647ef +size 331608