From 2525f1f104e64a30e32ea703cd09fd0b7bc9ab235f713265058b4e516d574af8 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 24 May 2018 20:56:57 +0000 Subject: [PATCH] Accepting request 611981 from devel:languages:python:misc Run a headless display inside X virtual framebuffer OBS-URL: https://build.opensuse.org/request/show/611981 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xvfbwrapper?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-xvfbwrapper.changes | 18 ++++++++++ python-xvfbwrapper.spec | 69 ++++++++++++++++++++++++++++++++++++++ xvfbwrapper-0.2.9.tar.gz | 3 ++ 5 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-xvfbwrapper.changes create mode 100644 python-xvfbwrapper.spec create mode 100644 xvfbwrapper-0.2.9.tar.gz 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/python-xvfbwrapper.changes b/python-xvfbwrapper.changes new file mode 100644 index 0000000..45b6db9 --- /dev/null +++ b/python-xvfbwrapper.changes @@ -0,0 +1,18 @@ +------------------------------------------------------------------- +Thu May 24 18:11:45 UTC 2018 - toddrme2178@gmail.com + +- Spec file cleanups + +------------------------------------------------------------------- +Tue Nov 7 18:25:52 UTC 2017 - toddrme2178@gmail.com + +- Update to version 0.2.9 + * No changelog +- Implement single-spec version + +------------------------------------------------------------------- +Tue Sep 16 15:43:15 UTC 2014 - tbechtold@suse.com + +- Initial version + + diff --git a/python-xvfbwrapper.spec b/python-xvfbwrapper.spec new file mode 100644 index 0000000..fbc3355 --- /dev/null +++ b/python-xvfbwrapper.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-xvfbwrapper +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-xvfbwrapper +Version: 0.2.9 +Release: 0 +License: MIT +Summary: Run a headless display inside X virtual framebuffer (Xvfb) +Url: https://github.com/cgoldberg/xvfbwrapper +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/x/xvfbwrapper/xvfbwrapper-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: python-mock +BuildRequires: xorg-x11-Xvfb +# /SECTION +Requires: xorg-x11-Xvfb +BuildArch: noarch + +%python_subpackages + +%description +Xvfbwrapper is a python wrapper for controlling Xvfb. + +Xvfb (X virtual framebuffer) is a display server implementing the X11 +display server protocol. It runs in memory and does not require a +physical display. Only a network layer is necessary. + +Xvfb is especially useful for running acceptance tests on headless +servers. + +%prep +%setup -q -n xvfbwrapper-%{version} +sed -i -e '/^#!\//, 1d' xvfbwrapper.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec -m unittest discover + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/xvfbwrapper-0.2.9.tar.gz b/xvfbwrapper-0.2.9.tar.gz new file mode 100644 index 0000000..ecdd77f --- /dev/null +++ b/xvfbwrapper-0.2.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bcf4ae571941b40254faf7a73432dfc119ad21ce688f1fdec533067037ecfc24 +size 5575