This commit is contained in:
parent
cfe914fc6f
commit
953313e924
@ -19,10 +19,13 @@
|
|||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
%bcond_without test
|
%bcond_without test
|
||||||
%else
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
%bcond_with test
|
%bcond_with test
|
||||||
%endif
|
%endif
|
||||||
|
Name: python-pbr%{psuffix}
|
||||||
Version: 4.3.0
|
Version: 4.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python Build Reasonableness
|
Summary: Python Build Reasonableness
|
||||||
@ -42,11 +45,6 @@ Requires(post): update-alternatives
|
|||||||
Requires(postun): update-alternatives
|
Requires(postun): update-alternatives
|
||||||
Obsoletes: python-pbr-doc
|
Obsoletes: python-pbr-doc
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if !%{with test}
|
|
||||||
Name: python-pbr
|
|
||||||
%else
|
|
||||||
Name: python-pbr-%{flavor}
|
|
||||||
%endif
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
BuildRequires: %{python_module Sphinx >= 1.6.2}
|
BuildRequires: %{python_module Sphinx >= 1.6.2}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
Loading…
Reference in New Issue
Block a user