]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = python-parted |
7e104c82 | 7 | version = 3.9 |
802ea3af MT |
8 | release = 1 |
9 | thisapp = pyparted-%{version} | |
19a2bdb8 | 10 | |
802ea3af MT |
11 | groups = System/Libraries |
12 | url = http://fedorahosted.org/pyparted | |
13 | license = GPLv2+ | |
14 | summary = Python module for GNU parted. | |
19a2bdb8 | 15 | |
802ea3af MT |
16 | description |
17 | Python module for the parted library. It is used for manipulating | |
18 | partition tables. | |
19 | end | |
19a2bdb8 | 20 | |
7e104c82 SS |
21 | py3parted_version = 0.1 |
22 | ||
23 | source_dl = \ | |
24 | https://fedorahosted.org/releases/p/y/pyparted/ \ | |
25 | https://github.com/cinnarch/py3parted/archive/ | |
26 | ||
27 | # Also download source tarball for py3parted. | |
28 | sources += v%{py3parted_version}.tar.gz | |
19a2bdb8 | 29 | |
802ea3af MT |
30 | build |
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 |
50 | end | |
19a2bdb8 | 51 | |
19a2bdb8 | 52 | |
802ea3af MT |
53 | packages |
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 | 67 | end |