diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-25 03:51:42 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-02-25 03:51:42 +0000 |
commit | 0f667fcdd7eeea64bdc74aed767d2c8249e3deee (patch) | |
tree | dca9b780dab3184f2dea9cb4d93536e910ba89be | |
parent | e3f9251e6be2bddba72b7b798beaf17e6e6fc098 (diff) |
automatic import of python3-markdown2openeuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-markdown2.spec | 111 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 113 insertions, 0 deletions
@@ -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 <Python_Bot@openeuler.org> - 2.4.8-1 +- Package Spec generated @@ -0,0 +1 @@ +7e20eb9b3079050d9bae93e44ad99669 markdown2-2.4.8.tar.gz |