diff --git a/python-pytest-shutil.changes b/python-pytest-shutil.changes index f766c7d..c17b022 100644 --- a/python-pytest-shutil.changes +++ b/python-pytest-shutil.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 13 12:37:42 UTC 2020 - Tomáš Chvátal + +- Build without python2 present + ------------------------------------------------------------------- Sat Dec 28 18:31:07 UTC 2019 - Ondřej Súkup diff --git a/python-pytest-shutil.spec b/python-pytest-shutil.spec index 8f2db64..93f60e3 100644 --- a/python-pytest-shutil.spec +++ b/python-pytest-shutil.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-shutil # -# Copyright (c) 2019 SUSE LLC +# 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,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-pytest-shutil Version: 1.7.0 Release: 0 @@ -34,7 +35,9 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: %{python_module termcolor} BuildRequires: fdupes +%if %{with python2} BuildRequires: python-contextlib2 +%endif BuildRequires: python-rpm-macros Requires: python-execnet Requires: python-mock