]>
Commit | Line | Data |
---|---|---|
1a760d13 | 1 | # |
a797bc9b | 2 | # TODO: |
3 | # - create devel subpackage? | |
4 | # - package documentation | |
5 | # | |
1a760d13 | 6 | %define dbus_version 0.91 |
7 | %define expat_version 1:1.95.5 | |
8 | %define glib2_version 1:2.12.1 | |
9 | %define rname dbus-python | |
10 | # | |
11 | Summary: Python library for using D-BUS | |
b52e4a1e | 12 | Summary(pl.UTF-8): Biblioteka do używania D-BUS oparta o Pythona |
1a760d13 | 13 | Name: python-dbus |
a797bc9b | 14 | Version: 0.80.2 |
15 | Release: 0.1 | |
1a760d13 | 16 | License: AFL v2.1 or GPL v2 |
7018692f | 17 | Group: Libraries/Python |
9c8b3a6a | 18 | Source0: http://dbus.freedesktop.org/releases/dbus-python/%{rname}-%{version}.tar.gz |
a797bc9b | 19 | # Source0-md5: 2807bc85215c995bd595e01edd9d2077 |
99333d3a | 20 | URL: http://www.freedesktop.org/Software/DBusBindings |
fc7ea16e | 21 | BuildRequires: autoconf >= 2.59c |
1a760d13 | 22 | BuildRequires: automake |
23 | BuildRequires: cpp | |
fc7ea16e | 24 | BuildRequires: dbus-devel >= 0.93 |
a797bc9b | 25 | BuildRequires: dbus-glib-devel >= 0.73 |
1a760d13 | 26 | BuildRequires: libtool |
27 | BuildRequires: pkgconfig | |
03599d26 | 28 | BuildRequires: python-devel >= 1:2.5 |
1a760d13 | 29 | BuildRequires: rpmbuild(macros) >= 1.268 |
30 | BuildRequires: rpm-pythonprov | |
31 | %pyrequires_eq python-modules | |
a797bc9b | 32 | Requires: dbus-glib >= 0.73 |
fc7ea16e | 33 | Requires: dbus-libs >= 0.93 |
1a760d13 | 34 | Requires: python-libxml2 >= 1:2.6.26 |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | D-BUS add-on library to integrate the standard D-BUS library with | |
39 | Python. | |
40 | ||
029680e0 | 41 | %description -l pl.UTF-8 |
1a760d13 | 42 | Dodatkowa biblioteka D-BUS do integracji standardowej biblioteki D-BUS |
43 | z Pythonem. | |
44 | ||
45 | %prep | |
46 | %setup -qn %{rname}-%{version} | |
1a760d13 | 47 | |
48 | %build | |
a797bc9b | 49 | %configure |
50 | %{__make} | |
1a760d13 | 51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
a797bc9b | 55 | %{__make} install \ |
56 | DESTDIR=$RPM_BUILD_ROOT | |
fc7ea16e JB |
57 | |
58 | %py_postclean | |
59 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/_dbus*.la | |
1a760d13 | 60 | |
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
3d663292 JB |
66 | # AFL not in common-licenses, so COPYING included |
67 | %doc AUTHORS COPYING ChangeLog NEWS | |
a797bc9b | 68 | %dir %{py_sitescriptdir}/dbus |
69 | %dir %{py_sitescriptdir}/dbus/mainloop | |
70 | %attr(755,root,root) %{py_sitedir}/_dbus*.so | |
71 | %{py_sitescriptdir}/*.py[co] | |
72 | %{py_sitescriptdir}/dbus/*.py[co] | |
73 | %{py_sitescriptdir}/dbus/mainloop/*.py[co] | |
74 | #%{py_sitedir}/dbus_python-*.egg-info | |
fc7ea16e JB |
75 | |
76 | # -devel ? | |
77 | #%{_includedir}/dbus-1.0/dbus/dbus-python.h | |
78 | #%{_pkgconfigdir}/dbus-python.pc |