diff --git a/python-pbr.changes b/python-pbr.changes index cbf0221..bb6df69 100644 --- a/python-pbr.changes +++ b/python-pbr.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Aug 15 12:38:40 UTC 2018 - mcepl@suse.com + +- Fix conditions when to enanle tests and when not. + ------------------------------------------------------------------- Mon Aug 6 10:03:48 UTC 2018 - tchvatal@suse.com diff --git a/python-pbr.spec b/python-pbr.spec index 0bb4816..4f6df42 100644 --- a/python-pbr.spec +++ b/python-pbr.spec @@ -20,8 +20,10 @@ %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %bcond_without test -%endif +%else %bcond_with test +%endif + Version: 4.1.1 Release: 0 Summary: Python Build Reasonableness @@ -37,10 +39,10 @@ Requires(post): update-alternatives Requires(postun): update-alternatives Obsoletes: python-pbr-doc BuildArch: noarch -%if %{with test} -Name: python-pbr-%{flavor} -%else +%if !%{with test} Name: python-pbr +%else +Name: python-pbr-%{flavor} %endif %if %{with test} BuildRequires: %{python_module Sphinx >= 1.6.2}