diff --git a/python-pytest-shutil.changes b/python-pytest-shutil.changes index 8db1594..43257eb 100644 --- a/python-pytest-shutil.changes +++ b/python-pytest-shutil.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Dec 28 17:36:29 UTC 2019 - Ondřej Súkup + +- fix dependency on python-path.py + ------------------------------------------------------------------- Mon Jun 3 09:07:17 UTC 2019 - Tomáš Chvátal diff --git a/python-pytest-shutil.spec b/python-pytest-shutil.spec index 4823278..a634875 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 LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -38,12 +38,12 @@ BuildRequires: python-contextlib2 BuildRequires: python-rpm-macros Requires: python-execnet Requires: python-mock -Requires: python-path.py Requires: python-pytest Requires: python-six Requires: python-termcolor %ifpython2 Requires: python-contextlib2 +Requires: python-path.py %endif BuildArch: noarch @@ -55,7 +55,8 @@ tools for automated tests. %prep %setup -q -n pytest-shutil-%{version} -sed -i '/contextlib2/d' setup.py +sed -i 's/contextlib2/contextlib2;python_version<"3"/' setup.py +sed -i 's/path\.py/path\.py;python_version<"3"/' setup.py %build %python_build