From 1c395a6008b5761401a88db2f72385f2b284d692 Mon Sep 17 00:00:00 2001
From: CoprDistGit <infra@openeuler.org>
Date: Fri, 25 Oct 2024 22:03:42 +0000
Subject: automatic import of python-httptools

---
 python-httptools.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 python-httptools.spec

(limited to 'python-httptools.spec')

diff --git a/python-httptools.spec b/python-httptools.spec
new file mode 100644
index 0000000..3c0fdaa
--- /dev/null
+++ b/python-httptools.spec
@@ -0,0 +1,64 @@
+%global _empty_manifest_terminate_build 0
+Name:		python-httptools
+Version:	0.6.1
+Release:	1
+Summary:	Fast HTTP parser
+License:	MIT
+URL:		https://github.com/MagicStack/httptools
+Source0:	https://files.pythonhosted.org/packages/67/1d/d77686502fced061b3ead1c35a2d70f6b281b5f723c4eff7a2277c04e4a2/httptools-0.6.1.tar.gz
+
+%description
+httptools is a Python binding for nodejs HTTP parser.
+
+%package -n python3-httptools
+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
+
+%build
+%py3_build build_ext \--use-system-http-parser
+
+%install
+%py3_install
+
+%check
+pushd vendor/http-parser
+  PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m unittest discover -v || :
+popd
+
+%files -n python3-httptools
+%license LICENSE
+%doc README.md
+%{python3_sitearch}/httptools-*.egg-info/
+%{python3_sitearch}/httptools/
+
+%changelog
+* Fri Dec 08 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 0.6.1-1
+- Update package to version 0.6.1
+
+* Tue Aug 01 2023 sunhui <sunhui@kylinos.cn> - 0.6.0-1
+- Update package to version 0.6.0
+
+* Mon Oct 31 2022 wangjunqi <wangjunqi@kylinos.cn> - 0.5.0-1
+- Update package to version 0.5.0
+
+* Wed Jul 7 2021 liuliang <liuliang1@kylinos.cn> - 0.1.2-1
+- Package init
-- 
cgit v1.2.3