14
0

Accepting request 1038358 from home:Simmphonie:branches:devel:languages:python

- Update to v3.0
  * no release notes

OBS-URL: https://build.opensuse.org/request/show/1038358
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyVirtualDisplay?expand=0&rev=30
This commit is contained in:
2022-11-26 22:27:21 +00:00
committed by Git OBS Bridge
parent 874a84aa93
commit d807aafdd4
5 changed files with 33 additions and 7 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ecda6b183b03ba65dcfdf0019809722480d7b7e10eea6e3a40bf1ba3146bab7
size 18075

BIN
PyVirtualDisplay-3.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

3
_multibuild Normal file
View File

@@ -0,0 +1,3 @@
<multibuild>
<package>test</package>
</multibuild>

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Nov 26 17:51:26 UTC 2022 - Torsten Gruner <simmphonie@opensuse.org>
- Update to v3.0
* no release notes
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Oct 16 09:16:00 UTC 2021 - Ben Greiner <code@bnavigator.de> Sat Oct 16 09:16:00 UTC 2021 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-PyVirtualDisplay # spec file
# #
# Copyright (c) 2021 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,10 +16,18 @@
# #
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%{?!python_module:%define python_module() python3-%{**}} %{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-PyVirtualDisplay Name: python-PyVirtualDisplay%{psuffix}
Version: 2.2 Version: 3.0
Release: 0 Release: 0
Summary: Python wrapper for Xvfb, Xephyr and Xvnc Summary: Python wrapper for Xvfb, Xephyr and Xvnc
License: BSD-2-Clause License: BSD-2-Clause
@@ -33,7 +41,9 @@ Requires: xorg-x11-Xvfb
Suggests: xorg-x11-Xvnc Suggests: xorg-x11-Xvnc
Suggests: xorg-x11-server-extra Suggests: xorg-x11-server-extra
BuildArch: noarch BuildArch: noarch
%if %{with test}
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module PyVirtualDisplay}
BuildRequires: %{python_module EasyProcess} BuildRequires: %{python_module EasyProcess}
BuildRequires: %{python_module Pillow} BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module attrs} BuildRequires: %{python_module attrs}
@@ -46,6 +56,7 @@ BuildRequires: xmessage
BuildRequires: xorg-x11-server-extra BuildRequires: xorg-x11-server-extra
BuildRequires: xvfb-run BuildRequires: xvfb-run
# /SECTION # /SECTION
%endif
%python_subpackages %python_subpackages
%description %description
@@ -58,9 +69,12 @@ PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc.
%python_build %python_build
%install %install
%if !%{with test}
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%if %{with test}
%check %check
donttest="examples or smart" donttest="examples or smart"
%{python_expand # %{python_expand #
@@ -68,11 +82,14 @@ export PYTHONPATH=%{buildroot}%{$python_sitelib}
xvfb-run --server-args "-screen 0 1920x1080x24" \ xvfb-run --server-args "-screen 0 1920x1080x24" \
$python -m pytest -v tests -rs -k "not ($donttest)" -n auto $python -m pytest -v tests -rs -k "not ($donttest)" -n auto
} }
%endif
%if !%{with test}
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.md %doc README.md
%{python_sitelib}/pyvirtualdisplay %{python_sitelib}/pyvirtualdisplay
%{python_sitelib}/PyVirtualDisplay-%{version}-*info %{python_sitelib}/PyVirtualDisplay-%{version}-*info
%endif
%changelog %changelog