diff --git a/python-waitress.changes b/python-waitress.changes index 3c09994..4f99fd3 100644 --- a/python-waitress.changes +++ b/python-waitress.changes @@ -1,3 +1,29 @@ +------------------------------------------------------------------- +Tue May 31 03:16:03 UTC 2022 - Arun Persaud + +- specfile: + * be more specific in %files section + +- update to version 2.1.2: + * Bugfix + + When expose_tracebacks is enabled waitress would fail to + properly encode unicode thereby causing another error during + error handling. See https://github.com/Pylons/waitress/pull/378 + + Header length checking had a calculation that was done + incorrectly when the data was received across multple socket + reads. This calculation has been corrected, and no longer will + Waitress send back a 413 Request Entity Too Large. See + https://github.com/Pylons/waitress/pull/376 + * Security Bugfix + + in 2.1.0 a new feature was introduced that allowed the WSGI + thread to start sending data to the socket. However this + introduced a race condition whereby a socket may be closed in + the sending thread while the main thread is about to call + select() therey causing the entire application to be taken down. + Waitress will no longer close the socket in the WSGI thread, + instead waking up the main thread to cleanup. See + https://github.com/Pylons/waitress/pull/377 + ------------------------------------------------------------------- Thu Mar 17 17:42:42 UTC 2022 - Dirk Müller diff --git a/python-waitress.spec b/python-waitress.spec index c6a64a8..e0344de 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -16,24 +16,21 @@ # -%if 0%{?suse_version} > 1500 -%bcond_without libalternatives -%else -%bcond_with libalternatives -%endif - %global flavor @BUILD_FLAVOR@%{nil} - %if "%{flavor}" == "doc" %define psuffix -doc %endif %if "%{flavor}" == "" %define psuffix %{nil} %endif - %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%if 0%{?suse_version} > 1500 +%bcond_without libalternatives +%else +%bcond_with libalternatives +%endif Name: python-waitress%{psuffix} -Version: 2.1.1 +Version: 2.1.2 Release: 0 Summary: Waitress WSGI server License: ZPL-2.1 @@ -46,13 +43,14 @@ Source1: python3.inv Source2: fetch-intersphinx-inventories.sh BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 +BuildArch: noarch %if "%{flavor}" == "" BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} %if %{with libalternatives} -Requires: alts BuildRequires: alts +Requires: alts %else Requires(post): update-alternatives Requires(postun):update-alternatives @@ -65,7 +63,6 @@ BuildRequires: python3-pylons-sphinx-themes BuildRequires: python3-waitress = %{version} Recommends: python3-waitress = %{version} %endif -BuildArch: noarch %python_subpackages %if "%{flavor}" == "" @@ -106,7 +103,9 @@ http://docs.pylonsproject.org/projects/waitress/en/latest/ . %license LICENSE.txt %doc COPYRIGHT.txt README.rst %python_alternative %{_bindir}/waitress-serve -%{python_sitelib}/* +%dir %{python_sitelib}/waitress +%{python_sitelib}/waitress/* +%{python_sitelib}/waitress-%{version}-py*.egg-info %else diff --git a/waitress-2.1.1.tar.gz b/waitress-2.1.1.tar.gz deleted file mode 100644 index 856e7e1..0000000 --- a/waitress-2.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e2e60576cf14a1539da79f7b7ee1e79a71e64f366a0b47db54a15e971f57bb16 -size 178336 diff --git a/waitress-2.1.2.tar.gz b/waitress-2.1.2.tar.gz new file mode 100644 index 0000000..24a0211 --- /dev/null +++ b/waitress-2.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:780a4082c5fbc0fde6a2fcfe5e26e6efc1e8f425730863c04085769781f51eba +size 179823