[packages/python3-hyperframe] - python-hyperframe.spec updated to 6.0.1 for python 3.6.1+

qboosh qboosh at pld-linux.org
Wed Apr 27 19:39:12 CEST 2022


commit 1c601247ad6742b9ebc3bd3a2874827bd3fea527
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Apr 27 19:39:30 2022 +0200

    - python-hyperframe.spec updated to 6.0.1 for python 3.6.1+

 python-hyperframe.spec  | 117 ------------------------------------------------
 python3-hyperframe.spec |  90 +++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 117 deletions(-)
---
diff --git a/python-hyperframe.spec b/python-hyperframe.spec
deleted file mode 100644
index 6642124..0000000
--- a/python-hyperframe.spec
+++ /dev/null
@@ -1,117 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	HTTP/2 framing layer for Python 2
-Summary(pl.UTF-8):	Warstwa ramek HTTP/2 dla Pythona 2
-Name:		python-hyperframe
-# keep 5.x here for python2 support
-Version:	5.2.0
-Release:	5
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/hyperframe/
-Source0:	https://files.pythonhosted.org/packages/source/h/hyperframe/hyperframe-%{version}.tar.gz
-# Source0-md5:	6919183242feb26d8bce3b4cba81defd
-URL:		https://pypi.org/project/hyperframe/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.4
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-pytest
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-This library contains the HTTP/2 framing code used in the hyper
-project. It provides a pure-Python codebase that is capable of
-decoding a binary stream into HTTP/2 frames.
-
-%description -l pl.UTF-8
-Ta biblioteka zawiera kod obsługujący ramki HTTP/2, używany w
-projekcie hyper. Zawiera czysto pythonową implementację, potrafiącą
-dekodować strumień binary na ramki HTTP/2.
-
-%package -n python3-hyperframe
-Summary:	HTTP/2 framing layer for Python 3
-Summary(pl.UTF-8):	Warstwa ramek HTTP/2 dla Pythona 3
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.4
-
-%description -n python3-hyperframe
-This library contains the HTTP/2 framing code used in the hyper
-project. It provides a pure-Python codebase that is capable of
-decoding a binary stream into HTTP/2 frames.
-
-%description -n python3-hyperframe -l pl.UTF-8
-Ta biblioteka zawiera kod obsługujący ramki HTTP/2, używany w
-projekcie hyper. Zawiera czysto pythonową implementację, potrafiącą
-dekodować strumień binary na ramki HTTP/2.
-
-%prep
-%setup -q -n hyperframe-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest test
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest test
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CONTRIBUTORS.rst HISTORY.rst LICENSE README.rst
-%{py_sitescriptdir}/hyperframe
-%{py_sitescriptdir}/hyperframe-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-hyperframe
-%defattr(644,root,root,755)
-%doc CONTRIBUTORS.rst HISTORY.rst LICENSE README.rst
-%{py3_sitescriptdir}/hyperframe
-%{py3_sitescriptdir}/hyperframe-%{version}-py*.egg-info
-%endif
diff --git a/python3-hyperframe.spec b/python3-hyperframe.spec
new file mode 100644
index 0000000..a958926
--- /dev/null
+++ b/python3-hyperframe.spec
@@ -0,0 +1,90 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	HTTP/2 framing layer for Python 3
+Summary(pl.UTF-8):	Warstwa ramek HTTP/2 dla Pythona 3
+Name:		python3-hyperframe
+# keep in sync with python3-h2.spec
+Version:	6.0.1
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/hyperframe/
+Source0:	https://files.pythonhosted.org/packages/source/h/hyperframe/hyperframe-%{version}.tar.gz
+# Source0-md5:	153c064e8ac654aaf136b3388c36de48
+URL:		https://pypi.org/project/hyperframe/
+BuildRequires:	python3-modules >= 1:3.6.1
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pytest >= 6.0.1
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg >= 3.5.4
+%endif
+Requires:	python3-modules >= 1:3.6.1
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library contains the HTTP/2 framing code used in the hyper
+project. It provides a pure-Python codebase that is capable of
+decoding a binary stream into HTTP/2 frames.
+
+%description -l pl.UTF-8
+Ta biblioteka zawiera kod obsługujący ramki HTTP/2, używany w
+projekcie hyper. Zawiera czysto pythonową implementację, potrafiącą
+dekodować strumień binary na ramki HTTP/2.
+
+%package apidocs
+Summary:	API documentation for Python hyperframe module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona hyperframe
+Group:		Documentation
+
+%description apidocs
+API documentation for Python hyperframe module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona hyperframe.
+
+%prep
+%setup -q -n hyperframe-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest test
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd)/src \
+%{__make} -C docs html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst CONTRIBUTORS.rst LICENSE README.rst
+%{py3_sitescriptdir}/hyperframe
+%{py3_sitescriptdir}/hyperframe-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_modules,_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-hyperframe.git/commitdiff/1c601247ad6742b9ebc3bd3a2874827bd3fea527



More information about the pld-cvs-commit mailing list