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