11
0
2024-10-19 11:58:19 +00:00
committed by Git OBS Bridge
parent f519bb4fcc
commit ac02230207

View File

@@ -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