# Created by pyp2rpm-0.5.1 %global pypi_name lettuce Name: python-%{pypi_name} Version: 0.2.5 Release: 1%{?dist} Summary: Behaviour Driven Development for Python License: GPLv3+ URL: http://lettuce.it/ Source0: http://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz # to get tests: # git clone https://github.com/gabrielfalcao/lettuce.git && cd lettuce # git checkout 0.2.5 && tar -czf lettuce-0.2.5-tests.tgz tests/ Source1: %{pypi_name}-%{version}-tests.tgz BuildArch: noarch Requires: mailcap Requires: python-fuzzywuzzy # If file /etc/mime.types (from mailcap package) is not present, Python returns javascript mimetype # 'application/x-javascript'. This is IMHO wrong behaviour, as IANA specifies application/javascript. # application/x-javascript causes 3 tests to fail, so requiring mailcap for now. # Report to Python: http://bugs.python.org/issue15199 BuildRequires: mailcap BuildRequires: python2-devel BuildRequires: python-django BuildRequires: python-fuzzywuzzy BuildRequires: python-lxml BuildRequires: python-mock BuildRequires: python-mox BuildRequires: python-nose BuildRequires: python-setuptools BuildRequires: python-sure BuildRequires: python-tornado %description Lettuce is a Behavior Driven Development tool for Python, 100%% inspired on Cucumber - BDD with elegance and joy. %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} %check tar xzf %{SOURCE1} export PYTHONPATH=$(pwd) nosetests -s tests/unit nosetests -s tests/functional nosetests -s tests/integration %files %doc README.md COPYING %{_bindir}/lettuce %{python_sitelib}/%{pypi_name} %{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Wed Jun 27 2012 Bohuslav Kabrda - 0.2.5-1 - Update to version 0.2.5. - Fixed license to GPLv3+. - Fixed URL tag. - Removed patch that made it upstream. * Wed Jun 20 2012 Bohuslav Kabrda - 0.2.4-1 - Initial package.