- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-invocations?expand=0&rev=16
This commit is contained in:
parent
9fb378477a
commit
41ea1e05f1
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 14 08:35:22 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jul 4 12:02:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Thu Jul 4 12:02:23 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-invocations
|
# spec file for package python-invocations
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2020 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-invocations
|
Name: python-invocations
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Reusable Invoke tasks
|
Summary: Reusable Invoke tasks
|
||||||
License: BSD-2-Clause
|
License: BSD-2-Clause
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/pyinvoke/invocations
|
URL: https://github.com/pyinvoke/invocations
|
||||||
Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz
|
Source: https://github.com/pyinvoke/invocations/archive/%{version}.tar.gz
|
||||||
Patch0: invocations-no-bundled.patch
|
Patch0: invocations-no-bundled.patch
|
||||||
@ -41,7 +41,6 @@ BuildRequires: %{python_module tabulate >= 0.7.5}
|
|||||||
BuildRequires: %{python_module tqdm >= 4.8.1}
|
BuildRequires: %{python_module tqdm >= 4.8.1}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python2-enum34
|
|
||||||
Requires: python-blessings >= 1.6
|
Requires: python-blessings >= 1.6
|
||||||
Requires: python-invoke >= 1.0
|
Requires: python-invoke >= 1.0
|
||||||
Requires: python-lexicon
|
Requires: python-lexicon
|
||||||
@ -51,6 +50,9 @@ Requires: python-six
|
|||||||
Requires: python-tabulate >= 0.7.5
|
Requires: python-tabulate >= 0.7.5
|
||||||
Requires: python-tqdm >= 4.8.1
|
Requires: python-tqdm >= 4.8.1
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-enum34
|
||||||
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: python-enum34
|
Requires: python-enum34
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user