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