summaryrefslogtreecommitdiff
path: root/python-httptools.spec
blob: 3c0fdaa2474b5d13c87ff7175754284cd835b73d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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