diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | 0001-modify-the-operator-of-version-required-to-gt.patch | 25 | ||||
-rw-r--r-- | python-markdown-it-py.spec | 52 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/markdown-it-py-3.0.0.tar.gz 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..2675fb2 --- /dev/null +++ b/0001-modify-the-operator-of-version-required-to-gt.patch @@ -0,0 +1,25 @@ +From 9974de9e5644ef9265fc8dc2a0a439ceebce519f Mon Sep 17 00:00:00 2001 +From: desert-sailor <dxwangk@isoftstone.com> +Date: Tue, 1 Aug 2023 15:54:33 +0800 +Subject: [PATCH] modify the operator of version required to gt + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 633eef2..6bccace 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -26,7 +26,7 @@ classifiers = [ + keywords = ["markdown", "lexer", "parser", "commonmark", "markdown-it"] + requires-python = ">=3.8" + dependencies = [ +- "mdurl~=0.1", ++ "mdurl>=0.1", + ] + + [project.urls] +-- +2.33.0 + diff --git a/python-markdown-it-py.spec b/python-markdown-it-py.spec new file mode 100644 index 0000000..4bf955d --- /dev/null +++ b/python-markdown-it-py.spec @@ -0,0 +1,52 @@ +%global _empty_manifest_terminate_build 0 + +Name: python-markdown-it-py +Version: 3.0.0 +Release: 1 +Summary: Python port of markdown-it and some of its associated plugins. + +License: MIT +URL: https://github.com/executablebooks/markdown-it-py +Source: https://files.pythonhosted.org/packages/38/71/3b932df36c1a044d397a1f92d1cf91ee0a503d91e470cbd670aa66b07ed0/markdown-it-py-3.0.0.tar.gz +Patch1: 0001-modify-the-operator-of-version-required-to-gt.patch + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-flit-core + +%global _description %{expand: +Python port of markdown-it and some of its associated plugins.} + + +%description %_description + +%package -n python3-markdown-it-py +Summary: %{summary} + +%description -n python3-markdown-it-py %_description + + +%prep +%autosetup -p1 -n markdown-it-py-%{version} + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-markdown-it-py +%doc README.md +%license LICENSE* +%{_bindir}/markdown-it +%{python3_sitelib}/markdown_it +%{python3_sitelib}/markdown_it_py*.dist-info/ + +%changelog +* Tue Aug 1 2023 Dongxing Wang <dxwangk@isoftstone.com> - 3.0.0-1 +- Initial package @@ -0,0 +1 @@ +a00d59ed2704f6590fdde0e9bad04c7c markdown-it-py-3.0.0.tar.gz |