代码拉取完成,页面将自动刷新
%global srcname h2
%global common_description %{expand:
HTTP/2 Protocol Stack This repository contains a pure-Python
implementation of a HTTP/2 protocol stack. It's written from the ground up to
be embeddable in whatever program you choose to use, ensuring that you can
speak HTTP/2 regardless of your programming paradigm.}
Name: python-%{srcname}
Version: 4.1.0
Release: 2%{?dist}
Summary: HTTP/2 State-Machine based protocol implementation
License: MIT
URL: https://hyper-h2.readthedocs.io
VCS: https://github.com/python-hyper/h2
Source0: %vcs/archive/v%{version}/%{srcname}-%{version}.tar.gz
Patch0: 0001-tox-adjustments.patch
Patch1: 0001-Fix-repr-checks-for-Python-3.11.patch
BuildArch: noarch
BuildRequires: make
BuildRequires: python3-devel
BuildRequires: python3dist(sphinx)
%description %{common_description}
%package -n python3-%{srcname}
Summary: %{summary}
%description -n python3-%{srcname} %{common_description}
%package doc
Summary: Documentation for %{name}
%description doc
%{common_description}
This is the documentation package for %{name}.
%prep
%autosetup -p1 -n %{srcname}-%{version}
%generate_buildrequires
%pyproject_buildrequires -t
%build
%pyproject_wheel
PYTHONPATH=%{pyproject_build_lib} sphinx-build docs/source html
rm -rf html/.{doctrees,buildinfo}
%install
%pyproject_install
%pyproject_save_files %{srcname}
%check
%tox
%files -n python3-%{srcname} -f %{pyproject_files}
%files doc
%doc html
%license LICENSE
%changelog
* Tue Jul 02 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.1.0-2
- rebuild
* Fri Jun 28 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 4.1.0-1
- initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。