OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockify?expand=0&rev=52
This commit is contained in:
@@ -27,9 +27,10 @@ Source: https://github.com/novnc/websockify/archive/v%{version}.tar.gz
|
||||
Patch1: optional-websockify.patch
|
||||
BuildRequires: %{python_module cryptography}
|
||||
BuildRequires: %{python_module jwcrypto}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module redis}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module numpy if (%python-base without python36-base)}
|
||||
@@ -74,10 +75,10 @@ This package contains common files.
|
||||
sed -i '1 { /^#!/ d }' websockify/websock*.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%python_clone -a %{buildroot}%{_bindir}/websockify
|
||||
|
||||
@@ -94,6 +95,7 @@ sed -i '1 { /^#!/ d }' websockify/websock*.py
|
||||
%license COPYING
|
||||
%doc CHANGES.txt README.md
|
||||
%python_alternative %{_bindir}/websockify
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/websockify
|
||||
%{python_sitelib}/websockify-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user