代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/python-pyocr 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global srcname pyocr
Name: python-%{srcname}
Version: 0.8
Release: 1
Summary: Python wrapper for OCR engines (Tesseract, Cuneiform, etc)
License: GPLv3+
URL: https://gitlab.gnome.org/World/OpenPaperwork/pyocr
Source0: https://gitlab.gnome.org/World/OpenPaperwork/pyocr/-/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: tesseract
BuildRequires: tesseract-osd
BuildRequires: tesseract-langpack-fra
BuildRequires: tesseract-langpack-jpn
%global _description \
A Python wrapper for Tesseract and Cuneiform
%description %{_description}
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(pillow)
BuildRequires: python3dist(pytest)
BuildRequires: python3dist(setuptools-scm)
BuildRequires: python3dist(setuptools-scm-git-archive)
BuildRequires: python3dist(six)
BuildRequires: python3dist(sphinx)
Recommends: tesseract
%description -n python3-%{srcname} %{_description}
%prep
%autosetup -n %{srcname}-%{version} -p1
rm -rf %{srcname}.egg-info
%build
%py3_build
:
PYTHONPATH=${PWD}/build/lib sphinx-build-3 doc/source html
rm -rf html/.{doctrees,buildinfo}
%install
%py3_install
%check
export LANG=C.UTF-8
%{pytest} tests
%files -n python3-%{srcname}
%doc README.md AUTHORS ChangeLog html
%license COPYING
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
%changelog
* Fri Aug 13 2021 Zhangyixuan <zhangyixuan@kylinos.cn> - 0.8-1
- Initial package.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。