From 79163674cf2c79d1ac80f9aa20b59060bcb7c0ca12de77a5f3b2ca10d50dabec Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 6 Jan 2024 20:50:42 +0000 Subject: [PATCH 1/2] - update to 0.6.1: * Explicit Python 3.12 support and build wheels, change min version to 3.8 * Do not install the *.c sources in wheels - update to 0.6.0 (bsc#1212582, CVE-2023-30589): * Bump bundled llhttp to 8.1.1 * Fixes CVE-2023-30589 - restrict to older Cython - Update to version 0.5.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httptools?expand=0&rev=12 --- httptools-0.5.0.tar.gz | 3 --- httptools-0.6.1.tar.gz | 3 +++ python-httptools.changes | 15 +++++++++++++-- python-httptools.spec | 10 +++------- 4 files changed, 19 insertions(+), 12 deletions(-) delete mode 100644 httptools-0.5.0.tar.gz create mode 100644 httptools-0.6.1.tar.gz diff --git a/httptools-0.5.0.tar.gz b/httptools-0.5.0.tar.gz deleted file mode 100644 index 3df6116..0000000 --- a/httptools-0.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20e4fb14552ff1528f8754384a3c15dc67f89349932234f88aa2ca55b7e18696 -size 14922 diff --git a/httptools-0.6.1.tar.gz b/httptools-0.6.1.tar.gz new file mode 100644 index 0000000..9dbaac3 --- /dev/null +++ b/httptools-0.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20894c98b3fb19e498c520ec398f2c8f6967eee6ac56aa05b91edaca37c9e03d +size 15173 diff --git a/python-httptools.changes b/python-httptools.changes index b78bc2c..a55bbda 100644 --- a/python-httptools.changes +++ b/python-httptools.changes @@ -1,7 +1,18 @@ +------------------------------------------------------------------- +Sat Jan 6 20:48:58 UTC 2024 - Dirk Müller + +- update to 0.6.1: + * Explicit Python 3.12 support and build wheels, change min + version to 3.8 + * Do not install the *.c sources in wheels +- update to 0.6.0 (bsc#1212582, CVE-2023-30589): + * Bump bundled llhttp to 8.1.1 + * Fixes CVE-2023-30589 + ------------------------------------------------------------------- Sun Aug 13 19:15:04 UTC 2023 - Dirk Müller -- restrict to older Cython +- restrict to older Cython ------------------------------------------------------------------- Fri Apr 21 12:26:23 UTC 2023 - Dirk Müller @@ -16,7 +27,7 @@ Thu Apr 13 22:41:54 UTC 2023 - Matej Cepl ------------------------------------------------------------------- Wed Oct 12 03:35:36 UTC 2022 - Yogalakshmi Arunachalam -- Update to version 0.5.0 +- Update to version 0.5.0 * Bump bundled llhttp to 6.0.9 * fixes CVE-2022-32213, CVE-2022-32214, CVE-2022-32215 (by @nlsj1985 in 56d6a16 for #83) diff --git a/python-httptools.spec b/python-httptools.spec index 6ea1009..c05d525 100644 --- a/python-httptools.spec +++ b/python-httptools.spec @@ -1,7 +1,7 @@ # # spec file for package python-httptools # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,11 +16,9 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-httptools -Version: 0.5.0 +Version: 0.6.1 Release: 0 Summary: Python framework independent HTTP protocol utils License: MIT @@ -53,9 +51,7 @@ mv vendor/http-parser*/ vendor/http-parser/ %install %python_install -%{python_expand rm %{buildroot}%{$python_sitearch}/httptools/parser/*parser.c; -%fdupes %{buildroot}%{$python_sitearch} -} +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check %if 0%{suse_version} >= 1550 From aa0cc446d15e7afde568d37914d81b64e81c7294b6787ea49cb635f1c0aea67e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 6 Jan 2024 20:52:50 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httptools?expand=0&rev=13 --- python-httptools.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/python-httptools.spec b/python-httptools.spec index c05d525..ae9edcf 100644 --- a/python-httptools.spec +++ b/python-httptools.spec @@ -27,9 +27,12 @@ URL: https://github.com/MagicStack/httptools Source0: https://github.com/MagicStack/httptools/archive/v%{version}.tar.gz#/httptools-%{version}.tar.gz Source1: https://github.com/nodejs/llhttp/archive/refs/tags/release/v6.0.6.tar.gz#/llhttp-release-v6.0.6.tar.gz Source2: https://github.com/nodejs/http-parser/archive/refs/tags/v2.9.4.tar.gz#/http-parser-2.9.4.tar.gz -BuildRequires: %{python_module Cython >= 0.29.24 with %python-Cython < 3} +# BuildRequires: %{python_module Cython >= 0.29.24 with %python-Cython < 3} +BuildRequires: %{python_module Cython} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %python_subpackages @@ -47,10 +50,10 @@ tar -xzf '%{SOURCE2}' -C vendor mv vendor/http-parser*/ vendor/http-parser/ %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -63,6 +66,6 @@ mv vendor/http-parser*/ vendor/http-parser/ %doc README.md %license LICENSE %{python_sitearch}/httptools -%{python_sitearch}/httptools-%{version}*-info +%{python_sitearch}/httptools-%{version}.dist-info %changelog