Compare commits

1 Commits
main ... 1.1

4 changed files with 16 additions and 26 deletions

BIN
httptools-0.5.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
httptools-0.6.1.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,14 +1,3 @@
-------------------------------------------------------------------
Sat Jan 6 20:48:58 UTC 2024 - Dirk Müller <dmueller@suse.com>
- 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 <dmueller@suse.com> Sun Aug 13 19:15:04 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-httptools # spec file for package python-httptools
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,11 @@
# #
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-httptools Name: python-httptools
Version: 0.6.1 Version: 0.5.0
Release: 0 Release: 0
Summary: Python framework independent HTTP protocol utils Summary: Python framework independent HTTP protocol utils
License: MIT License: MIT
@@ -27,12 +29,9 @@ URL: https://github.com/MagicStack/httptools
Source0: https://github.com/MagicStack/httptools/archive/v%{version}.tar.gz#/httptools-%{version}.tar.gz 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 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 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 pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
%python_subpackages %python_subpackages
@@ -50,11 +49,13 @@ tar -xzf '%{SOURCE2}' -C vendor
mv vendor/http-parser*/ vendor/http-parser/ mv vendor/http-parser*/ vendor/http-parser/
%build %build
%pyproject_wheel %python_build
%install %install
%pyproject_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %{python_expand rm %{buildroot}%{$python_sitearch}/httptools/parser/*parser.c;
%fdupes %{buildroot}%{$python_sitearch}
}
%check %check
%if 0%{suse_version} >= 1550 %if 0%{suse_version} >= 1550
@@ -66,6 +67,6 @@ mv vendor/http-parser*/ vendor/http-parser/
%doc README.md %doc README.md
%license LICENSE %license LICENSE
%{python_sitearch}/httptools %{python_sitearch}/httptools
%{python_sitearch}/httptools-%{version}.dist-info %{python_sitearch}/httptools-%{version}*-info
%changelog %changelog