From 444dced18574c9c32caff167a42fff349a18e8eeee25901173ac2a517b9e1005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Mar 2020 12:38:41 +0000 Subject: [PATCH] - Build without python2 present OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-shutil?expand=0&rev=14 --- python-pytest-shutil.changes | 5 +++++ python-pytest-shutil.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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