1 Star 0 Fork 3

张逸轩/python-pyocr

forked from src-openEuler/python-pyocr 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-pyocr.spec 1.64 KB
一键复制 编辑 原始数据 按行查看 历史
张逸轩 提交于 2021-08-13 13:58 . python-pyocr
%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.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang-yixuan0822/python-pyocr.git
git@gitee.com:zhang-yixuan0822/python-pyocr.git
zhang-yixuan0822
python-pyocr
python-pyocr
master

搜索帮助