%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: python-achoo Version: 1.0 Release: 1%{?dist} Summary: A fluent interface for testing Python objects Group: Development/Languages License: LGPLv3 URL: http://web.quuxo.com/products/achoo/ Source0: http://web.quuxo.com/products/achoo/achoo-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel python-setuptools %description Achoo is a fluent interface for unit testing Python objects. Achoo makes it easy to make assertions about the properties and behaviours of Python objects. For example, is this object equal to this other one? Does calling this function with these arguments raise an error? More Infomation on fluent from here http://www.martinfowler.com/bliki/FluentInterface.html %prep %setup -q -n Achoo-%{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 PKG-INFO %{python_sitelib}/* %changelog * Wed Apr 08 2009 Ramakrishna Reddy Yekulla 1.0-1 - Initial RPM release