From 77a69948c93a0887a859cc1762ce0314c40ca0d0 Mon Sep 17 00:00:00 2001 From: Julien Enselme Date: Fri, 6 Nov 2015 16:55:09 +0100 Subject: [PATCH] Initial import (#1260289) --- .gitignore | 1 + python-websockets.spec | 72 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 74 insertions(+) create mode 100644 python-websockets.spec diff --git a/.gitignore b/.gitignore index e69de29..5fde3d6 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/websockets-2.6.tar.gz diff --git a/python-websockets.spec b/python-websockets.spec new file mode 100644 index 0000000..ee5e1d3 --- /dev/null +++ b/python-websockets.spec @@ -0,0 +1,72 @@ +%global pypi_name websockets + +Name: python-%{pypi_name} +Version: 2.6 +Release: 1%{?dist} +Summary: An implementation of the WebSocket Protocol for python with asyncio + +License: BSD +URL: https://pypi.python.org/pypi/%{pypi_name} +Source0: https://pypi.python.org/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel >= 3.4 +BuildRequires: python3-setuptools + +%description +websockets is a library for developing WebSocket servers and clients in +Python. It implements RFC 6455 with a focus on correctness and simplicity. It +passes the Autobahn Testsuite. + +Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it +provides an API based on coroutines, making it easy to write highly concurrent +applications. + +It requires Python ≥ 3.4 or Python 3.3 with the asyncio module. + + +%package -n python3-%{pypi_name} +Summary: An implementation of the WebSocket Protocol for python with asyncio +BuildArch: noarch +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +websockets is a library for developing WebSocket servers and clients in +Python. It implements RFC 6455 with a focus on correctness and simplicity. It +passes the Autobahn Testsuite. + +Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it +provides an API based on coroutines, making it easy to write highly concurrent +applications. + +It requires Python ≥ 3.4 or Python 3.3 with the asyncio module. + + +%prep +%setup -qn %{pypi_name}-%{version} +# Remove upstream's egg-info +rm -rf %{pypi_name}.egg-info + + +%build +%py3_build + + +%install +%py3_install + + +%check +%{__python3} -m unittest + + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/%{pypi_name}/ + + +%changelog +* Wed Aug 26 2015 Julien Enselme - 2.6-1 +- Initial package diff --git a/sources b/sources index e69de29..9df1de4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6fecc06d892ee9bf3282b4c7c09edcaa websockets-2.6.tar.gz