15
0

- Move the Name declaration above lua code to work on Leap 42.3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanfriendly?expand=0&rev=15
This commit is contained in:
Tomáš Chvátal
2018-08-29 08:22:51 +00:00
committed by Git OBS Bridge
parent 7a6e4734e1
commit ec6069eada
2 changed files with 10 additions and 5 deletions

View File

@@ -23,6 +23,11 @@
%bcond_with test
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%if %{with test}
Name: python-humanfriendly-%{flavor}
%else
Name: python-humanfriendly
%endif
Version: 4.16.1
Release: 0
Summary: Human friendly input/output for text interfaces using Python
@@ -37,11 +42,6 @@ Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%if %{with test}
Name: python-humanfriendly-%{flavor}
%else
Name: python-humanfriendly
%endif
%if %{with test}
BuildRequires: %{python_module capturer >= 2.1}
BuildRequires: %{python_module coloredlogs >= 2}
BuildRequires: %{python_module pytest >= 3.0.7}