|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package python-websockify
|
|
|
|
# spec file for package python-websockify
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
@@ -16,6 +16,11 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
|
|
|
|
%bcond_without libalternatives
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%bcond_with libalternatives
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
Name: python-websockify
|
|
|
|
Name: python-websockify
|
|
|
|
Version: 0.12.0
|
|
|
|
Version: 0.12.0
|
|
|
|
@@ -34,10 +39,15 @@ BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
|
|
|
|
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
|
|
|
|
|
|
|
|
Requires: python-jwcrypto
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%if %{with libalternatives}
|
|
|
|
|
|
|
|
BuildRequires: alts
|
|
|
|
|
|
|
|
Requires: alts
|
|
|
|
|
|
|
|
%else
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
Requires: python-jwcrypto
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
Recommends: python-redis
|
|
|
|
Recommends: python-redis
|
|
|
|
Recommends: python-requests
|
|
|
|
Recommends: python-requests
|
|
|
|
@@ -84,6 +94,9 @@ sed -i '1 { /^#!/ d }' websockify/websock*.py
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%pytest -k 'not test_asymmetric_jwe_token_plugin'
|
|
|
|
%pytest -k 'not test_asymmetric_jwe_token_plugin'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
%python_libalternatives_reset_alternative websockify
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
%python_install_alternative websockify
|
|
|
|
%python_install_alternative websockify
|
|
|
|
|
|
|
|
|
|
|
|
|