python-websockets/python-websockets.spec

128 lines
4.0 KiB
RPMSpec
Raw Normal View History

2015-11-06 15:55:09 +00:00
%global pypi_name websockets
Name: python-%{pypi_name}
2018-06-02 12:12:57 +00:00
Version: 5.0.1
Release: 1%{?dist}
2015-11-06 15:55:09 +00:00
Summary: An implementation of the WebSocket Protocol for python with asyncio
License: BSD
URL: https://pypi.python.org/pypi/%{pypi_name}
2018-06-02 12:12:57 +00:00
Source0: https://files.pythonhosted.org/packages/4b/c6/026da2eeed75a49dd0b72a0c7ed6ee5cb2943e396ca9753eabff7359b27b/websockets-5.0.1.tar.gz
2017-08-21 17:48:19 +00:00
# Not reliable on koji on some arch (eg arm and ppc)
Patch0: remove-tests-with-timeouts.patch
2015-11-06 15:55:09 +00:00
BuildRequires: python3-devel >= 3.5
2015-11-06 15:55:09 +00:00
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 Pythons 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
%{?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 Pythons 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
2017-11-06 09:52:55 +00:00
# %%patch0 -p1
2015-11-06 15:55:09 +00:00
%build
%py3_build
%install
%py3_install
2017-11-06 09:52:55 +00:00
# Remove installed C file
rm %{buildroot}/%{python3_sitearch}/%{pypi_name}/speedups.c
2015-11-06 15:55:09 +00:00
%check
2017-11-06 09:52:55 +00:00
WEBSOCKETS_TESTS_TIMEOUT_FACTOR=20 %{__python3} setup.py test
2015-11-06 15:55:09 +00:00
%files -n python3-%{pypi_name}
%license LICENSE
2017-04-05 18:10:00 +00:00
%doc README.rst
2017-08-21 17:28:39 +00:00
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%{python3_sitearch}/%{pypi_name}/
2015-11-06 15:55:09 +00:00
%changelog
2018-06-02 12:12:57 +00:00
* Sat Jun 02 2018 Julien Enselme <jujens@jujens.eu> - 5.0.1-1
- Update to 5.0.1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-11-06 09:52:55 +00:00
* Mon Nov 06 2017 Julien Enselme <jujens@jujens.eu> - 4.0.1-1
- Update to 4.0.1
2017-08-21 17:48:19 +00:00
* Mon Aug 21 2017 Julien Enselme <jujens@jujens.eu> - 3.4-2
- Remove tests with timeouts
2017-08-21 17:28:39 +00:00
* Mon Aug 21 2017 Julien Enselme <jujens@jujens.eu> - 3.4-1
- Update to 3.4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-04-05 18:10:00 +00:00
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 3.3-1
- Update to 3.3
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-12-19 17:20:38 +00:00
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.2-3
- Rebuild for Python 3.6
2016-09-18 15:52:42 +00:00
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 3.2-2
- Correct tests on Python 3.5.2
2016-09-18 10:03:05 +00:00
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 3.2-1
2016-09-18 09:58:02 +00:00
- Update to 3.2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-06-21 15:23:56 +00:00
* Tue Jun 21 2016 Julien Enselme <jujens@jujens.eu> - 3.1-1
- Update to 3.1
* Sun Feb 14 2016 Julien Enselme <jujens@jujens.eu> - 3.0-1
- Update to 3.0
- Correct build on rawhide
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-11-22 22:05:32 +00:00
* Sun Nov 22 2015 Julien Enselme <jujens@jujens.eu> - 2.7-1
- Update to 2.7
* Thu Nov 12 2015 Kalev Lember <klember@redhat.com> - 2.6-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2015-11-06 15:55:09 +00:00
* Wed Aug 26 2015 Julien Enselme <jujens@jujens.eu> - 2.6-1
- Initial package