代码拉取完成,页面将自动刷新
%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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。