diff --git a/.gitignore b/.gitignore index 4db983b..7835677 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ /autobahn-python-19.8.1.tar.gz /autobahn-python-19.10.1.tar.gz /autobahn-python-20.7.1.tar.gz +/autobahn-20.12.2.tar.gz diff --git a/python-autobahn.spec b/python-autobahn.spec index 71bd692..9054e44 100644 --- a/python-autobahn.spec +++ b/python-autobahn.spec @@ -1,65 +1,35 @@ -# Cannot build doc as of this moment. Construction requires unpackaged python2 -# only deps. -%global with_doc 0 %global pypi_name autobahn -%global project_owner crossbario -%global github_name autobahn-python -%global _docdir_fmt %{name} Name: python-%{pypi_name} -Version: 20.7.1 -Release: 2%{?dist} +Version: 20.12.2 +Release: 1%{?dist} Summary: Python networking library for WebSocket and WAMP License: MIT -URL: https://pypi.python.org/pypi/%{pypi_name} -# pypi release doen't include README, nor doc, so using github instead -# See: https://github.com/tavendo/AutobahnPython/issues/429 -Source0: https://github.com/%{project_owner}/%{github_name}/archive/v%{version}/%{github_name}-%{version}.tar.gz - +URL: https://autobahn.readthedocs.io/en/latest/ +Source0: https://github.com/crossbario/autobahn-python/archive/v%{version}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -%if 0%{with_doc} -BuildRequires: python3-scour # No python 3, https://github.com/oberstet/scour/issues/4 -BuildRequires: python3-scons -BuildRequires: python3-taschenmesser # No python 3, https://github.com/oberstet/taschenmesser/issues/3 -BuildRequires: python3-sphinx -BuildRequires: python3-sphinx-theme-bootstrap # Not packaged yet -BuildRequires: python3-sphinxcontrib-spelling # Not packaged yet -BuildRequires: python3-repoze-sphinx-autointerface -BuildRequires: python3-pyenchant -%endif %description Autobahn a networking library that is part of the Autobahn project and provides implementations of * The WebSocket Protocol http://tools.ietf.org/html/rfc6455_ * The Web Application Messaging Protocol (WAMP) http://wamp.ws -for Twisted and asyncio on Python 2 & 3 and for writing servers and clients. - +for Twisted and for writing servers and clients. %package -n python3-%{pypi_name} -Summary: Python networking library for WebSocket and WAMP -BuildArch: noarch -BuildRequires: python3-devel >= 3.4 -BuildRequires: python3-cffi -BuildRequires: python3-mock >= 1.3.0 -BuildRequires: python3-pytest >= 2.8.6 -BuildRequires: python3-pytest-asyncio -BuildRequires: python3-six >= 1.11.0 -BuildRequires: python3-txaio >= 2.2.1 -BuildRequires: python3-pynacl -BuildRequires: python3-cryptography -Requires: python3-zope-interface >= 3.6 -Requires: python3-ujson >= 1.33 -Requires: python3-wsaccel >= 0.6.2 -Requires: python3-snappy >= 0.5 -Requires: python3-lz4 >= 0.2.1 -Requires: python3-msgpack >= 0.4.6 -Requires: python3-six >= 1.11.0 -Requires: python3-txaio >= 2.10.0 -Requires: python3-cffi -Requires: python3-cryptography -Requires: python3-pynacl +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: %py3_dist cffi +BuildRequires: %py3_dist mock +BuildRequires: %py3_dist pytest +BuildRequires: %py3_dist pytest-asyncio +BuildRequires: %py3_dist six +BuildRequires: %py3_dist txaio +BuildRequires: %py3_dist pynacl +BuildRequires: %py3_dist cbor2 +BuildRequires: %py3_dist cryptography %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} @@ -67,50 +37,34 @@ Autobahn a networking library that is part of the Autobahn project and provides implementations of * The WebSocket Protocol http://tools.ietf.org/html/rfc6455_ * The Web Application Messaging Protocol (WAMP) http://wamp.ws -for Twisted and asyncio on Python 2 & 3 and for writing servers and clients. - +for Twisted and for writing servers and clients. -%if 0%{with_doc} -%package doc -Summary: Python networking library for WebSocket and WAMP - -%description doc -Autobahn a networking library that is part of the Autobahn project and provides -implementations of -* The WebSocket Protocol http://tools.ietf.org/html/rfc6455_ -* The Web Application Messaging Protocol (WAMP) http://wamp.ws -for Twisted and asyncio on Python 2 & 3 and for writing servers and clients. +%package -n python-%{pypi_name}-doc +Summary: Documentation for %{name} -HTML documentation -%endif +BuildRequires: %py3_dist sphinx +BuildRequires: %py3_dist sphinx-rtd-theme +#BuildRequires: %py3_dist sphinxcontrib.images +%description -n python-%{pypi_name}-doc +Documentation for %{name}. %{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pypi_name} -i %{python3_sitelib}/%{pypi_name}-%{version}*-py%{python3_version}.egg-info twisted} - %prep -%setup -qn %{github_name}-%{version} - -# Remove upstream's egg-info +%autosetup -n %{pypi_name}-python-%{version} rm -rf %{pypi_name}.egg-info - %build %py3_build - -%if 0%{with_doc} -# Build doc -cd doc && make build_no_network -%endif - +#PYTHONPATH=${PWD} sphinx-build-3 docs html +#rm -rf html/.{doctrees,buildinfo} %install %py3_install - %check -# Ignore tests that rely on optionnal and not packaged deps. -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 and not test_websocket_custom_loop and not TestSerializer and not test_rng' - +# Ignore tests that rely on optional and not packaged deps. +USE_ASYNCIO=1 %pytest --pyargs autobahn -k 'not test_no_memory_arg and not test_basic and not test_websocket_custom_loop and not TestSerializer' %files -n python3-%{pypi_name} %license LICENSE @@ -125,14 +79,15 @@ USE_ASYNCIO=1 PYTHONPATH=$(pwd) py.test-%{python3_version} --pyargs autobahn -k %{python3_sitelib}/twisted/plugins/autobahn*.py %{python3_sitelib}/twisted/plugins/__pycache__/autobahn*.py* -%if 0%{with_doc} -%files doc +%files -n python-%{pypi_name}-doc +%doc docs/ %license LICENSE -%doc doc/_build -%endif - %changelog +* Wed Dec 16 2020 Fabian Affolter - 2.0.2-1 +- Simplify and update spec file +- Update to new upstream release 20.12.2 (#1907237) + * Tue Jul 28 2020 Fedora Release Engineering - 20.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sources b/sources index 1e26509..0e3a412 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (autobahn-python-20.7.1.tar.gz) = c463ddc8a69df45212f1c13e03e941aec84669231116d142269ae8cd3b180046e53876993ba234bc9ce1500ce9dfe5f56fcc0e9e662760f538460d3d8881a13d +SHA512 (autobahn-20.12.2.tar.gz) = c860486ea6539a85e93470d4bab56f0f1518edf6fc710e5a0aea9f85cec23993ab83d73d0029ef74e781a83822733d4b0d02103298a032953e81703e27a011e6