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
This commit is contained in:
Tomáš Chvátal 2018-01-11 12:13:07 +00:00 committed by Git OBS Bridge
parent a335cb7705
commit 205223e3ab
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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