From 205223e3abee06569f9d9b915dcc606089b5f625cce315064656a942900710b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 11 Jan 2018 12:13:07 +0000 Subject: [PATCH] Accepting request 563586 from openSUSE:Factory:Staging:O - Fix build with python3 only, add condition for the py2 only deps OBS-URL: https://build.opensuse.org/request/show/563586 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8?expand=0&rev=32 --- python-flake8.changes | 5 +++++ python-flake8.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python-flake8.changes b/python-flake8.changes index 7469ffb..e74ba41 100644 --- a/python-flake8.changes +++ b/python-flake8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 11 12:11:06 UTC 2018 - tchvatal@suse.com + +- Fix build with python3 only, add condition for the py2 only deps + ------------------------------------------------------------------- Tue Oct 24 08:59:03 UTC 2017 - dmueller@suse.com diff --git a/python-flake8.spec b/python-flake8.spec index cb8d5b9..5132487 100644 --- a/python-flake8.spec +++ b/python-flake8.spec @@ -1,7 +1,7 @@ # # spec file for package python-flake8 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%bcond_without python2 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-flake8 Version: 3.5.0 @@ -36,8 +37,10 @@ BuildRequires: %{python_module pycodestyle >= 2.0.0} BuildRequires: %{python_module pyflakes >= 1.5.0} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} +%if %{with python2} BuildRequires: python2-configparser BuildRequires: python2-enum34 +%endif # /SECTION Requires: python-mccabe >= 0.6.0 Requires: python-pycodestyle >= 2.0.0