]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blame - python3-docutils/python3-docutils.nm
Change how we make packages "noarch"
[people/pmueller/ipfire-3.x.git] / python3-docutils / python3-docutils.nm
CommitLineData
abe30543
SS
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = python3-docutils
7version = 0.19
8release = 1
9thisapp = docutils-%{version}
abe30543
SS
10
11groups = System/Tools
12url = https://docutils.sourceforge.net
13license = Public Domain and BSD and Python and GPLv3+
14summary = System for processing plaintext documentation
15
16description
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.
22end
23
24source_dl = https://sourceforge.net/projects/docutils/files/docutils/%{version}/
25
26build
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
50end
51
52packages
53 package %{name}
54
55 package %{name}-debuginfo
56 template DEBUGINFO
57 end
58end