diff --git a/cf-cli.changes b/cf-cli.changes index 3da3fec..02f836b 100644 --- a/cf-cli.changes +++ b/cf-cli.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 13 09:27:33 UTC 2018 - okurz@suse.com + +- Require specific version for self-test; disable debug packages in test to prevent error about missing files + ------------------------------------------------------------------- Mon Nov 12 14:03:42 UTC 2018 - thardeck@suse.com diff --git a/cf-cli.spec b/cf-cli.spec index c986acb..d01808e 100644 --- a/cf-cli.spec +++ b/cf-cli.spec @@ -45,7 +45,7 @@ Source: v%{version}.tar.gz Source1: README Source2: cf-cli-rpmlintrc %if 0%{?_test} -BuildRequires: %{short_name} +BuildRequires: %{short_name} == %{version} %else BuildRequires: go >= 1.8.3 BuildRequires: golang-packaging @@ -84,9 +84,14 @@ echo 'Test if cf can be executed' ../go/bin/cli --version %install +%if 0%{?_test} +# disable debug packages in package test to prevent error about missing files +%define debug_package %{nil} +%else cp ../go/bin/cli %{buildroot}/%{_bindir}/cf install -m 755 -d %{buildroot}/%{_sysconfdir}/bash_completion.d cp ci/installers/completion/cf %{buildroot}/%{_sysconfdir}/bash_completion.d/cf.sh +%endif %files %defattr(-,root,root,-)