From 9bd84d93e3c7a812b1ed7887745407bd6222280fe786e79576d668089c669d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 12 May 2025 08:54:13 +0000 Subject: [PATCH] - Remove python-vncdotool build dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyVirtualDisplay?expand=0&rev=39 --- .gitattributes | 23 +++++++ .gitignore | 1 + PyVirtualDisplay-3.0.tar.gz | 3 + _multibuild | 3 + python-PyVirtualDisplay.changes | 110 ++++++++++++++++++++++++++++++++ python-PyVirtualDisplay.spec | 98 ++++++++++++++++++++++++++++ 6 files changed, 238 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 PyVirtualDisplay-3.0.tar.gz create mode 100644 _multibuild create mode 100644 python-PyVirtualDisplay.changes create mode 100644 python-PyVirtualDisplay.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc 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 new file mode 100644 index 0000000..45a7f13 --- /dev/null +++ b/python-PyVirtualDisplay.changes @@ -0,0 +1,110 @@ +------------------------------------------------------------------- +Mon May 12 07:45:40 UTC 2025 - Daniel Garcia + +- Remove python-vncdotool build dependency + +------------------------------------------------------------------- +Wed Sep 6 22:54:38 UTC 2023 - Dirk Müller + +- require who to builld with coreutils-systemd split + +------------------------------------------------------------------- +Sat Jun 10 09:54:17 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Feb 22 17:17:01 UTC 2023 - Daniel Garcia + +- Disable broken test, test_disp_var + +------------------------------------------------------------------- +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 + +- Update to v2.2 + * no release notes +- Disable python2: not supported, not resolvable on Leaps + +------------------------------------------------------------------- +Sat Mar 27 13:35:24 UTC 2021 - Ben Greiner + +- Update to v2.1 + * no release notes + +------------------------------------------------------------------- +Fri Aug 14 12:54:39 UTC 2020 - John Vandenberg + +- Remove %bcond_without test and activate test suite +- Update to v1.3.2 + * No changelog available + See https://github.com/ponty/PyVirtualDisplay/compare/0.2.5...1.3.2 + +------------------------------------------------------------------- +Mon Mar 2 04:20:32 UTC 2020 - Steve Kowalik + +- Update to 0.2.5: + * No changelog available + +------------------------------------------------------------------- +Thu Nov 7 15:35:24 UTC 2019 - Matej Cepl + +- Run through spec-cleaner + +------------------------------------------------------------------- +Tue Dec 18 18:00:11 UTC 2018 - Matej Cepl + +- Also remove nonsensical dependency on python3-2to3 + +------------------------------------------------------------------- +Tue Dec 4 12:53:20 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Mon Aug 28 19:33:27 UTC 2017 - toddrme2178@gmail.com + +- update to version 0.2.1: + * no changelog available +- Implement single-spec version +- Fix source URL + +------------------------------------------------------------------- +Tue May 12 12:55:54 UTC 2015 - benoit.monin@gmx.fr + +- update to version 0.1.5: + * no changelog available + +------------------------------------------------------------------- +Thu Oct 24 11:13:02 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Sun Feb 17 14:09:21 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.1.1: + * No changelog available + +------------------------------------------------------------------- +Fri Jan 11 21:24:15 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Fri Jan 11 21:23:46 UTC 2013 - p.drouand@gmail.com + +- Update to 0.1.1 version: + * bugfix for wx pyscreenshot backend + * remove entrypoint2 dependency + +------------------------------------------------------------------- +Mon Mar 26 11:34:20 UTC 2012 - saschpe@suse.de + +- Initial version + diff --git a/python-PyVirtualDisplay.spec b/python-PyVirtualDisplay.spec new file mode 100644 index 0000000..06d0043 --- /dev/null +++ b/python-PyVirtualDisplay.spec @@ -0,0 +1,98 @@ +# +# spec file for package python-PyVirtualDisplay +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +%{?sle15_python_module_pythons} +Name: python-PyVirtualDisplay%{psuffix} +Version: 3.0 +Release: 0 +Summary: Python wrapper for Xvfb, Xephyr and Xvnc +License: BSD-2-Clause +URL: https://github.com/ponty/PyVirtualDisplay +Source: https://files.pythonhosted.org/packages/source/P/PyVirtualDisplay/PyVirtualDisplay-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-EasyProcess +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} +BuildRequires: %{python_module entrypoint2} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module pytest} +BuildRequires: /usr/bin/who +BuildRequires: xmessage +BuildRequires: xorg-x11-server-extra +BuildRequires: xvfb-run +# /SECTION +%endif +%python_subpackages + +%description +PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc. + +%prep +%setup -q -n PyVirtualDisplay-%{version} +# Ignore test_xvnc.py to remove python-vncdotool build dependency +rm tests/test_xvnc.py + +%build +%python_build + +%install +%if !%{with test} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +donttest="examples or smart" +# This test fails sometimes because a race condition with threads +donttest+=" or test_disp_var" +%{python_expand # +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