Bump to python3-markdown 3.3.7 97/277897/2 accepted/tizen_8.0_base sandbox/backup/python3-markdown_3.3.7_20240206 sandbox/dh0128.kwak/python3-markdown-3.3.7-20220715 tizen_8.0_base accepted/tizen/8.0/base/20231005.045155 accepted/tizen/base/20221111.060730 accepted/tizen/base/20221115.103626 accepted/tizen/base/dev/20230602.080708 submit/sandbox/dh0128.kwak/python3-markdown-3.3.7-20220715/20220715.023021 tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 15 Jul 2022 00:54:47 +0000 (09:54 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 15 Jul 2022 01:11:59 +0000 (10:11 +0900)
Change-Id: Id6d55db4695165d7850fac52ec32e3ef067fd275

.gitignore [deleted file]
packaging/python3-markdown.manifest [new file with mode: 0644]
packaging/python3-markdown.spec [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
deleted file mode 100644 (file)
index 6de88e3..0000000
+++ /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 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python3-markdown.spec b/packaging/python3-markdown.spec
new file mode 100644 (file)
index 0000000..8e9a364
--- /dev/null
@@ -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
+