%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-psi Version: 0.3b1.1 Release: 1%{?dist} Summary: Shows real time system information in python Group: Development/Languages License: MIT URL: http://pypi.python.org/pypi/PSI/ Source0: http://pypi.python.org/packages/source/P/PSI/PSI-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel, python-setuptools-devel %description psi is a Python module providing direct access to real-time system and process information. %prep %setup -q -n PSI-%{version} %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README LICENSE TODO DESIGN %{python_sitearch}/* %changelog * Tue Jun 23 2009 Kushal Das 0.3b1.1-1 - Initial release in Fedora