--- /dev/null
+###############################################################################
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
+###############################################################################
+
+name = python3-docutils
+version = 0.19
+release = 1
+thisapp = docutils-%{version}
+arch = noarch
+
+groups = System/Tools
+url = https://docutils.sourceforge.net
+license = Public Domain and BSD and Python and GPLv3+
+summary = System for processing plaintext documentation
+
+description
+ The Docutils project specifies a plaintext markup language, reStructuredText,
+ which is easy to read and quick to write. The project includes a python
+ library to parse rST files and transform them into other useful formats such
+ as HTML, XML, and TeX as well as commandline tools that give the enduser
+ access to this functionality.
+end
+
+source_dl = https://sourceforge.net/projects/docutils/files/docutils/%{version}/
+
+build
+ requires
+ python3-devel >= 3.4
+ python3-setuptools
+ end
+
+ build
+ # Remove shebang from library files
+ sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $(grep -Erl '^#!.+python' docutils)
+
+ %{python3} setup.py build
+ end
+
+ test
+ export PYTHONPATH=%{buildroot}%{python3_sitelib}
+ %{python3} test/alltests.py
+ end
+
+ install
+ %{python3} setup.py install --root=%{BUILDROOT} \
+
+ end
+end
+
+packages
+ package %{name}
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
+end