forked from pool/python-autobahn
- Update to 22.7.1: * fix: Fix a few typos in docs (#1587) * fix: remove log noise from autobahn.websocket.protocol (#1588) * new: add more helpers to EthereumKey and CryptosignKey (#1583) * new: EIP712 certificate chains, incl. use for WAMP-Cryptosign * fix: improve message logging at trace log level * fix: forward correct TLS channel ID once the TLS handshake is complete * new: add eip712 types for WAMP-Cryptosign certificates * new: add more helpers to EthereumKey and CryptosignKey * new: add EthereumKey.from_keyfile, CryptosignKey.from_keyfile, CryptosignKey.from_pubkey - Changes from 22.6.1: * new: add SecurityModuleMemory.from_config and SecurityModuleMemory.from_keyfile * new: moved UserKey from crossbar to autobahn * fix: more WAMP-Cryptosign unit tests * new: experimental WAMP API catalog support * new: regenerate FlatBuffers WAMP messages * fix: allow tests to pass without XBR dependencies (#1580) * new: Flatbuffers IDL based WAMP payload validation (#1576) * fix: restore autobahn.twisted.testing to distribution (#1578) - Changes from 22.5.1: * new: WAMP Flatbuffers IDL and schema processing (experimental) * new: WAMP-cryptosign trustroot (experimental) * new: add wrapper type for CryptosignAuthextra * fix: stricted type checking of Challenge; fix cryposign unit test; * new: more test coverage * fix: reduce log noise * fix: forward channel_binding selected in Component client * new: expand ISigningKey to provide security_module/key_id (if used) OBS-URL: https://build.opensuse.org/request/show/992745 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-autobahn?expand=0&rev=65
143 lines
4.8 KiB
RPMSpec
143 lines
4.8 KiB
RPMSpec
#
|
|
# spec file for package python-autobahn
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%ifarch %arm aarch64 riscv64
|
|
%bcond_with nvx_support
|
|
%else
|
|
%bcond_without nvx_support
|
|
%endif
|
|
|
|
%{?!python_module:%define python_module() python-%{**} %{!?skip_python3:python3-%{**}}}
|
|
%define skip_python2 1
|
|
Name: python-autobahn
|
|
Version: 22.7.1
|
|
Release: 0
|
|
Summary: WebSocket and WAMP in Python for Twisted and asyncio
|
|
License: MIT
|
|
URL: https://github.com/crossbario/autobahn-python
|
|
Source: https://files.pythonhosted.org/packages/source/a/autobahn/autobahn-%{version}.tar.gz
|
|
Patch0: respect-cflags.patch
|
|
Patch1: intrin-arch.patch
|
|
BuildRequires: %{python_module PyNaCl >= 1.4.0}
|
|
BuildRequires: %{python_module PyQRCode >= 1.2.1}
|
|
BuildRequires: %{python_module Twisted >= 20.3.0}
|
|
BuildRequires: %{python_module argon2-cffi >= 18.1.0}
|
|
BuildRequires: %{python_module attrs >= 20.3.0}
|
|
BuildRequires: %{python_module cbor >= 1.0.0}
|
|
BuildRequires: %{python_module cbor2 >= 5.2.0}
|
|
BuildRequires: %{python_module cffi >= 1.14.5}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module flatbuffers >= 1.12}
|
|
BuildRequires: %{python_module hyperlink >= 21.0.0}
|
|
BuildRequires: %{python_module lz4 >= 0.7.0}
|
|
BuildRequires: %{python_module msgpack >= 1.0.2}
|
|
BuildRequires: %{python_module passlib >= 1.7.4}
|
|
BuildRequires: %{python_module py-ubjson >= 0.16.1}
|
|
BuildRequires: %{python_module pyOpenSSL >= 20.0.1}
|
|
BuildRequires: %{python_module pytest >= 2.8.6}
|
|
BuildRequires: %{python_module pytest-aiohttp}
|
|
BuildRequires: %{python_module pytest-asyncio}
|
|
BuildRequires: %{python_module pytrie >= 0.4.0}
|
|
BuildRequires: %{python_module service_identity >= 16.0.0}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module txaio >= 21.2.1}
|
|
BuildRequires: %{python_module ujson >= 4.0.2}
|
|
BuildRequires: %{python_module wsaccel >= 0.6.3}
|
|
BuildRequires: %{python_module zope.interface >= 5.2.0}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-PyNaCl >= 1.0.1
|
|
Requires: python-PyQRCode >= 1.2.1
|
|
Requires: python-Twisted >= 20.3.0
|
|
Requires: python-argon2-cffi >= 20.1.0
|
|
Requires: python-attrs >= 20.3.0
|
|
Requires: python-cbor >= 1.0.0
|
|
Requires: python-cbor2 >= 5.2.0
|
|
Requires: python-cffi >= 1.14.5
|
|
Requires: python-flatbuffers >= 1.12
|
|
Requires: python-hyperlink >= 21.0.0
|
|
Requires: python-lz4 >= 0.7.0
|
|
Requires: python-msgpack >= 1.0.2
|
|
Requires: python-passlib >= 1.7.4
|
|
Requires: python-py-ubjson >= 0.16.1
|
|
Requires: python-pyOpenSSL >= 20.0.1
|
|
Requires: python-pytrie >= 0.4.0
|
|
Requires: python-service_identity >= 16.0.0
|
|
Requires: python-txaio >= 21.2.1
|
|
Requires: python-ujson >= 4.0.2
|
|
Requires: python-wsaccel >= 0.6.3
|
|
Requires: python-zope.interface >= 5.2.0
|
|
Requires(post): update-alternatives
|
|
Requires(postun):update-alternatives
|
|
%python_subpackages
|
|
|
|
%description
|
|
WebSocket allows bidirectional real-time messaging on the Web and WAMP adds
|
|
asynchronous Remote Procedure Calls and Publish & Subscribe on top of WebSocket.
|
|
|
|
%prep
|
|
%setup -q -n autobahn-%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
|
|
# this test relies too much on rng that can behave randomly in obs
|
|
rm autobahn/test/test_rng.py
|
|
|
|
%build
|
|
%if %{with nvx_support}
|
|
export AUTOBAHN_USE_NVX=true
|
|
%endif
|
|
export CFLAGS="%{optflags}"
|
|
%python_build
|
|
|
|
%install
|
|
%if %{with nvx_support}
|
|
export AUTOBAHN_USE_NVX=true
|
|
%endif
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/wamp
|
|
%python_clone -a %{buildroot}%{_bindir}/xbrnetwork
|
|
%python_clone -a %{buildroot}%{_bindir}/xbrnetwork-ui
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%if %{with nvx_support}
|
|
# It tries to test NVX, even if disabled
|
|
%check
|
|
export USE_ASYNCIO=true
|
|
export AUTOBAHN_USE_NVX=true
|
|
export PYTHONDONTWRITEBYTECODE=1
|
|
export PY_IGNORE_IMPORTMISMATCH=1
|
|
%pytest_arch
|
|
%endif
|
|
|
|
%post
|
|
%python_install_alternative wamp xbrnetwork xbrnetwork-ui
|
|
|
|
%postun
|
|
%python_uninstall_alternative wamp xbrnetwork xbrnetwork-ui
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%{python_sitearch}/*
|
|
%python_alternative %{_bindir}/wamp
|
|
%python_alternative %{_bindir}/xbrnetwork
|
|
%python_alternative %{_bindir}/xbrnetwork-ui
|
|
|
|
%changelog
|