diff --git a/.python-wsproto.metadata b/.python-wsproto.metadata new file mode 100644 index 0000000..a14df2f --- /dev/null +++ b/.python-wsproto.metadata @@ -0,0 +1 @@ +2ca02ee672cf290ed5ce4802e0337b859a314c09 SOURCES/wsproto-1.0.0.tar.gz diff --git a/SPECS/python-wsproto.spec b/SPECS/python-wsproto.spec new file mode 100644 index 0000000..43cec1f --- /dev/null +++ b/SPECS/python-wsproto.spec @@ -0,0 +1,114 @@ +# what it's called on pypi +%global srcname wsproto +# what it's imported as +%global libname %{srcname} +# name of egg info directory +%global eggname %{srcname} +# package name fragment +%global pkgname %{srcname} + +%global common_description %{expand: +wsproto is a pure-Python implementation of a WebSocket protocol stack. It is +written from the ground up to be embeddable in whatever program you choose to +use, ensuring that you can communicate via WebSockets, as defined in RFC6455, +regardless of your programming paradigm. + +wsproto does not provide a parsing layer, a network layer, or any rules about +concurrency. Instead, it is a purely in-memory solution, defined in terms of +data actions and WebSocket frames. RFC6455 and Compression Extensions for +WebSocket via RFC7692 are fully supported. + +wsproto supports Python 2.7 and 3.5 or higher.} + +%bcond_without tests + + +Name: python-%{pkgname} +Version: 1.0.0 +Release: 1%{?dist} +Summary: WebSockets state-machine based protocol implementation +License: MIT +URL: https://github.com/python-hyper/wsproto +Source0: %pypi_source +BuildArch: noarch + + +%description %{common_description} + + +%package -n python3-%{pkgname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: %{py3_dist setuptools} +%if %{with tests} +BuildRequires: %{py3_dist pytest h11} +%endif +%{?python_provide:%python_provide python3-%{pkgname}} + + +%description -n python3-%{pkgname} %{common_description} + + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf %{eggname}.egg-info + + +%build +%py3_build + + +%install +%py3_install + + +%if %{with tests} +%check +%pytest --verbose +%endif + + +%files -n python3-%{pkgname} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{libname} +%exclude %{python3_sitelib}/test +%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info + + +%changelog +* Fri Feb 05 2021 Carl George - 1.0.0-1 +- Latest upstream + +* Wed Jan 27 2021 Fedora Release Engineering - 0.14.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.14.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 0.14.1-6 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.14.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.14.1-4 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.14.1-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.14.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Jun 10 2019 Carl George - 0.14.1-1 +- Latest upstream + +* Mon Feb 25 2019 Carl George - 0.13.0-1 +- Latest upstream + +* Sat Feb 02 2019 Fedora Release Engineering - 0.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Oct 14 2018 Carl George - 0.12.0-1 +- Initial package