%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} Name: python-PSI Version: 0.3 Release: 0.1.b2%{?dist} Summary: Shows real time system information in python Group: Development/Languages License: MIT URL: http://pypi.python.org/pypi/PSI/ Source0: http://bitbucket.org/chrismiles/psi/downloads/PSI-%{version}b2.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}b2 %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 examples %{python_sitearch}/* %changelog * Thu Mar 18 2010 Andrew Colin Kissa 0.3-0.1.b2 - upgrade to latest upstream - change package naming * Tue Jun 23 2009 Kushal Das 0.3b1.1-1 - Initial release in Fedora