Skip to content

Commit

Permalink
#3376 missed the actual files in ff7d58e
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Oct 24, 2022
1 parent 6f28b0b commit 66e67d1
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 0 deletions.
60 changes: 60 additions & 0 deletions packaging/rpm/python3-aioquic.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
%define _disable_source_fetch 0

Name: python3-aioquic
Version: 0.9.20
Release: 1%{?dist}
Summary: aioquic is a library for the QUIC network protocol in Python
Group: Development/Languages
License: MIT
URL: https://github.com/aiortc/aioquic
Source0: https://files.pythonhosted.org/packages/91/93/53f91b13c15b45386e0faa84c89f0e09a3eceb3903c856519b6681faf88c/aioquic-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: gcc
Requires: python3
Requires: python3-cryptography
Requires: python3-certifi
Requires: python3-pyOpenSSL
Requires: python3-pylsqpack

%description
It features a minimal TLS 1.3 implementation, a QUIC stack and an HTTP/3 stack.

QUIC was standardised in RFC 9000 and HTTP/3 in RFC 9114.
aioquic is regularly tested for interoperability against other QUIC implementations.

It provides Python Decoder and Encoder objects
to read or write HTTP/3 headers compressed with QPACK.

%prep
sha256=`sha256sum %{SOURCE0} | awk '{print $1}'`
if [ "${sha256}" != "ec436aaace997b846b01e5200edbf7e3e56b91826a144efb9748fd8ddd332bbe" ]; then
echo "invalid checksum for %{SOURCE0}"
exit 1
fi
%setup -q -n aioquic-%{version}


%build
%{__python3} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc PKG-INFO
%{python3_sitearch}/aioquic*


%changelog
* Mon Oct 24 2022 Antoine Martin <[email protected]> - 0.9.20-1
- initial packaging
52 changes: 52 additions & 0 deletions packaging/rpm/python3-pylsqpack.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
%define _disable_source_fetch 0

Name: python3-pylsqpack
Version: 0.3.16
Release: 1%{?dist}
Summary: pylsqpack is a wrapper around the ls-qpack library
Group: Development/Languages
License: MIT
URL: https://github.com/aiortc/pylsqpack
Source0: https://files.pythonhosted.org/packages/54/cf/7eac98d6ffb5c6ad0e5fba84a6ca39993c93f9e0208055d35a788e4a0049/pylsqpack-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: gcc
Requires: python3

%description
It provides Python Decoder and Encoder objects
to read or write HTTP/3 headers compressed with QPACK.


%prep
sha256=`sha256sum %{SOURCE0} | awk '{print $1}'`
if [ "${sha256}" != "b67a6ce3f6937d850681827714be730aa361c049e37752e3ed9df11e7f232ffb" ]; then
echo "invalid checksum for %{SOURCE0}"
exit 1
fi
%setup -q -n pylsqpack-%{version}


%build
%{__python3} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc PKG-INFO
%{python3_sitearch}/pylsqpack*


%changelog
* Mon Oct 24 2022 Antoine Martin <[email protected]> - 0.3.16-1
- initial packaging

0 comments on commit 66e67d1

Please sign in to comment.