- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tomlkit?expand=0&rev=10
This commit is contained in:
parent
5d5f38bfd1
commit
11c2d4373e
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 12 08:03:32 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 11 11:15:54 UTC 2020 - pgajdos@suse.com
|
Wed Mar 11 11:15:54 UTC 2020 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -17,22 +17,24 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-tomlkit
|
Name: python-tomlkit
|
||||||
Version: 0.5.11
|
Version: 0.5.11
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Style preserving TOML library
|
Summary: Style preserving TOML library
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/sdispater/tomlkit
|
URL: https://github.com/sdispater/tomlkit
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/tomlkit/tomlkit-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/tomlkit/tomlkit-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module typing >= 3.6}
|
BuildRequires: %{python_module typing >= 3.6}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-enum34
|
|
||||||
BuildRequires: python-functools32
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-enum34
|
||||||
|
BuildRequires: python-functools32
|
||||||
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: python-enum34
|
Requires: python-enum34
|
||||||
Requires: python-functools32
|
Requires: python-functools32
|
||||||
|
Loading…
Reference in New Issue
Block a user