3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: HTTP/2 framing layer for Python 2
8 Summary(pl.UTF-8): Warstwa ramek HTTP/2 dla Pythona 2
9 Name: python-hyperframe
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/hyperframe/
15 Source0: https://files.pythonhosted.org/packages/source/h/hyperframe/hyperframe-%{version}.tar.gz
16 # Source0-md5: 6919183242feb26d8bce3b4cba81defd
17 URL: https://pypi.org/project/hyperframe/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
22 BuildRequires: python-pytest
26 BuildRequires: python3-modules >= 1:3.4
27 BuildRequires: python3-setuptools
29 BuildRequires: python3-pytest
32 BuildRequires: rpm-pythonprov
33 BuildRequires: rpmbuild(macros) >= 1.714
34 Requires: python-modules >= 1:2.7
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 This library contains the HTTP/2 framing code used in the hyper
40 project. It provides a pure-Python codebase that is capable of
41 decoding a binary stream into HTTP/2 frames.
43 %description -l pl.UTF-8
44 Ta biblioteka zawiera kod obsługujący ramki HTTP/2, używany w
45 projekcie hyper. Zawiera czysto pythonową implementację, potrafiącą
46 dekodować strumień binary na ramki HTTP/2.
48 %package -n python3-hyperframe
49 Summary: HTTP/2 framing layer for Python 3
50 Summary(pl.UTF-8): Warstwa ramek HTTP/2 dla Pythona 3
51 Group: Libraries/Python
52 Requires: python3-modules >= 1:3.4
54 %description -n python3-hyperframe
55 This library contains the HTTP/2 framing code used in the hyper
56 project. It provides a pure-Python codebase that is capable of
57 decoding a binary stream into HTTP/2 frames.
59 %description -n python3-hyperframe -l pl.UTF-8
60 Ta biblioteka zawiera kod obsługujący ramki HTTP/2, używany w
61 projekcie hyper. Zawiera czysto pythonową implementację, potrafiącą
62 dekodować strumień binary na ramki HTTP/2.
65 %setup -q -n hyperframe-%{version}
72 %{__python} -m pytest test
80 %{__python3} -m pytest test
85 rm -rf $RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
102 %defattr(644,root,root,755)
103 %doc CONTRIBUTORS.rst HISTORY.rst LICENSE README.rst
104 %{py_sitescriptdir}/hyperframe
105 %{py_sitescriptdir}/hyperframe-%{version}-py*.egg-info
109 %files -n python3-hyperframe
110 %defattr(644,root,root,755)
111 %doc CONTRIBUTORS.rst HISTORY.rst LICENSE README.rst
112 %{py3_sitescriptdir}/hyperframe
113 %{py3_sitescriptdir}/hyperframe-%{version}-py*.egg-info