From 31837437f4b7da331506bff6e1e2d96952e088dab51eb2deba719b30c8b28563 Mon Sep 17 00:00:00 2001 From: Tim Hardeck Date: Wed, 14 Nov 2018 07:59:28 +0000 Subject: [PATCH] Accepting request 648770 from home:okurz:branches:Cloud:Tools Fix double if-layer for _test OBS-URL: https://build.opensuse.org/request/show/648770 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=65 --- cf-cli.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cf-cli.spec b/cf-cli.spec index e64d66f..a02ca1e 100644 --- a/cf-cli.spec +++ b/cf-cli.spec @@ -82,6 +82,7 @@ grep -rl "0.0.0-unknown-version" ./ | xargs sed -i 's/0.0.0-unknown-version/%{ve %check echo 'Test if cf can be executed' ../go/bin/cli --version +%endif %install %if 0%{?_test} @@ -94,11 +95,12 @@ cp ci/installers/completion/cf %{buildroot}/%{_sysconfdir}/bash_completion.d/cf. %endif %files +%if 0%{?_test} +%else %defattr(-,root,root,-) %{_bindir}/cf %config %{_sysconfdir}/bash_completion.d/cf.sh %doc LICENSE NOTICE README - %endif %changelog