diff options
author | CoprDistGit <infra@openeuler.org> | 2023-08-22 07:17:05 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-08-22 07:17:05 +0000 |
commit | bbb7e9848ddf4e322c7b2db002e74655a23de11c (patch) | |
tree | 7e68f2aacd2d0a2c3922ce666cfe2e832c9bf4a0 | |
parent | 553d236a5baea7594a9d40bf754f9fb99c7ca0e8 (diff) |
automatic import of python-mistletoeopeneuler23.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-mistletoe.spec | 65 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 67 insertions, 0 deletions
@@ -0,0 +1 @@ +/mistletoe-1.1.0.tar.gz diff --git a/python-mistletoe.spec b/python-mistletoe.spec new file mode 100644 index 0000000..fec6a44 --- /dev/null +++ b/python-mistletoe.spec @@ -0,0 +1,65 @@ +# Created by pyp2rpm-3.2.2 +%global pypi_name mistletoe + +Name: python-%{pypi_name} +Version: 1.1.0 +Release: 1 +Summary: A fast, extensible Markdown parser in pure Python + +License: MIT +URL: https://github.com/miyuchina/mistletoe +Source0: https://files.pythonhosted.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +mistletoe is a Markdown parser in pure Python, designed to be fast, spec-compliant and fully customizable. + +Apart from being the fastest CommonMark-compliant Markdown parser implementation in pure Python, mistletoe +also supports easy definitions of custom tokens. Parsing Markdown into an abstract syntax tree also allows +us to swap out renderers for different output formats, without touching any of the core components. + +Remember to spell mistletoe in lowercase! + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3-setuptools +%description -n python3-%{pypi_name} +mistletoe is a Markdown parser in pure Python, designed to be fast, spec-compliant and fully customizable. + +Apart from being the fastest CommonMark-compliant Markdown parser implementation in pure Python, mistletoe +also supports easy definitions of custom tokens. Parsing Markdown into an abstract syntax tree also allows +us to swap out renderers for different output formats, without touching any of the core components. + +Remember to spell mistletoe in lowercase! + +%prep +%autosetup -n %{pypi_name}-%{version} +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install +cp %{buildroot}/%{_bindir}/mistletoe %{buildroot}/%{_bindir}/mistletoe-%{python3_version} +ln -s %{_bindir}/mistletoe-%{python3_version} %{buildroot}/%{_bindir}/mistletoe-3 + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{_bindir}/mistletoe +%{_bindir}/mistletoe-3 +%{_bindir}/mistletoe-%{python3_version} +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-*.egg-info + +%changelog +* Thu Aug 17 2023 ysliu <ysliuci@isoftstone.com> - 1.1.0-1 +- Initial package. @@ -0,0 +1 @@ +aa070fc3d65ec9123d3f800d93ecb657 mistletoe-1.1.0.tar.gz |