diff --git a/0001-removes-cap-on-mdit-py-plugins-dependency.patch b/0001-removes-cap-on-mdit-py-plugins-dependency.patch new file mode 100644 index 0000000..d53c64f --- /dev/null +++ b/0001-removes-cap-on-mdit-py-plugins-dependency.patch @@ -0,0 +1,25 @@ +From 87e5d0d46f90ebfb8be068a943b1645503f13248 Mon Sep 17 00:00:00 2001 +From: desert-sailor +Date: Thu, 9 Nov 2023 09:58:35 +0800 +Subject: [PATCH] removes cap on mdit-py-plugins dependency + +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 825c2f8..fceb3a6 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -27,7 +27,7 @@ keywords = ["mdformat", "markdown", "formatter", "gfm"] + python = "^3.7" + mdformat = ">=0.7.5,<0.8.0" + markdown-it-py = { version = "*", extras = [ "linkify" ] } # Let `mdformat` choose version boundaries for `markdown-it-py` +-mdit-py-plugins = ">=0.2.0,<0.4.0" ++mdit-py-plugins = ">=0.2.0" + mdformat-tables = ">=0.4.0" + + [tool.poetry.dev-dependencies] +-- +2.41.0 + diff --git a/mdformat-gfm-0.3.5.tar.gz b/mdformat-gfm-0.3.5.tar.gz new file mode 100644 index 0000000..c85174a Binary files /dev/null and b/mdformat-gfm-0.3.5.tar.gz differ diff --git a/python-mdformat-gfm.spec b/python-mdformat-gfm.spec new file mode 100644 index 0000000..82fb38c --- /dev/null +++ b/python-mdformat-gfm.spec @@ -0,0 +1,65 @@ +%global _empty_manifest_terminate_build 0 +Name: python-mdformat-gfm +Version: 0.3.5 +Release: 1 +Summary: Mdformat plugin for GitHub Flavored Markdown compatibility. +License: MIT +URL: https://github.com/hukkinj1/mdformat-gfm +Source0: https://files.pythonhosted.org/packages/5e/31/1ac2f7f7a16ef33b4de03c9296afe18659624d67886da802a871c85eef31/mdformat-gfm-0.3.5.tar.gz +Patch1: 0001-removes-cap-on-mdit-py-plugins-dependency.patch +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-poetry-core + +%description +Mdformat plugin for GitHub Flavored Markdown compatibility. + +%package -n python3-mdformat-gfm +Summary: Mdformat plugin for GitHub Flavored Markdown compatibility. +Provides: python-mdformat-gfm +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-hatchling +%description -n python3-mdformat-gfm +Mdformat plugin for GitHub Flavored Markdown compatibility. + +%package help +Summary: Development documents and examples for mdformat-gfm +Provides: python3-mdformat-gfm-doc + +%description help +Development documents and examples for mdformat-gfm. + +%prep +%autosetup -p1 -n mdformat-gfm-%{version} + +%build +%pyproject_build + +%install +%pyproject_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi + +%files -n python3-mdformat-gfm +%doc README.md +%license LICENSE +%{python3_sitelib}/mdformat_gfm +%{python3_sitelib}/mdformat_gfm*.dist-info/ + + +%files help +%{_docdir}/* + +%changelog +* Tue Nov 7 2023 Dongxing Wang - 0.3.5-1 +- Init package.