blob: 963ea501296cd91b847ae89d6f18b65afadbe5e8 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
Name: dbus-python
Version: 1.1.1
Release: 0
Summary: Python bindings for D-Bus
License: MIT
Group: Development/Libraries/Python
Url: http://www.freedesktop.org/wiki/Software/DBusBindings/
Source0: http://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
Requires: libxml2-python
Requires: python-xml
Requires: dbus >= %( echo `rpm -q --queryformat '%{VERSION}' dbus`)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
D-Bus python bindings for use with python programs.
%package devel
Summary: Python bindings for D-Bus
Group: Development/Libraries/Python
Requires: dbus-python = %{version}
Requires: dbus >= %( echo `rpm -q --queryformat '%{VERSION}' dbus`)
Requires: dbus-devel >= %( echo `rpm -q --queryformat '%{VERSION}' dbus-devel`)
%description devel
Developer files for Python bindings for D-Bus.
%prep
%setup -q
%build
export CFLAGS="%{optflags} -fstack-protector -fno-strict-aliasing -fPIC"
%configure --docdir=%{_docdir}/dbus-python
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
# Install additional docs
%remove_docs
%fdupes -s %{buildroot}
%files
%license COPYING
%defattr(-,root,root,-)
%{python_sitelib}/*
%{python_sitearch}/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/dbus-1.0/dbus/dbus-python.h
%{_libdir}/pkgconfig/dbus-python.pc
%changelog
|