- remove obsolete go-bindata statement (fixes segmentation fault)
- add simple check to verify that cf does not segfault OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=31
This commit is contained in:
parent
c0c6917263
commit
301268af52
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 11 12:38:34 UTC 2017 - thardeck@suse.com
|
||||
|
||||
- remove obsolete go-bindata statement (fixes segmentation fault)
|
||||
- add simple check to verify that cf does not segfault
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 21 09:04:56 UTC 2017 - thardeck@suse.com
|
||||
|
||||
|
@ -34,7 +34,6 @@ Source1: README
|
||||
BuildRequires: go >= 1.8.3
|
||||
BuildRequires: golang-packaging
|
||||
BuildRequires: xz
|
||||
BuildRequires: golang-github-jteeuwen-go-bindata
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%{go_nostrip}
|
||||
@ -51,10 +50,13 @@ cp %{SOURCE1} ./
|
||||
%build
|
||||
# show correct version instead of 0.0.0
|
||||
grep -rl "0.0.0-unknown-version" ./ | xargs sed -i 's/0.0.0-unknown-version/%{version}/g'
|
||||
go-bindata -nometadata -pkg resources -ignore ".go" -o i18n/resources/i18n_resources.go i18n/resources/*.all.json
|
||||
%goprep %{import_path}
|
||||
%gobuild
|
||||
|
||||
%check
|
||||
echo 'Test if cf can be executed'
|
||||
../go/bin/cli --version
|
||||
|
||||
%install
|
||||
cp ../go/bin/cli %{buildroot}/%{_bindir}/cf
|
||||
install -m 755 -d %{buildroot}/%{_sysconfdir}/bash_completion.d
|
||||
|
Loading…
Reference in New Issue
Block a user