]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - python-dbus/python-dbus.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/amarx/ipfire-3.x.git] / python-dbus / python-dbus.nm
CommitLineData
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 6name = python-dbus
f0153b29 7version = 1.1.1
33619ff6 8release = 2
40c6b5f0 9
802ea3af
MT
10groups = System/Libraries
11url = http://www.freedesktop.org/software/dbus/
12license = MIT
13summary = Dbus Python Bindings.
40c6b5f0 14
802ea3af 15description
40c6b5f0 16 D-Bus python bindings for use with python programs.
802ea3af
MT
17end
18
f0153b29
SS
19thisapp = dbus-python-%{version}
20
21source_dl = http://dbus.freedesktop.org/releases/dbus-python/
802ea3af
MT
22
23build
24 requires
25 dbus-devel
26 dbus-glib-devel
27 pkg-config
28 python-devel
33619ff6 29 python3-devel >= 3.4
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
68end
69
70packages
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 84end