2012-03-26 11:46:52 +00:00
#
# spec file for package python-PyVirtualDisplay
#
2021-03-29 06:29:45 +00:00
# Copyright (c) 2021 SUSE LLC
2012-03-26 11:46:52 +00:00
#
# 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.
2013-01-14 09:00:38 +00:00
2018-12-04 13:57:26 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2012-03-26 11:46:52 +00:00
#
2013-01-14 09:00:38 +00:00
2017-08-28 19:45:33 +00:00
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
2012-03-26 11:46:52 +00:00
Name : python-PyVirtualDisplay
2021-03-29 06:29:45 +00:00
Version : 2.1
2012-03-26 11:46:52 +00:00
Release : 0
Summary : Python wrapper for Xvfb, Xephyr and Xvnc
License : BSD-2-Clause
2018-12-04 17:20:34 +00:00
URL : https://github.com/ponty/PyVirtualDisplay
2017-08-28 19:45:33 +00:00
Source : https://files.pythonhosted.org/packages/source/P/PyVirtualDisplay/PyVirtualDisplay-%{version} .tar.gz
BuildRequires : fdupes
BuildRequires : python-rpm-macros
Requires : python-EasyProcess
Requires : xorg-x11-Xvfb
2020-08-21 09:40:13 +00:00
Suggests : xorg-x11-Xvnc
2017-08-28 19:45:33 +00:00
Suggests : xorg-x11-server-extra
BuildArch : noarch
2020-08-21 09:40:13 +00:00
# SECTION test requirements
2018-12-04 17:20:34 +00:00
BuildRequires : %{python_module EasyProcess}
2020-08-21 09:40:13 +00:00
BuildRequires : %{python_module Pillow}
BuildRequires : %{python_module attrs}
BuildRequires : %{python_module entrypoint2}
2021-03-29 06:29:45 +00:00
BuildRequires : %{python_module psutil}
2020-08-21 09:40:13 +00:00
BuildRequires : %{python_module pytest}
BuildRequires : %{python_module setuptools}
BuildRequires : %{python_module vncdotool >= 0.13.0}
BuildRequires : maim
BuildRequires : xmessage
BuildRequires : xorg-x11-server-extra
BuildRequires : xvfb-run
# /SECTION
2017-08-28 19:45:33 +00:00
%python_subpackages
2012-03-26 11:46:52 +00:00
%description
2020-08-21 09:40:13 +00:00
PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc.
2012-03-26 11:46:52 +00:00
%prep
%setup -q -n PyVirtualDisplay-%{version}
%build
2017-08-28 19:45:33 +00:00
%python_build
2012-03-26 11:46:52 +00:00
%install
2017-08-28 19:45:33 +00:00
%python_install
%python_expand %fdupes %{buildroot} %{$python_sitelib}
%check
2020-08-21 09:40:13 +00:00
# xvnc omitted due to "vncext: pseudocolour not supported"
%python_expand PYTHONPATH=%{buildroot} %{$python_sitelib} xvfb-run --server-args " - s c r e e n 0 1 9 2 0 x 1 0 8 0 x 2 4 " $python -m pytest tests -rs -k 'not (examples or smart or xvnc)'
2012-03-26 11:46:52 +00:00
2017-08-28 19:45:33 +00:00
%files %{python_files}
2018-12-04 17:20:34 +00:00
%license LICENSE.txt
2020-08-21 09:40:13 +00:00
%doc README.md
2021-03-29 06:29:45 +00:00
%{python_sitelib} /pyvirtualdisplay
%{python_sitelib} /PyVirtualDisplay-%{version} -*info
2012-03-26 11:46:52 +00:00
%changelog