]>
Commit | Line | Data |
---|---|---|
1a760d13 | 1 | # |
2 | %define dbus_version 0.91 | |
3 | %define expat_version 1:1.95.5 | |
4 | %define glib2_version 1:2.12.1 | |
5 | %define rname dbus-python | |
6 | # | |
7 | Summary: Python library for using D-BUS | |
029680e0 | 8 | Summary(pl.UTF-8): Biblioteka do używania D-BUS oparta o Pythona |
1a760d13 | 9 | Name: python-dbus |
10 | Version: 0.71 | |
1d57fb41 | 11 | Release: 6 |
1a760d13 | 12 | License: AFL v2.1 or GPL v2 |
13 | Group: Libraries | |
14 | Source0: http://dbus.freedesktop.org/releases/%{rname}-%{version}.tar.gz | |
15 | # Source0-md5: ee893bc87b784a8c2285f5041b5e7033 | |
16 | Patch0: dbus-python_fixes.patch | |
99333d3a | 17 | URL: http://www.freedesktop.org/Software/DBusBindings |
1a760d13 | 18 | BuildRequires: autoconf >= 2.52 |
19 | BuildRequires: automake | |
20 | BuildRequires: cpp | |
21 | BuildRequires: dbus-glib-devel >= 0.71 | |
22 | BuildRequires: libtool | |
23 | BuildRequires: pkgconfig | |
48fdf686 | 24 | BuildRequires: python-Pyrex >= 0.9.4.2 |
03599d26 | 25 | BuildRequires: python-devel >= 1:2.5 |
1a760d13 | 26 | BuildRequires: rpmbuild(macros) >= 1.268 |
27 | BuildRequires: rpm-pythonprov | |
28 | %pyrequires_eq python-modules | |
59878da5 | 29 | Requires: dbus-glib >= 0.71 |
1a760d13 | 30 | Requires: python-libxml2 >= 1:2.6.26 |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | D-BUS add-on library to integrate the standard D-BUS library with | |
35 | Python. | |
36 | ||
029680e0 | 37 | %description -l pl.UTF-8 |
1a760d13 | 38 | Dodatkowa biblioteka D-BUS do integracji standardowej biblioteki D-BUS |
39 | z Pythonem. | |
40 | ||
41 | %prep | |
42 | %setup -qn %{rname}-%{version} | |
43 | %patch0 -p1 | |
44 | ||
45 | %build | |
46 | python setup.py build | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | python setup.py install \ | |
52 | --root=$RPM_BUILD_ROOT \ | |
53 | --optimize=2 | |
54 | ||
55 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/dbus/*.{py,la,a} | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
3d663292 JB |
62 | # AFL not in common-licenses, so COPYING included |
63 | %doc AUTHORS COPYING ChangeLog NEWS | |
1a760d13 | 64 | %dir %{py_sitedir}/dbus |
65 | %attr(755,root,root) %{py_sitedir}/dbus/*.so | |
66 | %{py_sitedir}/dbus/*.py[co] | |
03599d26 | 67 | %{py_sitedir}/dbus_python-*.egg-info |