2006-07-18 21:28:06 +00:00
|
|
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
2006-07-18 17:11:08 +00:00
|
|
|
|
2006-11-07 14:26:44 +00:00
|
|
|
%define pyrex_version 0.9.3
|
2006-07-18 17:11:08 +00:00
|
|
|
%define dbus_glib_version 0.70
|
2006-07-18 20:16:35 +00:00
|
|
|
%define dbus_version 0.90
|
2006-07-18 17:11:08 +00:00
|
|
|
|
|
|
|
Summary: D-Bus Python Bindings
|
|
|
|
Name: dbus-python
|
|
|
|
Version: 0.70
|
2006-11-07 14:27:33 +00:00
|
|
|
Release: 7%{?dist}
|
2006-07-18 17:11:08 +00:00
|
|
|
URL: http://www.freedesktop.org/software/dbus/
|
2006-07-18 17:27:02 +00:00
|
|
|
Source0: http://dbus.freedesktop.org/releases/%{name}-%{version}.tar.gz
|
2006-07-18 17:11:08 +00:00
|
|
|
Patch0: dbus-python-0.70-fix-binary-modules-dir.patch
|
|
|
|
License: AFL/GPL
|
|
|
|
Group: System Environment/Libraries
|
2006-07-18 17:27:02 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2006-07-18 20:16:35 +00:00
|
|
|
BuildRequires: dbus-devel >= %{dbus_version}
|
2006-07-18 17:11:08 +00:00
|
|
|
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
|
|
|
|
BuildRequires: Pyrex >= %{pyrex_version}
|
2006-08-18 12:38:33 +00:00
|
|
|
Requires: libxml2-python
|
2006-07-18 17:11:08 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
D-Bus python bindings for use with python programs.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1 -b .fix-binary-modules-dir
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2006-07-18 20:09:22 +00:00
|
|
|
PKG_CONFIG_PATH=%{_libdir}/pkgconfig %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
2006-07-18 17:11:08 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%doc COPYING ChangeLog NEWS
|
|
|
|
|
2006-07-18 21:28:06 +00:00
|
|
|
%{python_sitearch}/dbus/*.so
|
|
|
|
%{python_sitearch}/dbus/*.py*
|
2006-07-18 17:11:08 +00:00
|
|
|
|
|
|
|
%changelog
|
2006-11-07 14:27:33 +00:00
|
|
|
* Tue Nov 7 2006 Matthias Clasen <mclasen@redhat.com> - 0.70-7
|
|
|
|
- Fix a typo in the spec file
|
|
|
|
|
2006-08-18 12:38:33 +00:00
|
|
|
* Fri Aug 18 2006 Karsten Hopp <karsten@redhat.com> - 0.70-6
|
|
|
|
- require libxml2-python for site-packages/dbus/introspect_parser.py
|
|
|
|
|
2006-07-20 17:56:50 +00:00
|
|
|
* Thu Jul 20 2006 Jesse Keating <jkeating@redhat.com> - 0.70-5
|
|
|
|
- Remove unnecessary obsoletes
|
|
|
|
|
2006-07-18 21:28:06 +00:00
|
|
|
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-4
|
|
|
|
- Try python_sitearch this time
|
|
|
|
|
2006-07-18 20:16:35 +00:00
|
|
|
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-3
|
|
|
|
- Add a BR on dbus-devel
|
|
|
|
|
2006-07-18 17:27:02 +00:00
|
|
|
* Tue Jul 18 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-2
|
|
|
|
- Spec file cleanups
|
2006-07-18 20:09:22 +00:00
|
|
|
- Add PKG_CONFIG_PATH
|
2006-07-18 17:27:02 +00:00
|
|
|
|
2006-07-18 17:11:08 +00:00
|
|
|
* Mon Jul 17 2006 John (J5) Palmieri <johnp@redhat.com> - 0.70-1
|
|
|
|
- Initial package import
|