56 lines
1.6 KiB
RPMSpec
56 lines
1.6 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
|
|
Name: python-myst-parser
|
|
Version: 2.0.0
|
|
Release: 1
|
|
Summary: A rich and extensible flavor of Markdown meant for technical documentation and publishing.
|
|
|
|
License: MIT
|
|
URL: https://github.com/executablebooks/MyST-Parser
|
|
Source: %{pypi_source myst_parser}
|
|
Patch1: 0001-modify-the-operator-of-version-required-to-gt.patch
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-flit-core
|
|
|
|
%global _description %{expand:
|
|
MyST is a flavor of markdown that is designed for simplicity, flexibility, and extensibility.
|
|
This repository serves as the reference implementation of MyST Markdown,
|
|
as well as a collection of tools to support working with MyST in Python and Sphinx.
|
|
It contains an extended CommonMark-compliant parser using markdown-it-py,
|
|
as well as a Sphinx extension that allows you to write MyST Markdown in Sphinx.}
|
|
|
|
|
|
%description %_description
|
|
|
|
%package -n python3-myst-parser
|
|
Summary: %{summary}
|
|
|
|
%description -n python3-myst-parser %_description
|
|
|
|
|
|
%prep
|
|
%autosetup -p1 -n myst_parser-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-myst-parser
|
|
%doc README.md example-include.md CHANGELOG.md
|
|
%license LICENSE
|
|
%{_bindir}/myst-*
|
|
%{python3_sitelib}/myst_parser
|
|
%{python3_sitelib}/myst_parser*.dist-info/
|
|
|
|
%changelog
|
|
* Tue Jul 11 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.0.0-1
|
|
- Initial package
|