15
0
forked from pool/python-bjoern

Accepting request 705184 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/705184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bjoern?expand=0&rev=7
This commit is contained in:
2019-05-24 09:33:39 +00:00
committed by Git OBS Bridge
5 changed files with 52 additions and 49 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5892ee00b04c45e0093835c9e179e52370d42add224a4a03d937f8306a54d84e
size 25997

3
bjoern-3.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e4461c7306c4f5def03223dce3b0f16ad26bc1718240e59a5e5472c2701027a
size 39051

View File

@@ -1,3 +1,28 @@
-------------------------------------------------------------------
Thu May 23 06:17:46 UTC 2019 - pgajdos@suse.com
- 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)
-------------------------------------------------------------------
Tue Mar 13 03:20:57 UTC 2018 - bwiedemann@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-bjoern
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@@ -12,42 +12,48 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-bjoern
Version: 1.4.2
Version: 3.0.0
Release: 0
Summary: A screamingly fast Python WSGI server written in C
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: http://pypi.python.org/packages/source/b/bjoern/bjoern-%{version}.tar.gz
Patch0: reproducible.patch
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-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
BuildRequires: python-rpm-macros
%python_subpackages
%description
A screamingly fast Python WSGI server written in C depending on libev.
A screamingly fast Python 2 + 3 WSGI server written in C.
%prep
%setup -q -n bjoern-%{version}
%patch0 -p1
%build
CFLAGS="%{optflags}" python setup.py build
export CFLAGS="%{optflags}"
%python_build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%files
%defattr(-,root,root,-)
%doc LICENSE
%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

View File

@@ -1,28 +0,0 @@
merged upstream
commit 7e4227ea7e789a8e917b52c43adda3318c4062bb
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
Date: Mon Jun 5 16:41:04 2017 +0200
sort input files
when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would usually differ.
See https://reproducible-builds.org/ for why this matters.
Index: bjoern-1.4.2/setup.py
===================================================================
--- bjoern-1.4.2.orig/setup.py
+++ bjoern-1.4.2/setup.py
@@ -3,7 +3,7 @@ import glob
from distutils.core import setup, Extension
SOURCE_FILES = [os.path.join('http-parser', 'http_parser.c')] + \
- glob.glob(os.path.join('bjoern', '*.c'))
+ sorted(glob.glob(os.path.join('bjoern', '*.c')))
bjoern_extension = Extension(
'_bjoern',