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