]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - python-parted/python-parted.nm
docbook2X: New package.
[people/ms/ipfire-3.x.git] / python-parted / python-parted.nm
CommitLineData
19a2bdb8 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
19a2bdb8
SS
4###############################################################################
5
802ea3af 6name = python-parted
7e104c82 7version = 3.9
802ea3af
MT
8release = 1
9thisapp = pyparted-%{version}
19a2bdb8 10
802ea3af
MT
11groups = System/Libraries
12url = http://fedorahosted.org/pyparted
13license = GPLv2+
14summary = Python module for GNU parted.
19a2bdb8 15
802ea3af
MT
16description
17 Python module for the parted library. It is used for manipulating
18 partition tables.
19end
19a2bdb8 20
7e104c82
SS
21py3parted_version = 0.1
22
23source_dl = \
24 https://fedorahosted.org/releases/p/y/pyparted/ \
25 https://github.com/cinnarch/py3parted/archive/
26
27# Also download source tarball for py3parted.
28sources += v%{py3parted_version}.tar.gz
19a2bdb8 29
802ea3af
MT
30build
31 requires
7e104c82 32 parted-devel >= 3.1
802ea3af
MT
33 pkg-config
34 python-decorator
35 python-devel
7e104c82
SS
36 python3-devel
37 end
38
39 DIR_APP3 = %{DIR_SRC}/py3parted-%{py3parted_version}
40
41 build_cmds
42 # Build py3parted.
43 cd %{DIR_APP3} && python3 setup.py build
44 end
45
46 install_cmds
47 # Install py3parted.
48 cd %{DIR_APP3} && python3 setup.py install --root=%{BUILDROOT}
802ea3af
MT
49 end
50end
19a2bdb8 51
19a2bdb8 52
802ea3af
MT
53packages
54 package %{name}
55 requires
56 python-decorator
57 end
58 end
1f9bc2f0 59
7e104c82
SS
60 package python3-parted
61 template PYTHON3
62 end
63
1f9bc2f0
MT
64 package %{name}-debuginfo
65 template DEBUGINFO
66 end
802ea3af 67end