Adding README.md, .gitignore, .gitattributes; adding python-websocket-client files
This commit is contained in:
77
python-websocket-client.spec
Normal file
77
python-websocket-client.spec
Normal file
@@ -0,0 +1,77 @@
|
||||
#
|
||||
# spec file for package python-websocket-client
|
||||
#
|
||||
# Copyright (c) 2024 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/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python311 1
|
||||
%define skip_python312 1
|
||||
%define short_name websocket
|
||||
|
||||
Name: python-websocket-client
|
||||
Version: 1.8.0
|
||||
Release: 0
|
||||
Summary: WebSocket client for Python with low level API options
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/websocket-client/websocket-client.git
|
||||
#Source: https://files.pythonhosted.org/packages/source/w/websocket-client/websocket-client-%%{version}.tar.gz
|
||||
Source: https://github.com/websocket-client/websocket-client/archive/refs/tags/v%{version}.tar.gz#/websocket-client-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Suggests: python-Sphinx >= 3.4
|
||||
Suggests: python-sphinx_rtd_theme >= 0.5
|
||||
Suggests: python-python-socks
|
||||
Suggests: python-wsaccel
|
||||
Suggests: python-websockets
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
WebSocket client for Python with low level API options
|
||||
|
||||
%prep
|
||||
%setup -q -n websocket-client-%{version}
|
||||
find . -type f -exec sed -i 's@#!%{_bindir}/env python$@#!%{_bindir}/python@' {} +
|
||||
find . -type f -exec sed -i 's@#!%{_bindir}/env python3$@#!%{_bindir}/python3@' {} +
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/wsdump
|
||||
|
||||
%python_expand sed -i '1d' %{buildroot}%{$python_sitelib}/websocket/_wsdump.py
|
||||
%python_expand sed -i '1d' %{buildroot}%{$python_sitelib}/websocket/tests/echo-server.py
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative wsdump
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative wsdump
|
||||
|
||||
%files %{python_files}
|
||||
%doc ChangeLog README.md
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/wsdump
|
||||
%{python_sitelib}/%{short_name}*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user