2016-10-05 05:59:28 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyocr
|
|
|
|
#
|
2019-05-16 22:29:52 +00:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-10-05 05:59:28 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-05-16 22:29:52 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-12-26 20:07:56 +00:00
|
|
|
#
|
2016-10-05 05:59:28 +00:00
|
|
|
|
|
|
|
|
2019-09-10 11:52:41 +00:00
|
|
|
%define sha f4b068cdf359186bfbed36959c53e9e52e2eda84
|
2019-05-16 22:29:52 +00:00
|
|
|
%define skip_python2 1
|
2017-12-26 20:07:56 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2016-10-05 05:59:28 +00:00
|
|
|
Name: python-pyocr
|
2019-09-10 11:52:41 +00:00
|
|
|
Version: 0.7.2
|
2016-10-05 05:59:28 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python wrapper for OCR engines
|
2019-05-16 22:29:52 +00:00
|
|
|
License: GPL-3.0-or-later
|
2016-10-05 05:59:28 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-09-10 11:52:41 +00:00
|
|
|
URL: https://gitlab.gnome.org/World/OpenPaperwork/pyocr
|
2019-05-16 22:29:52 +00:00
|
|
|
Source: https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/archive/%{version}/%{name}-%{version}.tar.gz
|
2017-12-26 20:07:56 +00:00
|
|
|
BuildRequires: %{python_module Pillow}
|
|
|
|
BuildRequires: %{python_module base}
|
2019-05-16 22:29:52 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm_git_archive}
|
2017-12-26 20:07:56 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-Pillow
|
2016-10-05 05:59:28 +00:00
|
|
|
Recommends: cuneiform
|
|
|
|
Recommends: tesseract-ocr
|
|
|
|
BuildArch: noarch
|
2017-12-26 20:07:56 +00:00
|
|
|
%python_subpackages
|
2016-10-05 05:59:28 +00:00
|
|
|
|
|
|
|
%description
|
2017-12-26 20:07:56 +00:00
|
|
|
PyOCR is an optical character recognition (OCR) tool wrapper for python.
|
|
|
|
That is, it helps using various OCR tools from a Python program.
|
2016-10-05 05:59:28 +00:00
|
|
|
|
|
|
|
%prep
|
2019-05-16 22:29:52 +00:00
|
|
|
%setup -q -n pyocr-%{version}-%{sha}
|
2016-10-05 05:59:28 +00:00
|
|
|
|
|
|
|
%build
|
2017-12-26 20:07:56 +00:00
|
|
|
%python_build
|
2016-10-05 05:59:28 +00:00
|
|
|
|
|
|
|
%install
|
2017-12-26 20:07:56 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-10-05 05:59:28 +00:00
|
|
|
|
2017-12-26 20:07:56 +00:00
|
|
|
%files %{python_files}
|
2019-09-10 11:52:41 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog README.md
|
2016-10-05 05:59:28 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|