]> git.ipfire.org Git - ipfire-3.x.git/blob - python3-docutils/python3-docutils.nm
c86fa41ab60513b99258aeb582b68bd5e28fed61
[ipfire-3.x.git] / python3-docutils / python3-docutils.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = python3-docutils
7 version = 0.19
8 release = 1
9 thisapp = docutils-%{version}
10
11 groups = System/Tools
12 url = https://docutils.sourceforge.net
13 license = Public Domain and BSD and Python and GPLv3+
14 summary = System for processing plaintext documentation
15
16 description
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.
22 end
23
24 source_dl = https://sourceforge.net/projects/docutils/files/docutils/%{version}/
25
26 build
27 arches = noarch
28
29 requires
30 python3-devel >= 3.4
31 python3-setuptools
32 end
33
34 build
35 # Remove shebang from library files
36 sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $(grep -Erl '^#!.+python' docutils)
37
38 %{python3} setup.py build
39 end
40
41 test
42 export PYTHONPATH=%{buildroot}%{python3_sitelib}
43 %{python3} test/alltests.py
44 end
45
46 install
47 %{python3} setup.py install --root=%{BUILDROOT} \
48
49 end
50 end
51
52 packages
53 package %{name}
54
55 package %{name}-debuginfo
56 template DEBUGINFO
57 end
58 end