diff --git a/0001-modify-the-operator-of-version-required-to-gt.patch b/0001-modify-the-operator-of-version-required-to-gt.patch new file mode 100644 index 0000000..0bca116 --- /dev/null +++ b/0001-modify-the-operator-of-version-required-to-gt.patch @@ -0,0 +1,27 @@ +From f2fc63ffd0aae72a480a2661f941dd7bf0a2d336 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Thu, 20 Jul 2023 17:13:34 +0800 +Subject: [PATCH] modify the operator of version required to gt + +--- + pyproject.toml | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index ed6db11..ac6bf31 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -36,8 +36,8 @@ requires-python = ">=3.8" + dependencies = [ + "docutils>=0.16,<0.21", + "jinja2", # required for substitutions, but let sphinx choose version +- "markdown-it-py~=3.0", +- "mdit-py-plugins~=0.4", ++ "markdown-it-py>=3.0", ++ "mdit-py-plugins>=0.4", + "pyyaml", + "sphinx>=6,<8", + ] +-- +2.33.0 + diff --git a/myst_parser-2.0.0.tar.gz b/myst_parser-2.0.0.tar.gz new file mode 100644 index 0000000..47edf6b Binary files /dev/null and b/myst_parser-2.0.0.tar.gz differ diff --git a/python-myst-parser.spec b/python-myst-parser.spec new file mode 100644 index 0000000..e0a9362 --- /dev/null +++ b/python-myst-parser.spec @@ -0,0 +1,55 @@ +%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 - 2.0.0-1 +- Initial package