From: DongHun Kwak Date: Fri, 15 Jul 2022 00:54:47 +0000 (+0900) Subject: Bump to python3-markdown 3.3.7 X-Git-Tag: submit/sandbox/dh0128.kwak/python3-markdown-3.3.7-20220715/20220715.023021^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Fsandbox%2Fdh0128.kwak%2Fpython3-markdown-3.3.7-20220715;p=platform%2Fupstream%2Fpython3-markdown.git Bump to python3-markdown 3.3.7 Change-Id: Id6d55db4695165d7850fac52ec32e3ef067fd275 --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6de88e3..0000000 --- a/.gitignore +++ /dev/null @@ -1,74 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -test-output.html - -# Translations -*.mo -*.pot - -# Scrapy stuff: -.scrapy - -# PyBuilder -target/ - -# IPython Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# virtualenv -venv/ -ENV/ - -# MkDocs documentation -site/ - -# Mac files -.DS_Store diff --git a/packaging/python3-markdown.manifest b/packaging/python3-markdown.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python3-markdown.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python3-markdown.spec b/packaging/python3-markdown.spec new file mode 100644 index 0000000..8e9a364 --- /dev/null +++ b/packaging/python3-markdown.spec @@ -0,0 +1,41 @@ +Name: python3-markdown +Version: 3.3.7 +Release: 1 +Summary: Markdown implementation in Python3 +Group: Development/Languages +License: BSD-3-Clause +URL: https://python-markdown.github.io/ + +Source0: %{name}-%{version}.tar.gz +Source1001: python3-markdown.manifest + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +BuildArch: noarch + +%description +This is a Python3 implementation of John Gruber's Markdown. It is +almost completely compliant with the reference implementation, though +there are a few known issues. + +%prep +%setup -q -n %{name}-%{version} +cp %{SOURCE1001} . + +# remove shebangs +find markdown -type f -name '*.py' \ + -exec sed -i -e '/^#!/{1D}' {} \; + +%build +%{_bindir}/python3 setup.py build + +%install +%{_bindir}/python3 setup.py install -O1 --skip-build --root %{buildroot} --prefix %{_prefix} + +%files +%manifest %{name}.manifest +%{python3_sitelib}/Markdown*.egg-info/* +%{python3_sitelib}/markdown/* +%{_bindir}/markdown_py +