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