15
0
forked from pool/python-bjoern
Files
python-bjoern/python-bjoern.spec
Tomáš Chvátal 3113b30c1a Accepting request 704977 from home:pgajdos
- version update to 3.0.0
  *  Fix #91: Support for SIGTERM/SIGINT handling
  *  Fix #144: Proper handling of EAGAIN/EINTR (Adam Bouhenguel)
  *  Fix #138: Use Latin1 encoding for unicode strings
  *  Fix #139: Never use chunked responses for HTTP 204 and 304
  *  Fix #133: Segmentation fault with very long HTTP headers (@szabolcsbalogh)
  *  Fix #130: filewrapper must work with any read()able object
  *  Fix #128: Fix support for io.BytesIO and other pseudo-files
  *  Fix sendfile on BSD and OSX
  *  Fix #122: WSGI environ SERVER_PORT is now a str (Simon Biewald)
  *  Fix #122: WSGI environ SERVER_{PORT,HOST} are now always set (Simon Biewald)
  *  Fix #125: Missing GIL locking (@szabolcsbalogh)
  *  Fix Python 2 segfault
  *  Fix segfault with HTTP header (晏旭瑞)
  *  Fix segfault with large HTTP header
  *  Fix Python 3 unicode header handling
  *  Fix setup.py and `bjoern.version` attribute
  *  Python 3 support (Hua Yanghao, Isaiah Peng). Note that due to the size
     of this update, version 2.0.0 may be less stable than version 1.4.3.
- deleted patches
  - reproducible.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/704977
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bjoern?expand=0&rev=7
2019-05-24 07:54:03 +00:00

60 lines
1.7 KiB
RPMSpec

#
# spec file for package python-bjoern
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-bjoern
Version: 3.0.0
Release: 0
Summary: A screamingly fast Python 2 + 3 WSGI server written in C
License: BSD-2-Clause
Group: Development/Languages/Python
Url: https://github.com/jonashaag/bjoern
Source: https://files.pythonhosted.org/packages/source/b/bjoern/bjoern-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: libev-devel
BuildRequires: python-rpm-macros
%python_subpackages
%description
A screamingly fast Python 2 + 3 WSGI server written in C.
%prep
%setup -q -n bjoern-%{version}
%build
export CFLAGS="%{optflags}"
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
# there are no unit tests, but e. g. benchmark tests
# using ab
%files %{python_files}
%doc CHANGELOG README.rst
%license LICENSE
%{python_sitearch}/*
%changelog