From 0f667fcdd7eeea64bdc74aed767d2c8249e3deee Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 25 Feb 2023 03:51:42 +0000 Subject: automatic import of python3-markdown2 --- .gitignore | 1 + python-markdown2.spec | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 113 insertions(+) create mode 100644 python-markdown2.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..2f64ae6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/markdown2-2.4.8.tar.gz diff --git a/python-markdown2.spec b/python-markdown2.spec new file mode 100644 index 0000000..71d1d9a --- /dev/null +++ b/python-markdown2.spec @@ -0,0 +1,111 @@ +%global _empty_manifest_terminate_build 0 +Name: python-markdown2 +Version: 2.4.8 +Release: 1 +Summary: A fast and complete Python implementation of Markdown +License: MIT +URL: https://github.com/trentm/python-markdown2 +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/eb/c3/d3ab39919b8f6341fdb388c4962c8a8b189d94b0b00954ff8189bd0adb50/markdown2-2.4.8.tar.gz +BuildArch: noarch + +Requires: python3-pygments +Requires: python3-wavedrom +Requires: python3-pygments +Requires: python3-wavedrom + +%description +markdown2: A fast and complete Python implementation of Markdown. + +Markdown is a text-to-HTML filter; it translates an easy-to-read / +easy-to-write structured text format into HTML. Markdown's text +format is most similar to that of plain text email, and supports +features such as headers, *emphasis*, code blocks, blockquotes, and +links. -- http://daringfireball.net/projects/markdown/ + +This is a fast and complete Python implementation of the Markdown +spec. See http://github.com/trentm/python-markdown2 for more info. + + + + +%package -n python3-markdown2 +Summary: A fast and complete Python implementation of Markdown +Provides: python-markdown2 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-markdown2 +markdown2: A fast and complete Python implementation of Markdown. + +Markdown is a text-to-HTML filter; it translates an easy-to-read / +easy-to-write structured text format into HTML. Markdown's text +format is most similar to that of plain text email, and supports +features such as headers, *emphasis*, code blocks, blockquotes, and +links. -- http://daringfireball.net/projects/markdown/ + +This is a fast and complete Python implementation of the Markdown +spec. See http://github.com/trentm/python-markdown2 for more info. + + + + +%package help +Summary: Development documents and examples for markdown2 +Provides: python3-markdown2-doc +%description help +markdown2: A fast and complete Python implementation of Markdown. + +Markdown is a text-to-HTML filter; it translates an easy-to-read / +easy-to-write structured text format into HTML. Markdown's text +format is most similar to that of plain text email, and supports +features such as headers, *emphasis*, code blocks, blockquotes, and +links. -- http://daringfireball.net/projects/markdown/ + +This is a fast and complete Python implementation of the Markdown +spec. See http://github.com/trentm/python-markdown2 for more info. + + + + +%prep +%autosetup -n markdown2-2.4.8 + +%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-markdown2 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sat Feb 25 2023 Python_Bot - 2.4.8-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..9277fbf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +7e20eb9b3079050d9bae93e44ad99669 markdown2-2.4.8.tar.gz -- cgit v1.2.3