[packages/python3-hpack] - python-hpack.spec updated to 4.0.0 for python 3.6.1+

qboosh qboosh at pld-linux.org
Wed Apr 27 19:36:29 CEST 2022


commit e44cdc394a973902b142fc0f869bb0c36cd38bdd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Apr 27 19:36:47 2022 +0200

    - python-hpack.spec updated to 4.0.0 for python 3.6.1+

 python-hpack.spec  | 116 -----------------------------------------------------
 python3-hpack.spec |  86 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+), 116 deletions(-)
---
diff --git a/python-hpack.spec b/python-hpack.spec
deleted file mode 100644
index 9557ca6..0000000
--- a/python-hpack.spec
+++ /dev/null
@@ -1,116 +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 Header Encoding for Python 2
-Summary(pl.UTF-8):	Kodowanie nagłówków HTTP/2 dla Pythona 2
-Name:		python-hpack
-# keep 3.x here for python2 support
-Version:	3.0.0
-Release:	5
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/hpack/
-Source0:	https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz
-# Source0-md5:	556b0ae66180f54c2ce8029a0952088b
-URL:		https://pypi.org/project/hpack/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-hypothesis
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.3
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-hypothesis
-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 module contains a pure-Python HTTP/2 header encoding (HPACK)
-logic for use in Python programs that implement HTTP/2.
-
-%description -l pl.UTF-8
-Ten moduł zawiera czysto pythonową logikę kodowania nagłówków HTTP/2
-(HPACK) dla programów, które implementują HTTP/2.
-
-%package -n python3-hpack
-Summary:	HTTP/2 Header Encoding for Python 3
-Summary(pl.UTF-8):	Kodowanie nagłówków HTTP/2 dla Pythona 3
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.3
-
-%description -n python3-hpack
-This module contains a pure-Python HTTP/2 header encoding (HPACK)
-logic for use in Python programs that implement HTTP/2.
-
-%description -n python3-hpack -l pl.UTF-8
-Ten moduł zawiera czysto pythonową logikę kodowania nagłówków HTTP/2
-(HPACK) dla programów, które implementują HTTP/2.
-
-%prep
-%setup -q -n hpack-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-# test_hpack_integration.py requires test_fixtures not included in release tarball
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest test -k 'not TestHPACKDecoderIntegration'
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest test -k 'not TestHPACKDecoderIntegration'
-%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}/hpack
-%{py_sitescriptdir}/hpack-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-hpack
-%defattr(644,root,root,755)
-%doc CONTRIBUTORS.rst HISTORY.rst LICENSE README.rst
-%{py3_sitescriptdir}/hpack
-%{py3_sitescriptdir}/hpack-%{version}-py*.egg-info
-%endif
diff --git a/python3-hpack.spec b/python3-hpack.spec
new file mode 100644
index 0000000..556e23e
--- /dev/null
+++ b/python3-hpack.spec
@@ -0,0 +1,86 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_with	tests	# unit tests (fixtures missing in sdist)
+
+Summary:	HTTP/2 Header Encoding for Python 3
+Summary(pl.UTF-8):	Kodowanie nagłówków HTTP/2 dla Pythona 3
+Name:		python3-hpack
+# keep in sync with python3-h2.spec
+Version:	4.0.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/hpack/
+Source0:	https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz
+# Source0-md5:	27e01514ef06dc9fa0798d3dcb7de47c
+URL:		https://pypi.org/project/hpack/
+BuildRequires:	python3-modules >= 1:3.6.1
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-hypothesis
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg >= 3.2.1
+%endif
+Requires:	python3-modules >= 1:3.6.1
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module contains a pure-Python HTTP/2 header encoding (HPACK)
+logic for use in Python programs that implement HTTP/2.
+
+%description -l pl.UTF-8
+Ten moduł zawiera czysto pythonową logikę kodowania nagłówków HTTP/2
+(HPACK) dla programów, które implementują HTTP/2.
+
+%package apidocs
+Summary:	API documentation for Python hpack module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona hpack
+Group:		Documentation
+
+%description apidocs
+API documentation for Python hpack module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona hpack.
+
+%prep
+%setup -q -n hpack-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__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}/hpack
+%{py3_sitescriptdir}/hpack-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_modules,_static,security,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-hpack.git/commitdiff/e44cdc394a973902b142fc0f869bb0c36cd38bdd



More information about the pld-cvs-commit mailing list