Blob Blame History Raw
%{!?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.3.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
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-0.3.b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-0.2.b2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild

* Thu Mar 18 2010 Andrew Colin Kissa <andrew@topdog.za.net> 0.3-0.1.b2
- upgrade to latest upstream
- change package naming

* Tue Jun 23 2009 Kushal Das <kushal@fedoraproject.org> 0.3b1.1-1
- Initial release in Fedora