]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = python-dbus | |
7 | version = 1.1.1 | |
8 | release = 2 | |
9 | ||
10 | groups = System/Libraries | |
11 | url = http://www.freedesktop.org/software/dbus/ | |
12 | license = MIT | |
13 | summary = Dbus Python Bindings. | |
14 | ||
15 | description | |
16 | D-Bus python bindings for use with python programs. | |
17 | end | |
18 | ||
19 | thisapp = dbus-python-%{version} | |
20 | ||
21 | source_dl = http://dbus.freedesktop.org/releases/dbus-python/ | |
22 | ||
23 | build | |
24 | requires | |
25 | dbus-devel | |
26 | dbus-glib-devel | |
27 | pkg-config | |
28 | python-devel | |
29 | python3-devel >= 3.4 | |
30 | end | |
31 | ||
32 | configure_options += \ | |
33 | --mandir=/usr/share/man | |
34 | ||
35 | DIR_APP3 = %{DIR_APP}-python3 | |
36 | ||
37 | prepare_cmds | |
38 | cp -av %{DIR_APP} %{DIR_APP3} | |
39 | ||
40 | pushd %{DIR_APP3} | |
41 | find -name '*.py' | xargs sed -i '1s|^#!python|#!%{python3}|' | |
42 | popd | |
43 | ||
44 | find -name '*.py' | xargs sed -i '1s|^#!python|#!%{python}|' | |
45 | end | |
46 | ||
47 | build | |
48 | pushd %{DIR_APP3} | |
49 | export PYTHON=%{python3} | |
50 | ./configure %{configure_options} | |
51 | make %{PARALLELISMFLAGS} | |
52 | popd | |
53 | ||
54 | export PYTHON=%{python} | |
55 | ./configure %{configure_options} | |
56 | make %{PARALELLISMFLAGS} | |
57 | end | |
58 | ||
59 | install | |
60 | pushd %{DIR_APP3} | |
61 | export PYTHON=%{python3} | |
62 | make install DESTDIR=%{BUILDROOT} | |
63 | popd | |
64 | ||
65 | export PYTHON=%{python} | |
66 | make install DESTDIR=%{BUILDROOT} | |
67 | end | |
68 | end | |
69 | ||
70 | packages | |
71 | package %{name} | |
72 | ||
73 | package python3-dbus | |
74 | template PYTHON3 | |
75 | end | |
76 | ||
77 | package %{name}-devel | |
78 | template DEVEL | |
79 | end | |
80 | ||
81 | package %{name}-debuginfo | |
82 | template DEBUGINFO | |
83 | end | |
84 | end |