]>
Commit | Line | Data |
---|---|---|
69309f69 SS |
1 | ############################################################################### |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = python3-systemd | |
7 | version = 232 | |
8 | release = 1 | |
9 | thisapp = python-systemd-%{version} | |
10 | ||
11 | groups = Development/Tools | |
12 | url = https://github.com/systemd/python-systemd | |
13 | license = LGPLv2+ | |
14 | summary = Python module wrapping systemd functionality. | |
15 | ||
16 | description | |
17 | This package contains various Python modulse for a native access to | |
18 | the systemd facilities. | |
19 | end | |
20 | ||
21 | source_dl = https://github.com/systemd/python-systemd/archive/v%{version}.tar.gz#/ | |
22 | ||
23 | build | |
24 | requires | |
25 | python3-devel >= 3.4 | |
26 | systemd-devel | |
27 | end | |
28 | ||
29 | prepare_cmds | |
30 | sed -i 's/py\.test/pytest/' Makefile | |
31 | end | |
32 | ||
33 | make_build_targets += \ | |
34 | PYTHON=%{python3} | |
35 | ||
36 | test | |
37 | # Disable testsuite, because pytest is required | |
38 | # which is currently not available. | |
39 | #make PYTHON=%{python3} check | |
40 | end | |
41 | ||
42 | make_install_targets += \ | |
43 | PYTHON=%{python3} | |
44 | ||
45 | install_cmds | |
46 | # Remove accidently installed files from testsuite. | |
47 | rm -rvf %{BUILDROOT}%{python3_sitearch}/systemd/test | |
48 | end | |
49 | end | |
50 | ||
51 | packages | |
52 | package %{name} | |
53 | ||
54 | package %{name}-debuginfo | |
55 | template DEBUGINFO | |
56 | end | |
57 | end |