]>
Commit | Line | Data |
---|---|---|
40c6b5f0 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
40c6b5f0 BS |
4 | ############################################################################### |
5 | ||
8e31124c | 6 | name = python-dbus |
f0153b29 SS |
7 | version = 1.1.1 |
8 | release = 1 | |
40c6b5f0 | 9 | |
802ea3af MT |
10 | groups = System/Libraries |
11 | url = http://www.freedesktop.org/software/dbus/ | |
12 | license = MIT | |
13 | summary = Dbus Python Bindings. | |
40c6b5f0 | 14 | |
802ea3af | 15 | description |
40c6b5f0 | 16 | D-Bus python bindings for use with python programs. |
802ea3af MT |
17 | end |
18 | ||
f0153b29 SS |
19 | thisapp = dbus-python-%{version} |
20 | ||
21 | source_dl = http://dbus.freedesktop.org/releases/dbus-python/ | |
802ea3af MT |
22 | |
23 | build | |
24 | requires | |
25 | dbus-devel | |
26 | dbus-glib-devel | |
27 | pkg-config | |
28 | python-devel | |
f0153b29 | 29 | python3-devel |
802ea3af MT |
30 | end |
31 | ||
32 | configure_options += \ | |
33 | --mandir=/usr/share/man | |
f0153b29 SS |
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 | |
802ea3af MT |
68 | end |
69 | ||
70 | packages | |
71 | package %{name} | |
1f9bc2f0 | 72 | |
f0153b29 SS |
73 | package python3-dbus |
74 | template PYTHON3 | |
75 | end | |
76 | ||
802ea3af MT |
77 | package %{name}-devel |
78 | template DEVEL | |
79 | end | |
1f9bc2f0 MT |
80 | |
81 | package %{name}-debuginfo | |
82 | template DEBUGINFO | |
83 | end | |
802ea3af | 84 | end |