|
|
2380828 |
%global pypi_name wsaccel
|
|
|
2380828 |
|
|
|
2380828 |
Name: python-%{pypi_name}
|
|
|
2380828 |
Version: 0.6.2
|
|
|
dfa83a8 |
Release: 15%{?dist}
|
|
|
2380828 |
Summary: Accelerator for ws4py and AutobahnPython
|
|
|
2380828 |
|
|
|
2380828 |
License: ASL 2.0
|
|
|
2380828 |
URL: https://pypi.python.org/pypi/%{pypi_name}
|
|
|
2380828 |
Source0: https://pypi.python.org/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
2380828 |
# License is not yet included in the pypi release
|
|
|
2380828 |
Source1: https://github.com/methane/wsaccel/blob/master/LICENSE
|
|
|
2380828 |
# Tests are not included in pypi release. Tests from the 0.6 tag don't work,
|
|
|
2380828 |
# get them from master instead.
|
|
|
2380828 |
# See: https://github.com/methane/wsaccel/issues/11
|
|
|
2380828 |
SOURCE2: https://raw.githubusercontent.com/methane/wsaccel/master/tests/test_4.py
|
|
|
2380828 |
|
|
|
6fa906d |
BuildRequires: gcc
|
|
|
2380828 |
BuildRequires: python2-devel
|
|
|
2380828 |
BuildRequires: pytest
|
|
|
2380828 |
|
|
|
2380828 |
%description
|
|
|
2380828 |
* WSAccell is WebSocket accelerator for AutobahnPython, ws4py and Tornado.
|
|
|
2380828 |
* WSAccell replaces per-byte process in them with Cython version.
|
|
|
2380828 |
* AutobahnPython beginning with version 0.6 automatically uses WSAccell if
|
|
|
2380828 |
available.
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
%package -n python2-%{pypi_name}
|
|
|
2380828 |
Summary: Accelerator for ws4py and AutobahnPython
|
|
|
2380828 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
2380828 |
|
|
|
2380828 |
%description -n python2-%{pypi_name}
|
|
|
2380828 |
* WSAccell is WebSocket accelerator for AutobahnPython, ws4py and Tornado.
|
|
|
2380828 |
* WSAccell replaces per-byte process in them with Cython version.
|
|
|
2380828 |
* AutobahnPython beginning with version 0.6 automatically uses WSAccell if
|
|
|
2380828 |
available.
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
%package -n python3-%{pypi_name}
|
|
|
2380828 |
Summary: Accelerator for ws4py and AutobahnPython
|
|
|
2380828 |
BuildRequires: python3-devel
|
|
|
2380828 |
BuildRequires: python3-pytest
|
|
|
2380828 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
2380828 |
|
|
|
2380828 |
%description -n python3-%{pypi_name}
|
|
|
2380828 |
* WSAccell is WebSocket accelerator for AutobahnPython, ws4py and Tornado.
|
|
|
2380828 |
* WSAccell replaces per-byte process in them with Cython version.
|
|
|
2380828 |
* AutobahnPython beginning with version 0.6 automatically uses WSAccell if
|
|
|
2380828 |
available.
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
%prep
|
|
|
2380828 |
%setup -qn %{pypi_name}-%{version}
|
|
|
2380828 |
cp -a %{SOURCE1} .
|
|
|
2380828 |
mkdir tests
|
|
|
2380828 |
cp -a %{SOURCE2} tests/
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
%build
|
|
|
2380828 |
%py2_build
|
|
|
2380828 |
%py3_build
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
%install
|
|
|
2380828 |
%py2_install
|
|
|
2380828 |
%py3_install
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
# Fix permission
|
|
|
2380828 |
chmod 755 %{buildroot}%{python2_sitearch}/%{pypi_name}/*.so
|
|
|
2380828 |
chmod 755 %{buildroot}%{python3_sitearch}/%{pypi_name}/*.so
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
%check
|
|
|
2380828 |
PYTHONPATH="$(echo build/lib*%{python3_version})" py.test-%{python3_version} tests
|
|
|
2380828 |
PYTHONPATH="$(echo build/lib*%{python2_version})" py.test-%{python2_version} tests
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
%files -n python2-%{pypi_name}
|
|
|
2380828 |
%license LICENSE
|
|
|
2380828 |
%doc README.rst
|
|
|
2380828 |
%{python2_sitearch}/%{pypi_name}-%{version}-py%{python2_version}.egg-info/
|
|
|
2380828 |
%{python2_sitearch}/%{pypi_name}/
|
|
|
2380828 |
|
|
|
2380828 |
%files -n python3-%{pypi_name}
|
|
|
2380828 |
%license LICENSE
|
|
|
2380828 |
%doc README.rst
|
|
|
2380828 |
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
|
|
2380828 |
%{python3_sitearch}/%{pypi_name}/
|
|
|
2380828 |
|
|
|
2380828 |
|
|
|
2380828 |
%changelog
|
|
|
dfa83a8 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-15
|
|
|
dfa83a8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
dfa83a8 |
|
|
|
0be6c3e |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-14
|
|
|
0be6c3e |
- Rebuilt for Python 3.7
|
|
|
0be6c3e |
|
|
|
e136966 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-13
|
|
|
e136966 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
e136966 |
|
|
|
2d2542a |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-12
|
|
|
2d2542a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
2d2542a |
|
|
|
124a3ae |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-11
|
|
|
124a3ae |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
124a3ae |
|
|
|
eeafccb |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-10
|
|
|
eeafccb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
eeafccb |
|
|
|
9cfb071 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.6.2-9
|
|
|
9cfb071 |
- Rebuild for Python 3.6
|
|
|
9cfb071 |
|
|
|
6c06672 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-8
|
|
|
6c06672 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
6c06672 |
|
|
|
f1a6c72 |
* Thu Nov 5 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-7
|
|
|
f1a6c72 |
- Rebuilt for python 3.5
|
|
|
f1a6c72 |
|
|
|
2380828 |
* Tue Aug 4 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-6
|
|
|
2380828 |
- Correct %%check section so tests pass on arm
|
|
|
2380828 |
|
|
|
2380828 |
* Fri Jul 31 2015 Julien Enseme <jujens@jujens.eu> - 0.6.2-5
|
|
|
2380828 |
- Fix tests in mock
|
|
|
2380828 |
- Use %%py2_build, %%py3build, %%py2_install and %%py2_install
|
|
|
2380828 |
- Make a python2 subpackage
|
|
|
2380828 |
|
|
|
2380828 |
* Thu Jul 30 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-4
|
|
|
2380828 |
- Add provides for python2-snappy
|
|
|
2380828 |
- Remove usage of python2 and python3 dirs
|
|
|
2380828 |
|
|
|
2380828 |
* Fri Jul 24 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-3
|
|
|
2380828 |
- Remove %%py3dir macro
|
|
|
2380828 |
- Add CFLAGS in %%build
|
|
|
2380828 |
|
|
|
2380828 |
* Sun Jul 19 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-2
|
|
|
2380828 |
- Add licence
|
|
|
2380828 |
- Launch tests
|
|
|
2380828 |
|
|
|
2380828 |
* Sat Jul 18 2015 Julien Enselme <jujens@jujens.eu> - 0.6.2-1
|
|
|
2380828 |
- Initial packaging
|