summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 07:49:46 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 07:49:46 +0000
commit01ec316e741d4762400bf4a7f06ffdc0063e1b5a (patch)
treecbc0086079c180acff80021c2273a98b267f7712
parente7e598a599813e6f585bd9331dc8ad6c643671d5 (diff)
automatic import of python-mistune
-rw-r--r--.gitignore1
-rw-r--r--python-mistune.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..2c77773 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mistune-2.0.5.tar.gz
diff --git a/python-mistune.spec b/python-mistune.spec
new file mode 100644
index 0000000..804f43c
--- /dev/null
+++ b/python-mistune.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mistune
+Version: 2.0.5
+Release: 1
+Summary: A sane Markdown parser with useful plugins and renderers
+License: BSD 3-Clause License
+URL: https://github.com/lepture/mistune
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/fb/6b/d8013058fcdb0088b4130164fc961e15c50d30302f60a349c16bdfda9770/mistune-2.0.5.tar.gz
+BuildArch: noarch
+
+
+%description
+A fast yet powerful Python Markdown parser with renderers and plugins.
+
+%package -n python3-mistune
+Summary: A sane Markdown parser with useful plugins and renderers
+Provides: python-mistune
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mistune
+A fast yet powerful Python Markdown parser with renderers and plugins.
+
+%package help
+Summary: Development documents and examples for mistune
+Provides: python3-mistune-doc
+%description help
+A fast yet powerful Python Markdown parser with renderers and plugins.
+
+%prep
+%autosetup -n mistune-2.0.5
+
+%build
+%py3_build
+
+%install
+%py3_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
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-mistune -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f1bb3f7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f0d333acdc994ecca2a9145ce1c9680e mistune-2.0.5.tar.gz