diff --git a/python-xvfbwrapper.changes b/python-xvfbwrapper.changes index 1394795..08880e9 100644 --- a/python-xvfbwrapper.changes +++ b/python-xvfbwrapper.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 07:08:27 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Tue Dec 4 12:56:18 UTC 2018 - Matej Cepl diff --git a/python-xvfbwrapper.spec b/python-xvfbwrapper.spec index 79edb99..7e7275a 100644 --- a/python-xvfbwrapper.spec +++ b/python-xvfbwrapper.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -17,12 +17,12 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-xvfbwrapper Version: 0.2.9 Release: 0 Summary: Python wrapper for controlling X virtual framebuffer (Xvfb) License: MIT -Group: Development/Languages/Python URL: https://github.com/cgoldberg/xvfbwrapper Source: https://files.pythonhosted.org/packages/source/x/xvfbwrapper/xvfbwrapper-%{version}.tar.gz Patch0: skip_failing_test.patch @@ -32,8 +32,10 @@ BuildRequires: python-rpm-macros Requires: xorg-x11-Xvfb BuildArch: noarch # SECTION test requirements -BuildRequires: python-mock BuildRequires: xorg-x11-Xvfb +%if %{with python2} +BuildRequires: python-mock +%endif # /SECTION %python_subpackages