Matej Cepl 2018-12-04 17:25:42 +00:00 committed by Git OBS Bridge
parent a85bcf7012
commit 8ca4d180e4

View File

@ -23,7 +23,7 @@ Release: 0
Summary: WebSocket to TCP proxy/bridge
License: LGPL-3.0-only AND MPL-2.0 AND BSD-2-Clause AND BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/kanaka/websockify
URL: https://github.com/kanaka/websockify
Source: https://files.pythonhosted.org/packages/source/w/websockify/websockify-%{version}.tar.gz
# PATCH-FEATURE-UPSTREAM u_Add-support-for-inetd.patch fate#323880 msrb@suse.com -- https://github.com/novnc/websockify/pull/293
Patch1: u_Add-support-for-inetd.patch
@ -32,16 +32,14 @@ Patch2: u_Fix-inetd-mode-on-python-2.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
BuildRequires: unzip
%if 0%{?suse_version}
Recommends: python-numpy
%endif
Requires: python-setuptools
Requires: python-websockify-common = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if 0%{?suse_version}
Recommends: python-numpy
%endif
%python_subpackages
%description
@ -92,13 +90,13 @@ chmod -x include/web-socket-js/web_socket.js
%python_uninstall_alternative websockify
%files %{python_files}
%defattr(-,root,root,-)
%doc CHANGES.txt LICENSE.txt README.md
%license LICENSE.txt
%doc CHANGES.txt README.md
%python_alternative %{_bindir}/websockify
%{python_sitelib}/*
%files -n python-websockify-common
%doc LICENSE.txt
%license LICENSE.txt
%{_datadir}/websockify
%changelog