]>
Commit | Line | Data |
---|---|---|
abe30543 SS |
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} | |
abe30543 SS |
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 | |
5cd803df MT |
27 | arches = noarch |
28 | ||
abe30543 SS |
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 |