From 3113b30c1a4558381281622a770d7a0644e72ada47bf44a7481140dba8007b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 24 May 2019 07:54:03 +0000 Subject: [PATCH] Accepting request 704977 from home:pgajdos MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- bjoern-1.4.2.tar.gz | 3 --- bjoern-3.0.0.tar.gz | 3 +++ python-bjoern.changes | 25 +++++++++++++++++++++++++ python-bjoern.spec | 42 ++++++++++++++++++++++++------------------ reproducible.patch | 28 ---------------------------- 5 files changed, 52 insertions(+), 49 deletions(-) delete mode 100644 bjoern-1.4.2.tar.gz create mode 100644 bjoern-3.0.0.tar.gz delete mode 100644 reproducible.patch diff --git a/bjoern-1.4.2.tar.gz b/bjoern-1.4.2.tar.gz deleted file mode 100644 index d84e94d..0000000 --- a/bjoern-1.4.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5892ee00b04c45e0093835c9e179e52370d42add224a4a03d937f8306a54d84e -size 25997 diff --git a/bjoern-3.0.0.tar.gz b/bjoern-3.0.0.tar.gz new file mode 100644 index 0000000..6f6dd1f --- /dev/null +++ b/bjoern-3.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e4461c7306c4f5def03223dce3b0f16ad26bc1718240e59a5e5472c2701027a +size 39051 diff --git a/python-bjoern.changes b/python-bjoern.changes index 0a53e34..4123179 100644 --- a/python-bjoern.changes +++ b/python-bjoern.changes @@ -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 diff --git a/python-bjoern.spec b/python-bjoern.spec index 77e42cb..d1e4d9f 100644 --- a/python-bjoern.spec +++ b/python-bjoern.spec @@ -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 diff --git a/reproducible.patch b/reproducible.patch deleted file mode 100644 index b78f823..0000000 --- a/reproducible.patch +++ /dev/null @@ -1,28 +0,0 @@ -merged upstream - -commit 7e4227ea7e789a8e917b52c43adda3318c4062bb -Author: Bernhard M. Wiedemann -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',