diff --git a/httptools-0.1.2.tar.gz b/httptools-0.1.2.tar.gz deleted file mode 100644 index e3a9296829582b14246875d5c25045f1bd1afd1a..0000000000000000000000000000000000000000 Binary files a/httptools-0.1.2.tar.gz and /dev/null differ diff --git a/httptools-0.5.0.tar.gz b/httptools-0.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..50504fe43e3e9c5d02d6d1a1a50828bcbd7b1069 Binary files /dev/null and b/httptools-0.5.0.tar.gz differ diff --git a/python-httptools.spec b/python-httptools.spec index c50aaa86c574e7b17f4a010f515a0d4084ca5b28..366f1c8671201695fbb6106670b74e8940331363 100644 --- a/python-httptools.spec +++ b/python-httptools.spec @@ -1,33 +1,37 @@ -Name: python-httptools -Version: 0.1.2 -Release: 1 -Summary: Fast HTTP parser - -License: MIT -URL: https://github.com/MagicStack/httptools -Source0: https://github.com/MagicStack/httptools/archive/v0.1.2/httptools-0.1.2.tar.gz - -BuildRequires: gcc -BuildRequires: http-parser-devel +%global _empty_manifest_terminate_build 0 +Name: python-httptools +Version: 0.5.0 +Release: 1 +Summary: Fast HTTP parser +License: MIT +URL: https://github.com/MagicStack/httptools +Source0: https://files.pythonhosted.org/packages/04/4a/4b1d0f839a3911352632998305c78af09f2df980c728eb365ca09c800524/httptools-0.5.0.tar.gz %description httptools is a Python binding for nodejs HTTP parser. %package -n python3-httptools -Summary: %{summary} -%{?python_provide:%python_provide python3-httptools} -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-wheel -BuildRequires: python3-Cython +Summary: Fast HTTP parser +Provides: python-httptools +BuildRequires: gcc +BuildRequires: http-parser-devel +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-wheel +BuildRequires: python3-Cython %description -n python3-httptools httptools is a Python binding for nodejs HTTP parser. +%package help +Summary: Development documents and examples for httptools +Provides: python3-httptools-doc + +%description help +httptools is a Python binding for nodejs HTTP parser. + %prep %autosetup -n httptools-%{version} -p1 -rm -vrf vendor/ -sed -i 's#../../vendor/http-parser/http_parser.h#http_parser.h#' ./httptools/parser/cparser.pxd %build %py3_build build_ext \--use-system-http-parser @@ -36,7 +40,7 @@ sed -i 's#../../vendor/http-parser/http_parser.h#http_parser.h#' ./httptools/par %py3_install %check -pushd tests +pushd vendor/http-parser PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m unittest discover -v || : popd @@ -47,5 +51,9 @@ popd %{python3_sitearch}/httptools/ %changelog +* Mon Oct 31 2022 wangjunqi - 0.5.0-1 +- Update package to version 0.5.0 + * Wed Jul 7 2021 liuliang - 0.1.2-1 - Package init +