Accepting request 648700 from home:okurz:branches:Cloud:Tools
Require specific version for self-test; disable debug packages in test to prevent error about missing files OBS-URL: https://build.opensuse.org/request/show/648700 OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=63
This commit is contained in:
parent
c368e48133
commit
5b1bae66ff
@ -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
|
||||
|
||||
|
@ -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,-)
|
||||
|
Loading…
Reference in New Issue
Block a user