1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
6 name = python3-docutils
9 thisapp = docutils-%{version}
13 url = https://docutils.sourceforge.net
14 license = Public Domain and BSD and Python and GPLv3+
15 summary = System for processing plaintext documentation
18 The Docutils project specifies a plaintext markup language, reStructuredText,
19 which is easy to read and quick to write. The project includes a python
20 library to parse rST files and transform them into other useful formats such
21 as HTML, XML, and TeX as well as commandline tools that give the enduser
22 access to this functionality.
25 source_dl = https://sourceforge.net/projects/docutils/files/docutils/%{version}/
34 # Remove shebang from library files
35 sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $(grep -Erl '^#!.+python' docutils)
37 %{python3} setup.py build
41 export PYTHONPATH=%{buildroot}%{python3_sitelib}
42 %{python3} test/alltests.py
46 %{python3} setup.py install --root=%{BUILDROOT} \
54 package %{name}-debuginfo