forked from pool/python-httptools
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httptools?expand=0&rev=13
This commit is contained in:
parent
79163674cf
commit
aa0cc446d1
@ -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
|
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
|
||||||
@ -47,10 +50,10 @@ tar -xzf '%{SOURCE2}' -C vendor
|
|||||||
mv vendor/http-parser*/ vendor/http-parser/
|
mv vendor/http-parser*/ vendor/http-parser/
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@ -63,6 +66,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}*-info
|
%{python_sitearch}/httptools-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user