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}
12 url = https://docutils.sourceforge.net
13 license = Public Domain and BSD and Python and GPLv3+
14 summary = System for processing plaintext documentation
17 The Docutils project specifies a plaintext markup language, reStructuredText,
18 which is easy to read and quick to write. The project includes a python
19 library to parse rST files and transform them into other useful formats such
20 as HTML, XML, and TeX as well as commandline tools that give the enduser
21 access to this functionality.
24 source_dl = https://sourceforge.net/projects/docutils/files/docutils/%{version}/
35 # Remove shebang from library files
36 sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $(grep -Erl '^#!.+python' docutils)
38 %{python3} setup.py build
42 export PYTHONPATH=%{buildroot}%{python3_sitelib}
43 %{python3} test/alltests.py
47 %{python3} setup.py install --root=%{BUILDROOT} \
55 package %{name}-debuginfo