%define pyver %(python -c 'import sys ; print sys.version[:3]') %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_pytho\n_lib()")} %define pyrex_versio 0.9.3 %define dbus_glib_version 0.70 Summary: D-Bus Python Bindings Name: dbus-python Version: 0.70 Release: 1 URL: http://www.freedesktop.org/software/dbus/ Source0: %{name}-%{version}.tar.gz Patch0: dbus-python-0.70-fix-binary-modules-dir.patch License: AFL/GPL Group: System Environment/Libraries BuildRoot: %{_tmppath}/%{name}-root BuildRequires: dbus-glib-devel >= %{dbus_glib_version} BuildRequires: Pyrex >= %{pyrex_version} Obsoletes: dbus-python < 0.90 %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} %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc COPYING ChangeLog NEWS %{python_sitelib}/dbus/*.so %{python_sitelib}/dbus/*.py* %changelog * Mon Jul 17 2006 John (J5) Palmieri - 0.70-1 - Initial package import