diff --git a/packaging/rpm/python3-aioquic.spec b/packaging/rpm/python3-aioquic.spec new file mode 100644 index 0000000000..cee1047b1a --- /dev/null +++ b/packaging/rpm/python3-aioquic.spec @@ -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 - 0.9.20-1 +- initial packaging diff --git a/packaging/rpm/python3-pylsqpack.spec b/packaging/rpm/python3-pylsqpack.spec new file mode 100644 index 0000000000..b75421ea89 --- /dev/null +++ b/packaging/rpm/python3-pylsqpack.spec @@ -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 - 0.3.16-1 +- initial packaging