+++ /dev/null
-# 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
--- /dev/null
+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
+