From ad158ab3288bbdf9f640f5c14ce377018cd48fb7b4181a9d3cb4db27370f81f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 23 Apr 2020 11:21:20 +0000 Subject: [PATCH] - Do not pull python2 deps without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cli-helpers?expand=0&rev=8 --- python-cli-helpers.changes | 5 +++++ python-cli-helpers.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-cli-helpers.changes b/python-cli-helpers.changes index b27d392..8def4b9 100644 --- a/python-cli-helpers.changes +++ b/python-cli-helpers.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 23 11:20:58 UTC 2020 - Tomáš Chvátal + +- Do not pull python2 deps without python2 + ------------------------------------------------------------------- Mon Jun 17 11:18:18 UTC 2019 - Tomáš Chvátal diff --git a/python-cli-helpers.spec b/python-cli-helpers.spec index 920812d..bc01635 100644 --- a/python-cli-helpers.spec +++ b/python-cli-helpers.spec @@ -1,7 +1,7 @@ # # spec file for package python-cli-helpers # -# Copyright (c) 2019 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,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-cli-helpers Version: 1.2.1 Release: 0 @@ -43,7 +44,7 @@ BuildRequires: %{python_module pytest >= 3.0.7} BuildRequires: %{python_module tabulate >= 0.8.2} BuildRequires: %{python_module terminaltables >= 3.0.0} BuildRequires: %{python_module wcwidth} -%ifpython2 +%if %{with python2} BuildRequires: python2-backports.csv >= 1.0.0 %endif # /SECTION