|
|
09b66e |
%global pypi_name wsaccel
|
|
|
09b66e |
|
|
|
09b66e |
Name: python-%{pypi_name}
|
|
|
09b66e |
Version: 0.6.3
|
|
|
09b66e |
Release: 2%{?dist}
|
|
|
09b66e |
Summary: Accelerator for ws4py and AutobahnPython
|
|
|
09b66e |
|
|
|
09b66e |
License: ASL 2.0
|
|
|
09b66e |
URL: https://pypi.python.org/pypi/%{pypi_name}
|
|
|
09b66e |
# Use GitHub archive to get Cython sources
|
|
|
09b66e |
Source0: https://github.com/methane/wsaccel/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
09b66e |
# License is not yet included in the 0.6.2 tag
|
|
|
09b66e |
Source1: https://github.com/methane/wsaccel/blob/master/LICENSE
|
|
|
09b66e |
# Tests from the 0.6.2 tag don't work, get them from master instead.
|
|
|
09b66e |
SOURCE2: https://raw.githubusercontent.com/methane/wsaccel/master/tests/test_4.py
|
|
|
09b66e |
|
|
|
09b66e |
%description
|
|
|
09b66e |
* WSAccell is WebSocket accelerator for AutobahnPython, ws4py and Tornado.
|
|
|
09b66e |
* WSAccell replaces per-byte process in them with Cython version.
|
|
|
09b66e |
* AutobahnPython beginning with version 0.6 automatically uses WSAccell if
|
|
|
09b66e |
available.
|
|
|
09b66e |
|
|
|
09b66e |
|
|
|
09b66e |
%package -n python3-%{pypi_name}
|
|
|
09b66e |
Summary: Accelerator for ws4py and AutobahnPython
|
|
|
09b66e |
BuildRequires: gcc
|
|
|
09b66e |
BuildRequires: python3-devel
|
|
|
09b66e |
BuildRequires: python3-setuptools
|
|
|
09b66e |
BuildRequires: python3-Cython
|
|
|
09b66e |
BuildRequires: python3-pytest
|
|
|
09b66e |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
09b66e |
|
|
|
09b66e |
%description -n python3-%{pypi_name}
|
|
|
09b66e |
* WSAccell is WebSocket accelerator for AutobahnPython, ws4py and Tornado.
|
|
|
09b66e |
* WSAccell replaces per-byte process in them with Cython version.
|
|
|
09b66e |
* AutobahnPython beginning with version 0.6 automatically uses WSAccell if
|
|
|
09b66e |
available.
|
|
|
09b66e |
|
|
|
09b66e |
|
|
|
09b66e |
%prep
|
|
|
09b66e |
%setup -qn %{pypi_name}-%{version}
|
|
|
09b66e |
cp -a %{SOURCE1} .
|
|
|
09b66e |
cp -a %{SOURCE2} tests/
|
|
|
09b66e |
|
|
|
09b66e |
|
|
|
09b66e |
%build
|
|
|
09b66e |
%py3_build
|
|
|
09b66e |
|
|
|
09b66e |
|
|
|
09b66e |
%install
|
|
|
09b66e |
%py3_install
|
|
|
09b66e |
|
|
|
09b66e |
|
|
|
09b66e |
# Fix permission
|
|
|
09b66e |
chmod 755 %{buildroot}%{python3_sitearch}/%{pypi_name}/*.so
|
|
|
09b66e |
|
|
|
09b66e |
|
|
|
09b66e |
%check
|
|
|
09b66e |
PYTHONPATH="$(echo build/lib*%{python3_version})" py.test-%{python3_version} tests
|
|
|
09b66e |
|
|
|
09b66e |
|
|
|
09b66e |
%files -n python3-%{pypi_name}
|
|
|
09b66e |
%license LICENSE
|
|
|
09b66e |
%doc README.rst
|
|
|
09b66e |
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
|
|
09b66e |
%{python3_sitearch}/%{pypi_name}/
|
|
|
09b66e |
|
|
|
09b66e |
|
|
|
09b66e |
%changelog
|
|
|
09b66e |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-2
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Tue Jan 19 14:52:34 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 0.6.3-1
|
|
|
09b66e |
- Update to 0.6.3
|
|
|
09b66e |
|
|
|
09b66e |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-23
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-22
|
|
|
09b66e |
- Rebuilt for Python 3.9
|
|
|
09b66e |
|
|
|
09b66e |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-21
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-20
|
|
|
09b66e |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
09b66e |
|
|
|
09b66e |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-19
|
|
|
09b66e |
- Rebuilt for Python 3.8
|
|
|
09b66e |
|
|
|
09b66e |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-18
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Sat Mar 23 2019 Julien Enselme <jujens@jujens.eu> - 0.6.2-17
|
|
|
09b66e |
- Remove Python 2 subpackage.
|
|
|
09b66e |
|
|
|
09b66e |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-16
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-15
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-14
|
|
|
09b66e |
- Rebuilt for Python 3.7
|
|
|
09b66e |
|
|
|
09b66e |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-13
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-12
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-11
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-10
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-9
|
|
|
09b66e |
- Rebuild for Python 3.6
|
|
|
09b66e |
|
|
|
09b66e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-8
|
|
|
09b66e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
09b66e |
|
|
|
09b66e |
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-7
|
|
|
09b66e |
- Rebuilt for python 3.5
|
|
|
09b66e |
|
|
|
09b66e |
* Tue Aug 4 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-6
|
|
|
09b66e |
- Correct %%check section so tests pass on arm
|
|
|
09b66e |
|
|
|
09b66e |
* Fri Jul 31 2015 Julien Enseme <jujens@jujens.eu> - 0.6.2-5
|
|
|
09b66e |
- Fix tests in mock
|
|
|
09b66e |
- Use %%py2_build, %%py3build, %%py2_install and %%py2_install
|
|
|
09b66e |
- Make a python2 subpackage
|
|
|
09b66e |
|
|
|
09b66e |
* Thu Jul 30 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-4
|
|
|
09b66e |
- Add provides for python2-snappy
|
|
|
09b66e |
- Remove usage of python2 and python3 dirs
|
|
|
09b66e |
|
|
|
09b66e |
* Fri Jul 24 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-3
|
|
|
09b66e |
- Remove %%py3dir macro
|
|
|
09b66e |
- Add CFLAGS in %%build
|
|
|
09b66e |
|
|
|
09b66e |
* Sun Jul 19 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-2
|
|
|
09b66e |
- Add licence
|
|
|
09b66e |
- Launch tests
|
|
|
09b66e |
|
|
|
09b66e |
* Sat Jul 18 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-1
|
|
|
09b66e |
- Initial packaging
|