1 |
%define module waitress |
2 |
|
3 |
Name: python-%module |
4 |
Version: 0.8.5 |
5 |
Release: %mkrel 5 |
6 |
Summary: Waitress WSGI server |
7 |
License: BSD |
8 |
Group: Development/Python |
9 |
URL: https://github.com/Pylons/waitress |
10 |
Source0: https://pypi.python.org/packages/source/w/%{module}/%{module}-%{version}.tar.gz |
11 |
BuildRequires: python-devel |
12 |
Buildrequires: python-setuptools |
13 |
BuildArch: noarch |
14 |
|
15 |
%description |
16 |
Waitress is meant to be a production-quality pure-Python WSGI server |
17 |
with very acceptable performance. It has no dependencies except ones |
18 |
which live in the Python standard library. It runs on CPython on Unix |
19 |
and Windows under Python 2.6+ and Python 3.2+. It is also known to run |
20 |
on PyPy 1.6.0+ on UNIX. It supports HTTP/1.0 and HTTP/1.1. |
21 |
|
22 |
%files |
23 |
%_bindir/waitress-serve |
24 |
%{python_sitelib}/%{module}* |
25 |
|
26 |
#-------------------------------------------------------------------- |
27 |
|
28 |
%prep |
29 |
%setup -q -n %{module}-%{version} |
30 |
|
31 |
%build |
32 |
CFLAGS="%{optflags}" python setup.py build |
33 |
|
34 |
%install |
35 |
%{__python} setup.py install --root $RPM_BUILD_ROOT --install-purelib=%{python_sitelib} |
36 |
|