summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-httptools.spec64
-rw-r--r--sources1
3 files changed, 66 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..aff92fe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/httptools-0.6.1.tar.gz
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
diff --git a/sources b/sources
new file mode 100644
index 0000000..0633b36
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cb8a0c39723c10bdcf8c13d364d60b7c httptools-0.6.1.tar.gz