From f171f4482b4b491f502776b1c41b656d68f68b75 Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 15 Jul 2022 09:54:47 +0900 Subject: [PATCH] Bump to python3-markdown 3.3.7 Change-Id: Id6d55db4695165d7850fac52ec32e3ef067fd275 --- .gitignore | 74 ----------------------------- packaging/python3-markdown.manifest | 5 ++ packaging/python3-markdown.spec | 41 ++++++++++++++++ 3 files changed, 46 insertions(+), 74 deletions(-) delete mode 100644 .gitignore create mode 100644 packaging/python3-markdown.manifest create mode 100644 packaging/python3-markdown.spec 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 + -- 2.34.1