[python-lettuce] Initial import

Bohuslav Kabrda bkabrda at fedoraproject.org
Fri Jun 29 13:00:14 UTC 2012


commit 84193050e74198e4ba9c3bb98c8a88d7696ad615
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Fri Jun 29 15:00:10 2012 +0200

    Initial import

 .gitignore          |    2 +
 python-lettuce.spec |   81 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    2 +
 3 files changed, 85 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..1614281 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/lettuce-0.2.5-tests.tgz
+/lettuce-0.2.5.tar.gz
diff --git a/python-lettuce.spec b/python-lettuce.spec
new file mode 100644
index 0000000..fccb332
--- /dev/null
+++ b/python-lettuce.spec
@@ -0,0 +1,81 @@
+# Created by pyp2rpm-0.5.1
+%global pypi_name lettuce
+
+Name:           python-%{pypi_name}
+Version:        0.2.5
+Release:        2%{?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}
+chmod a+x %{buildroot}%{python_sitelib}/%{pypi_name}/bin.py
+
+
+%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
+* Fri Jun 29 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 0.2.5-2
+- Fixed rpmlint warnings (mixed tabs/spaces, non-executable script).
+
+* Wed Jun 27 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 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 <bkabrda at redhat.com> - 0.2.4-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..e5092a5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+efe7e39b07ef8d64944b0c8930d985b6  lettuce-0.2.5-tests.tgz
+2352c761aa34423b773a104810201f15  lettuce-0.2.5.tar.gz


More information about the scm-commits mailing list