From cad06eaf913764a65c4a6027d70c8839ee66c6ebe038f9929b292860bc5627c1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 8 Nov 2021 19:54:30 +0000 Subject: [PATCH] - build websockify for all flavors OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockify?expand=0&rev=48 --- python-websockify.changes | 5 +++++ python-websockify.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/python-websockify.changes b/python-websockify.changes index 3423d59..cc2ca75 100644 --- a/python-websockify.changes +++ b/python-websockify.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Nov 8 19:53:48 UTC 2021 - Dirk Müller + +- build websockify for all flavors + ------------------------------------------------------------------- Fri Aug 27 11:25:10 UTC 2021 - pgajdos@suse.com diff --git a/python-websockify.spec b/python-websockify.spec index c3260a6..5ee6a85 100644 --- a/python-websockify.spec +++ b/python-websockify.spec @@ -17,8 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# depends on openstack package mox3: only for primary python3 provider -%define pythons python3 +%global skip_python2 1 Name: python-websockify Version: 0.10.0 Release: 0 @@ -28,15 +27,16 @@ URL: https://github.com/novnc/websockify Source: https://github.com/novnc/websockify/archive/v%{version}.tar.gz BuildRequires: %{python_module cryptography} BuildRequires: %{python_module jwcrypto} -BuildRequires: %{python_module mox3} -BuildRequires: %{python_module numpy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module redis} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module simplejson} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildRequires: %{python_module numpy if (%python-base without python36-base)} +%if %{python_version_nodots} > 36 Requires: python-numpy +%endif Requires: python-setuptools Requires(post): update-alternatives Requires(postun):update-alternatives