%global upstream_name gunicorn
Name: python-gunicorn
Version: 0.14.6
Release: 1%{?dist}
Summary: Python WSGI application server
Group: System Environment/Daemons
License: MIT
URL: http://gunicorn.org/
Source0: http://pypi.python.org/packages/source/g/gunicorn/gunicorn-%{version}.tar.gz
# https://github.com/benoitc/gunicorn/issues/390
# https://github.com/benoitc/gunicorn/commit/4b478e1a6651f33b36e30294c5a320388ed527f4
Patch1: %{name}-0.14.6-LimitRequestLine.patch
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-nose
%description
Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It uses the
pre-fork worker model, ported from Ruby's Unicorn project. It supports WSGI,
Django, and Paster applications.
%prep
%setup -q -n %{upstream_name}-%{version}
%patch1 -p1
%build
%{__python} setup.py build
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%check
%{__python} setup.py test
%files
%doc LICENSE NOTICE README.rst THANKS
%{python_sitelib}/%{upstream_name}*
%{_bindir}/%{upstream_name}
%{_bindir}/%{upstream_name}_django
%{_bindir}/%{upstream_name}_paster
%changelog
* Mon Aug 20 2012 Dan Callaghan <dcallagh@redhat.com> - 0.14-6-2
- fix for LimitRequestLine test failure (upstream issue #390)
* Wed Aug 01 2012 Dan Callaghan <dcallagh@redhat.com> - 0.14.6-1
- upstream bugfix release 0.14.6
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Mon Jun 25 2012 Dan Callaghan <dcallagh@redhat.com> - 0.14.5-1
- upstream bugfix release 0.14.5
* Thu Jun 07 2012 Dan Callaghan <dcallagh@redhat.com> - 0.14.3-1
- updated to upstream release 0.14.3
* Wed Feb 08 2012 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-3
- renamed package to python-gunicorn, and other minor fixes
* Tue Jan 31 2012 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-2
- patch for failing test (gunicorn issue #294)
* Mon Jan 30 2012 Dan Callaghan <dcallagh@redhat.com> - 0.13.4-1
- initial version