%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") Summary: A simple, transparent and easy to extend xorg parser Name: x-kit Version: 0.4.2 Release: 1%{?dist} Source0: http://code.launchpad.net/xorgparser/trunk/0.4.2/+download/%{name}-%{version}.tar.gz License: LGPLv2 Group: Development/Libraries Url: https://launchpad.net/x-kit BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Buildrequires: python-devel Requires: python BuildArch: noarch %description A simple, transparent and easy to extend xorg parser %prep %setup -q %build python setup.py build %install rm -rf %{buildroot} python setup.py install --root=%{buildroot} --record=INSTALLED_FILES rm -rf %{buildroot}%{python_sitelib}/xkit-0.0.0-py2.5.egg-info %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS COPYING README PKG-INFO examples tests %{python_sitelib}/XKit %changelog * Tue Apr 07 2009 Rahul Sundaram - 0.4.2-1 - Initial spec file.