Tomáš Chvátal 2020-03-12 08:03:45 +00:00 committed by Git OBS Bridge
parent 5d5f38bfd1
commit 11c2d4373e
2 changed files with 10 additions and 3 deletions

View File

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

View File

@ -17,22 +17,24 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-tomlkit
Version: 0.5.11
Release: 0
Summary: Style preserving TOML library
License: MIT
Group: Development/Languages/Python
URL: https://github.com/sdispater/tomlkit
Source: https://files.pythonhosted.org/packages/source/t/tomlkit/tomlkit-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing >= 3.6}
BuildRequires: fdupes
BuildRequires: python-enum34
BuildRequires: python-functools32
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with python2}
BuildRequires: python-enum34
BuildRequires: python-functools32
%endif
%ifpython2
Requires: python-enum34
Requires: python-functools32