Dirk Mueller 2024-01-06 20:52:50 +00:00 committed by Git OBS Bridge
parent 79163674cf
commit aa0cc446d1

View File

@ -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