From 071aacf2047802129b3251d298c8b40a2b36c71464f604ba03eb82d5836dc0e1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 15 Aug 2018 12:39:16 +0000 Subject: [PATCH 1/2] Fix conditions when to enanle tests and when not. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pbr?expand=0&rev=90 --- python-pbr.changes | 5 +++++ python-pbr.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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..9850a83 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 From fba4c4860713ca6632d1f1ffef3e0d3181221706ee7267398b09b1f54796fde9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 15 Aug 2018 12:40:27 +0000 Subject: [PATCH 2/2] Make checking happy. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pbr?expand=0&rev=91 --- python-pbr.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-pbr.spec b/python-pbr.spec index 9850a83..4f6df42 100644 --- a/python-pbr.spec +++ b/python-pbr.spec @@ -39,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}