14
0

- Convert to multibuild to break a self-requires loop.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wcwidth?expand=0&rev=19
This commit is contained in:
2020-05-06 02:34:31 +00:00
committed by Git OBS Bridge
parent 80d5e5974f
commit 870b788558
3 changed files with 17 additions and 0 deletions

View File

@@ -17,6 +17,11 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if "%{flavor}" == "test"
%bcond_without test
%else
%bcond_with test
%endif
Name: python-wcwidth
Version: 0.1.9
Release: 0
@@ -25,7 +30,9 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/jquast/wcwidth
Source: https://files.pythonhosted.org/packages/source/w/wcwidth/wcwidth-%{version}.tar.gz
%if %{with test}
BuildRequires: %{python_module pytest}
%endif
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -60,7 +67,9 @@ release files, which this project aims to track.
}
%check
%if %{with test}
%pytest
%endif
%files %{python_files}
%license LICENSE.txt