5 Star 0 Fork 4

src-openEuler/python-rst2txt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-rst2txt.spec 2.08 KB
一键复制 编辑 原始数据 按行查看 历史
%define pkg_name rst2txt
%define pkg_ver 1.1.0
Name: python-%{pkg_name}
Version: %{pkg_ver}
Release: 2
Summary: Convert reStructuredText to plain text
License: BSD-2-Clause
URL: https://github.com/stephenfin/rst2txt
Source0: https://files.pythonhosted.org/packages/c9/a2/e0f1a134b2aceb5910776c1bfc804f4343f5a6cc221909d9fc7cb6c8dd48/rst2txt-1.1.0.tar.gz
Patch0: Explicitly-require-setuptools-Cmports-from-pkg_resources.patch
BuildArch: noarch
BuildRequires: python3-docutils
BuildRequires: python3-pygments
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
%description
rst2txt reStructuredText is pretty-damn consumable in its raw form, but
extensive use of directives and roles can hamper things or leave the document
incomplete in its raw form (cough, .. include, cough).*rst2txt* allows you to
work around this by evaluating the reStructuredText source and stripping it of
most of its formatting. The end result is a document
%package -n python3-%{pkg_name}
Summary: %{summary}
Requires: python3-docutils
Requires: python3-pygments
Requires: python3-setuptools
%description -n python3-%{pkg_name}
rst2txt reStructuredText is pretty-damn consumable in its raw form, but
extensive use of directives and roles can hamper things or leave the document
incomplete in its raw form (cough, .. include, cough).*rst2txt* allows you to
work around this by evaluating the reStructuredText source and stripping it of
most of its formatting. The end result is a document
%prep
%setup -n %{pkg_name}-%{pkg_ver}
rm -rf %{pkg_name}.egg-info
%build
%py3_build
%install
%py3_install
%files -n python3-%{pkg_name}
%license LICENSE
%doc README.rst
%{_bindir}/rst2txt
%{python3_sitelib}/%{pkg_name}
%{python3_sitelib}/%{pkg_name}-%{pkg_ver}-py%{python3_version}.egg-info
%changelog
* Fri Jan 13 2023 zhangliangpengkun<zhangliangpengkun@xfusion.com> - 1.1.0-2
- Explicitly require setuptools, __init__.py imports from pkg_resources
* Mon Jul 11 2022 weiqingsong<weiqingsong@kylinos.cn> - 1.1.0-1
- Initial package.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-rst2txt.git
git@gitee.com:src-openeuler/python-rst2txt.git
src-openeuler
python-rst2txt
python-rst2txt
master

搜索帮助