forked from pool/python-xvfbwrapper
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xvfbwrapper?expand=0&rev=12
This commit is contained in:
committed by
Git OBS Bridge
parent
4bf42b53e8
commit
b93b05e776
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 20 07:08:27 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 4 12:56:18 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
Tue Dec 4 12:56:18 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-xvfbwrapper
|
# spec file for package python-xvfbwrapper
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-xvfbwrapper
|
Name: python-xvfbwrapper
|
||||||
Version: 0.2.9
|
Version: 0.2.9
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python wrapper for controlling X virtual framebuffer (Xvfb)
|
Summary: Python wrapper for controlling X virtual framebuffer (Xvfb)
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/cgoldberg/xvfbwrapper
|
URL: https://github.com/cgoldberg/xvfbwrapper
|
||||||
Source: https://files.pythonhosted.org/packages/source/x/xvfbwrapper/xvfbwrapper-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/x/xvfbwrapper/xvfbwrapper-%{version}.tar.gz
|
||||||
Patch0: skip_failing_test.patch
|
Patch0: skip_failing_test.patch
|
||||||
@@ -32,8 +32,10 @@ BuildRequires: python-rpm-macros
|
|||||||
Requires: xorg-x11-Xvfb
|
Requires: xorg-x11-Xvfb
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: python-mock
|
|
||||||
BuildRequires: xorg-x11-Xvfb
|
BuildRequires: xorg-x11-Xvfb
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-mock
|
||||||
|
%endif
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user