1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'dbus-python'
version = '1.1.1'
licenses = [License.LGPLv2_1Plus]
deps = ['dbus', 'dbus-glib']
autoreconf = True
files_python = [
'site-packages/_dbus_bindings%(pext)s',
'site-packages/_dbus_glib_bindings%(pext)s',
'site-packages/dbus/__init__.py',
'site-packages/dbus/_compat.py',
'site-packages/dbus/_dbus.py',
'site-packages/dbus/_expat_introspect_parser.py',
'site-packages/dbus/_version.py',
'site-packages/dbus/bus.py',
'site-packages/dbus/connection.py',
'site-packages/dbus/decorators.py',
'site-packages/dbus/exceptions.py',
'site-packages/dbus/gi_service.py',
'site-packages/dbus/glib.py',
'site-packages/dbus/gobject_service.py',
'site-packages/dbus/lowlevel.py',
'site-packages/dbus/mainloop/__init__.py',
'site-packages/dbus/mainloop/glib.py',
'site-packages/dbus/proxies.py',
'site-packages/dbus/server.py',
'site-packages/dbus/service.py',
'site-packages/dbus/types.py',
]
files_devel = [
'include/dbus-1.0/dbus/dbus-python.h',
'lib/pkgconfig/dbus-python.pc'
]
def prepare(self):
if self.config.target_distro_version == DistroVersion.REDHAT_6:
self.append_env = {'CFLAGS': ' -D_GNU_SOURCE=1'}
|