From d807aafdd4f67fb56199f00fd877ebf5db86a6f5fb124d3f75e1195665ff638f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 26 Nov 2022 22:27:21 +0000 Subject: [PATCH] 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 --- PyVirtualDisplay-2.2.tar.gz | 3 --- PyVirtualDisplay-3.0.tar.gz | 3 +++ _multibuild | 3 +++ python-PyVirtualDisplay.changes | 6 ++++++ python-PyVirtualDisplay.spec | 25 +++++++++++++++++++++---- 5 files changed, 33 insertions(+), 7 deletions(-) delete mode 100644 PyVirtualDisplay-2.2.tar.gz create mode 100644 PyVirtualDisplay-3.0.tar.gz create mode 100644 _multibuild diff --git a/PyVirtualDisplay-2.2.tar.gz b/PyVirtualDisplay-2.2.tar.gz deleted file mode 100644 index b803518..0000000 --- a/PyVirtualDisplay-2.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ecda6b183b03ba65dcfdf0019809722480d7b7e10eea6e3a40bf1ba3146bab7 -size 18075 diff --git a/PyVirtualDisplay-3.0.tar.gz b/PyVirtualDisplay-3.0.tar.gz new file mode 100644 index 0000000..d6c13f7 --- /dev/null +++ b/PyVirtualDisplay-3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09755bc3ceb6eb725fb07eca5425f43f2358d3bf08e00d2a9b792a1aedd16159 +size 18560 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/python-PyVirtualDisplay.changes b/python-PyVirtualDisplay.changes index 34cdf49..e9b07d7 100644 --- a/python-PyVirtualDisplay.changes +++ b/python-PyVirtualDisplay.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Nov 26 17:51:26 UTC 2022 - Torsten Gruner + +- Update to v3.0 + * no release notes + ------------------------------------------------------------------- Sat Oct 16 09:16:00 UTC 2021 - Ben Greiner diff --git a/python-PyVirtualDisplay.spec b/python-PyVirtualDisplay.spec index 9e55dcb..7fdddf0 100644 --- a/python-PyVirtualDisplay.spec +++ b/python-PyVirtualDisplay.spec @@ -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 # 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-%{**}} %define skip_python2 1 -Name: python-PyVirtualDisplay -Version: 2.2 +Name: python-PyVirtualDisplay%{psuffix} +Version: 3.0 Release: 0 Summary: Python wrapper for Xvfb, Xephyr and Xvnc License: BSD-2-Clause @@ -33,7 +41,9 @@ Requires: xorg-x11-Xvfb Suggests: xorg-x11-Xvnc Suggests: xorg-x11-server-extra BuildArch: noarch +%if %{with test} # SECTION test requirements +BuildRequires: %{python_module PyVirtualDisplay} BuildRequires: %{python_module EasyProcess} BuildRequires: %{python_module Pillow} BuildRequires: %{python_module attrs} @@ -46,6 +56,7 @@ BuildRequires: xmessage BuildRequires: xorg-x11-server-extra BuildRequires: xvfb-run # /SECTION +%endif %python_subpackages %description @@ -58,9 +69,12 @@ PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc. %python_build %install +%if !%{with test} %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif +%if %{with test} %check donttest="examples or smart" %{python_expand # @@ -68,11 +82,14 @@ export PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run --server-args "-screen 0 1920x1080x24" \ $python -m pytest -v tests -rs -k "not ($donttest)" -n auto } +%endif +%if !%{with test} %files %{python_files} %license LICENSE.txt %doc README.md %{python_sitelib}/pyvirtualdisplay %{python_sitelib}/PyVirtualDisplay-%{version}-*info +%endif %changelog