5798605
# Cannot build doc as of this moment. Construction requires unpackaged python2
5798605
# only deps.
5798605
%global with_doc 0
5798605
%global pypi_name autobahn
e597989
%global project_owner crossbario
e597989
%global github_name autobahn-python
5798605
%global _docdir_fmt %{name}
5798605
5798605
Name:           python-%{pypi_name}
4c4be28
Version:        18.6.1
1db1d53
Release:        1%{?dist}
5798605
Summary:        Python networking library for WebSocket and WAMP
5798605
5798605
License:        MIT
5798605
URL:            https://pypi.python.org/pypi/%{pypi_name}
5798605
# pypi release doen't include README, nor doc, so using github instead
5798605
# See: https://github.com/tavendo/AutobahnPython/issues/429
e43554d
Source0:        https://github.com/%{project_owner}/%{github_name}/archive/v%{version}/%{github_name}-%{version}.tar.gz
5798605
5798605
BuildArch:      noarch
5798605
BuildRequires:  python2-devel
769f545
BuildRequires:  python2-pep8
769f545
BuildRequires:  python2-flake8
769f545
BuildRequires:  python2-mock >= 1.3.0
769f545
BuildRequires:  python2-pytest >= 2.6.4
769f545
BuildRequires:  python2-six >= 1.10.0
3ba2823
BuildRequires:  python2-txaio >= 2.10.0
769f545
BuildRequires:  python2-trollius >= 2.0
769f545
BuildRequires:  python2-futures >= 3.0.4
769f545
BuildRequires:  python2-unittest2 >= 1.1.0
a32801e
BuildRequires:  python2-cffi
5798605
%if 0%{with_doc}
769f545
BuildRequires:  python2-scour # No python 3, https://github.com/oberstet/scour/issues/4
769f545
BuildRequires:  python2-scons
5798605
BuildRequires:  python-taschenmesser # No python 3, https://github.com/oberstet/taschenmesser/issues/3
769f545
BuildRequires:  python2-sphinx
5798605
BuildRequires:  python-sphinx-theme-bootstrap # Not packaged yet
769f545
BuildRequires:  python2-sphinxcontrib-spelling # Not packaged yet
769f545
BuildRequires:  python2-repoze-sphinx-autointerface
5798605
BuildRequires:  python-pyenchant
5798605
%endif # End with_doc
5798605
5798605
%description
5798605
Autobahn a networking library that is part of the Autobahn project and provides
5798605
implementations of
5798605
* The WebSocket Protocol http://tools.ietf.org/html/rfc6455_
5798605
* The Web Application Messaging Protocol (WAMP) http://wamp.ws
5798605
for Twisted and asyncio on Python 2 & 3 and for writing servers and clients.
5798605
5798605
5798605
%package -n     python2-%{pypi_name}
769f545
Requires:       python2-twisted >= 15.5
769f545
Requires:       python2-zope-interface >= 4.1.3
769f545
Requires:       python2-trollius >= 2.0
769f545
Requires:       python2-futures >= 3.0.4
5798605
Requires:       python2-ujson >= 1.33
5798605
Requires:       python2-wsaccel >= 0.6.2
769f545
Requires:       python2-snappy >= 0.5
769f545
Requires:       python2-lz4 >= 0.7.0
769f545
Requires:       python2-msgpack >= 0.4.6
769f545
Requires:       python2-six >= 1.10.0
3ba2823
Requires:       python2-txaio >= 2.10.0
a32801e
Requires:       python2-cffi
5798605
Summary:        Python networking library for WebSocket and WAMP
5798605
%{?python_provide:%python_provide python2-%{pypi_name}}
5798605
5798605
%description -n python2-%{pypi_name}
5798605
Autobahn a networking library that is part of the Autobahn project and provides
5798605
implementations of
5798605
* The WebSocket Protocol http://tools.ietf.org/html/rfc6455_
5798605
* The Web Application Messaging Protocol (WAMP) http://wamp.ws
5798605
for Twisted and asyncio on Python 2 & 3 and for writing servers and clients.
5798605
5798605
5798605
%package -n     python3-%{pypi_name}
5798605
Summary:        Python networking library for WebSocket and WAMP
5798605
BuildArch:      noarch
5798605
BuildRequires:  python3-devel >= 3.4
a32801e
BuildRequires:  python3-cffi
5798605
BuildRequires:  python3-pep8
5798605
BuildRequires:  python3-flake8
e597989
BuildRequires:  python3-mock >= 1.3.0
e597989
BuildRequires:  python3-pytest >= 2.8.6
b575560
BuildRequires:  python3-pytest-asyncio
e597989
BuildRequires:  python3-six >= 1.10.0
e597989
BuildRequires:  python3-txaio >= 2.2.1
e597989
BuildRequires:  python3-unittest2 >= 1.1.0
5798605
Requires:       python3-zope-interface >= 3.6
5798605
Requires:       python3-ujson >= 1.33
5798605
Requires:       python3-wsaccel >= 0.6.2
5798605
Requires:       python3-snappy >= 0.5
5798605
Requires:       python3-lz4 >= 0.2.1
e597989
Requires:       python3-msgpack >= 0.4.6
d0c7d1b
Requires:       python3-six >= 1.10.0
3ba2823
Requires:       python3-txaio >= 2.10.0
a32801e
Requires:       python3-cffi
5798605
%{?python_provide:%python_provide python3-%{pypi_name}}
5798605
5798605
%description -n python3-%{pypi_name}
5798605
Autobahn a networking library that is part of the Autobahn project and provides
5798605
implementations of
5798605
* The WebSocket Protocol http://tools.ietf.org/html/rfc6455_
5798605
* The Web Application Messaging Protocol (WAMP) http://wamp.ws
5798605
for Twisted and asyncio on Python 2 & 3 and for writing servers and clients.
5798605
5798605
5798605
%if 0%{with_doc}
5798605
%package doc
5798605
Summary:        Python networking library for WebSocket and WAMP
5798605
5798605
%description doc
5798605
Autobahn a networking library that is part of the Autobahn project and provides
5798605
implementations of
5798605
* The WebSocket Protocol http://tools.ietf.org/html/rfc6455_
5798605
* The Web Application Messaging Protocol (WAMP) http://wamp.ws
5798605
for Twisted and asyncio on Python 2 & 3 and for writing servers and clients.
5798605
5798605
HTML documentation
5798605
%endif # with doc
5798605
5798605
5798605
%prep
e43554d
%setup -qn %{github_name}-%{version}
5798605
5798605
# Remove upstream's egg-info
5798605
rm -rf %{pypi_name}.egg-info
5798605
5798605
5798605
%build
5798605
%py2_build
5798605
%py3_build
5798605
5798605
%if 0%{with_doc}
5798605
# Build doc
5798605
cd doc && make build_no_network
5798605
%endif
5798605
5798605
5798605
%install
5798605
%py2_install
5798605
%py3_install
5798605
5798605
5798605
%check
1db1d53
# Ignore tests that rely on optionnal and not packaged deps.
1db1d53
USE_ASYNCIO=1 PYTHONPATH=$(pwd) py.test-%{python3_version} --pyargs autobahn -k 'not test_unknown_arg and not test_no_memory_arg and not test_basic and not test_argon2id_static'
b575560
# Skip Python 3 only tests
b575560
rm -f autobahn/asyncio/test/test_asyncio_websocket.py
1db1d53
USE_ASYNCIO=1 PYTHONPATH=$(pwd) py.test-%{python2_version} --pyargs autobahn -k 'not test_unknown_arg and not test_no_memory_arg and not test_basic and not test_argon2id_static'
5798605
3c47a93
5798605
%files -n python2-%{pypi_name}
5798605
%license LICENSE
2fd8e5d
%doc README.rst DEVELOPERS.md
5798605
%{python2_sitelib}/%{pypi_name}-%{version}*-py%{python2_version}.egg-info/
5798605
%{python2_sitelib}/%{pypi_name}/
5798605
%dir %{python2_sitelib}/twisted
5798605
%dir %{python2_sitelib}/twisted/plugins
5798605
%{python2_sitelib}/twisted/plugins/autobahn*.py*
5798605
5798605
%files -n python3-%{pypi_name}
5798605
%license LICENSE
2fd8e5d
%doc README.rst DEVELOPERS.md
5798605
%{python3_sitelib}/%{pypi_name}-%{version}*-py%{python3_version}.egg-info/
5798605
%{python3_sitelib}/%{pypi_name}/
5798605
%dir %{python3_sitelib}/twisted
5798605
%dir %{python3_sitelib}/twisted/plugins
5798605
%dir %{python3_sitelib}/twisted/plugins/__pycache__
5798605
%{python3_sitelib}/twisted/plugins/autobahn*.py
5798605
%{python3_sitelib}/twisted/plugins/__pycache__/autobahn*.py*
5798605
5798605
%if 0%{with_doc}
5798605
%files doc
5798605
%license LICENSE
5798605
%doc doc/_build
5798605
%endif
5798605
5798605
5798605
%changelog
d099a1d
* Sat Jun 16 2018 Julien Enselme <jujens@jujens.eu> - 18.6.1-1
d099a1d
- Update to 18.6.1
d099a1d
1db1d53
* Sat May 12 2018 Julien Enselme <jujens@jujens.eu> - 18.5.1-1
1db1d53
- Update to 18.5.1
1db1d53
a32801e
* Sun Apr 15 2018 Julien Enselme <jujens@jujens.eu> - 18.4.1-2
a32801e
- Correct requires
a32801e
3ba2823
* Sun Apr 15 2018 Julien Enselme <jujens@jujens.eu> - 18.4.1-1
3ba2823
- Update to 18.4.1
3ba2823
09597b0
* Tue Mar 06 2018 Julien Enselme <jujens@jujens.eu> - 18.3.1-1
09597b0
- Update to 18.3.1
09597b0
c755e6a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17.10.1-3
c755e6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c755e6a
769f545
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 17.10.1-2
769f545
- Update Python 2 dependency declarations to new packaging standards
769f545
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
769f545
e43554d
* Mon Nov 06 2017 Julien Enselme <jujens@jujens.eu> - 17.10.1-1
e43554d
- Update to 17.10.1
e43554d
- Use %%version to get the sources
e43554d
d28351b
* Tue Sep 26 2017 Julien Enselme <jujens@jujens.eu> - 17.9.3-1.gitd398c4d
d28351b
- Update to 17.9.3
d28351b
473574a
* Thu Sep 14 2017 Julien Enselme <jujens@jujens.eu> - 17.9.2-1.git164106a
473574a
- Update to 17.9.2
473574a
9935856
* Wed Sep 06 2017 Julien Enselme <jujens@jujens.eu> - 17.9.1-1.gitb813019
9935856
- Update to 17.9.1
9935856
67bdbde
* Sat Aug 19 2017 Julien Enselme <jujens@jujens.eu> - 17.8.1-1.git96543dd
67bdbde
- Update to 17.8.1
67bdbde
301796a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 17.7.1-2.git9ad7878
301796a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
301796a
6eb0936
* Sun Jul 23 2017 Julien Enselme <jujens@jujens.eu> - 17.7.1-1.git9ad7878
6eb0936
- Update to 17.7.1
6eb0936
a7e7b91
* Sat Jul 01 2017 Julien Enselme <jujens@jujens.eu> - 17.6.2-1.gitbc2a1b3
a7e7b91
- Update to 17.6.2
a7e7b91
3c47a93
* Sat Jun 10 2017 Julien Enselme <jujens@jujens.eu> - 17.6.1-1.gite69b314
3c47a93
- Update to 17.6.1
3c47a93
21b9dd5
* Sun May 07 2017 Julien Enselme <jujens@jujens.eu> - 17.5.1-1.git73bcac2
7965bdc
- Update to 17.5.1
7965bdc
ac5739a
* Tue Apr 18 2017 Julien Enselme <jujens@jujens.eu> - 0.18.2-1.git731228a
ac5739a
- Update to 0.18.2
ac5739a
e960e52
* Wed Apr 05 2017 Julien Enselme <jujens@jujens.eu> - 0.18.1-1.gitfd7ec41
e960e52
- Update to 0.18.1
e960e52
72829b3
* Tue Feb 28 2017 Julien Enselme <jujens@jujens.eu> - 0.17.2-1.git0eef8c7
72829b3
- Update to 0.17.2
72829b3
aa0dc6a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-2.git81d9276
aa0dc6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aa0dc6a
b575560
*  Mon Dec 26 2016 Julien Enselme <jujens@jujens.eu> - 0.17.0-1.git81d9276
b575560
- Update to 0.17.0
b575560
e7b8332
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 0.16.0-3.gitade9eb5
e7b8332
- Rebuild for Python 3.6
e7b8332
6d2206d
* Sat Oct 01 2016 Julien Enselme <jujens@jujens.eu> - 0.16.0-2.gitade9eb5
6d2206d
- Fix tests for pytest3
6d2206d
3a1de2c
* Sun Sep 18 2016 Julien Enselme <jujens@jujens.eu> - 0.16.0-1.gitade9eb5
3a1de2c
- Update to 0.16.0
3a1de2c
d225ec5
* Mon Jul 25 2016 Julien Enselme <jujens@jujens.eu> - 0.15.0-1.git43b57f8
d225ec5
- Update to 0.15.0
d225ec5
77bf9c5
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-2.git81f693d
77bf9c5
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
77bf9c5
36bfff8
* Mon May 16 2016 Julien Enselme <jujens@jujens.eu> - 0.14.0-1.git81f693d
d0c7d1b
- Update to 0.14.0
d0c7d1b
e597989
* Sat Feb 27 2016 Julien Enselme <jujens@jujens.eu> - 0.12.1-1.git22b1183
e597989
- Update to 0.12.1
e597989
3141208
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.7-3.gita69e704
3141208
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3141208
ad26c2d
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.7-2.gita69e704
ad26c2d
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
ad26c2d
e5891e1
* Sun Sep 6 2015 Julien Enselme <jujens@jujens.eu> - 0.10.7-1.gita69e7048
e5891e1
- Update to 0.10.7
e5891e1
2fd8e5d
* Sun Sep 6 2015 Julien Enselme <jujens@jujens.eu> - 0.10.6-1.gitb35d99f1
2fd8e5d
- Update to 0.10.6
2fd8e5d
5798605
* Sat Aug 15 2015 Julien Enselme <jujens@jujens.eu> - 0.10.5-1.git3fce8ac
5798605
- Update to 0.10.5.post-2
5798605
5798605
* Wed Aug 5 2015 Julien Enselme <jujens@jujens.eu> - 0.10.4-3.git29f8acc
5798605
- Build python2 and python3 in the same dir
5798605
- Update dependencies
5798605
- Put python2 package in a subpackage
5798605
- Add provides
5798605
- Correct %%files section
5798605
5798605
* Fri Jul 24 2015 Julien Enselme <jujens@jujens.eu> - 0.10.4-2.git29f8acc
5798605
- Surround doc package with if
5798605
- Remove %%py3dir macro
5798605
- Add CFLAGS in %%build
5798605
5798605
* Sat Jul 18 2015 Julien Enselme <jujens@jujens.eu> - 0.10.4-1.git29f8acc
5798605
- Initial packaging