- adapt setup process to new github release tarballs
- run go-bindata to create the in newer tarballs missing resource file (borrowed from bin/generate-language-resources to work without internet) OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=27
This commit is contained in:
parent
a361d7c375
commit
094f83aaf0
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 12 11:49:59 UTC 2017 - thardeck@suse.com
|
||||
|
||||
- adapt setup process to new github release tarballs
|
||||
- run go-bindata to create the in newer tarballs missing resource file
|
||||
(borrowed from bin/generate-language-resources to work without internet)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 15 23:40:32 UTC 2017 - thardeck@suse.com
|
||||
|
||||
|
@ -34,20 +34,23 @@ 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}
|
||||
%{go_provides}
|
||||
|
||||
%description
|
||||
This is the official command line client for Cloud Foundry.
|
||||
|
||||
%prep
|
||||
%setup -q -c -n %{name}-%{version}
|
||||
mv */* ./
|
||||
%setup -q -n cli-%{version}
|
||||
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 cf/resources/i18n_resources.go cf/i18n/resources/*.all.json
|
||||
%goprep %{import_path}
|
||||
%gobuild
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:833e05a6713a461b34e10fd613233b5ffb02e3eac6c7cd0e95fecf4c94af665e
|
||||
size 11854148
|
||||
oid sha256:1c18acbd4f797957e849843e4b08b3f32cfb5bf76e743a7e7be161532807a71d
|
||||
size 11060127
|
||||
|
Loading…
Reference in New Issue
Block a user