%{!?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: 4%{?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 COPYING.LESSER AUTHORS %{python_sitelib}/* %changelog * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Apr 09 2009 Ramakrishna Reddy Yekulla <ramkrsna@fedoraproject.org> 1.0-2 - Adding correct upstream source, matching md5sums * Wed Apr 08 2009 Ramakrishna Reddy Yekulla <ramkrsna@fedoraproject.org> 1.0-1 - Initial RPM release