forked from pool/python-PyVirtualDisplay
Accepting request 828220 from home:jayvdb:py-submit
- 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 OBS-URL: https://build.opensuse.org/request/show/828220 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyVirtualDisplay?expand=0&rev=25
This commit is contained in:
committed by
Git OBS Bridge
parent
0e5803d81d
commit
d404a51a41
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5b267c8ffc98fcbd084ba852ab4caef3f22e9362bc5d117e1697e767553eaf41
|
||||
size 32471
|
3
PyVirtualDisplay-1.3.2.tar.gz
Normal file
3
PyVirtualDisplay-1.3.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3fa85a6e490e45eab64e6be19841e0ab15ec8054c97f162079a061da6a93eba0
|
||||
size 14852
|
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 14 12:54:39 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- 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 <steven.kowalik@suse.com>
|
||||
|
||||
|
@@ -17,33 +17,43 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-PyVirtualDisplay
|
||||
Version: 0.2.5
|
||||
Version: 1.3.2
|
||||
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
|
||||
Recommends: xorg-x11-Xvnc
|
||||
Suggests: xorg-x11-Xvnc
|
||||
Suggests: xorg-x11-server-extra
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module EasyProcess}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
BuildRequires: %{python_module Pillow}
|
||||
BuildRequires: %{python_module attrs}
|
||||
BuildRequires: %{python_module entrypoint2}
|
||||
BuildRequires: %{python_module path.py}
|
||||
BuildRequires: %{python_module pyscreenshot}
|
||||
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
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc
|
||||
PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc.
|
||||
|
||||
%prep
|
||||
%setup -q -n PyVirtualDisplay-%{version}
|
||||
sed -i 's/from backports import tempfile/import tempfile/' tests/test_xvnc.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -52,19 +62,13 @@ PyVirtualDisplay is a python wrapper for Xvfb, Xephyr and Xvnc
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
mkdir tester
|
||||
pushd tester
|
||||
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
|
||||
$python -B -m nose pyvirtualdisplay
|
||||
}
|
||||
popd
|
||||
%endif
|
||||
# xvnc omitted due to "vncext: pseudocolour not supported"
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} xvfb-run --server-args "-screen 0 1920x1080x24" $python -m pytest tests -rs -k 'not (examples or smart or xvnc)'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc README.rst
|
||||
%doc README.md
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user