blob: 3d1ad4093509b987ec99cc2c4d11b6b62df45580 (
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
|
Name: dbus-python
Version: 1.1.1
Release: 0
Summary: Python bindings for D-Bus
License: MIT
Group: System/Libraries
Url: http://www.freedesktop.org/wiki/Software/DBusBindings/
Source0: http://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz
Source1001: dbus-python.manifest
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
Requires: libxml2-python
Requires: python-xml
%description
D-Bus python bindings for use with python programs.
%package devel
Summary: Python bindings for D-Bus
Requires: dbus-python = %{version}
%description devel
Developer files for Python bindings for D-Bus.
%prep
%setup -q
cp %{SOURCE1001} .
%build
export CFLAGS="%{optflags} -fstack-protector -fno-strict-aliasing -fPIC"
%configure --docdir=%{_docdir}/dbus-python
make %{?_smp_mflags}
%install
%make_install
%remove_docs
%fdupes -s %{buildroot}
%files
%manifest %{name}.manifest
%license COPYING
%defattr(-,root,root,-)
%{python_sitelib}/*
%{python_sitearch}/*
%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_includedir}/dbus-1.0/dbus/dbus-python.h
%{_libdir}/pkgconfig/dbus-python.pc
%changelog
|