- 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:
Tim Hardeck 2017-10-12 11:54:00 +00:00 committed by Git OBS Bridge
parent a361d7c375
commit 094f83aaf0
3 changed files with 14 additions and 4 deletions

View File

@ -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 Fri Sep 15 23:40:32 UTC 2017 - thardeck@suse.com

View File

@ -34,20 +34,23 @@ Source1: README
BuildRequires: go >= 1.8.3 BuildRequires: go >= 1.8.3
BuildRequires: golang-packaging BuildRequires: golang-packaging
BuildRequires: xz BuildRequires: xz
BuildRequires: golang-github-jteeuwen-go-bindata
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{go_nostrip}
%{go_provides} %{go_provides}
%description %description
This is the official command line client for Cloud Foundry. This is the official command line client for Cloud Foundry.
%prep %prep
%setup -q -c -n %{name}-%{version} %setup -q -n cli-%{version}
mv */* ./
cp %{SOURCE1} ./ cp %{SOURCE1} ./
%build %build
# show correct version instead of 0.0.0 # 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' 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} %goprep %{import_path}
%gobuild %gobuild

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:833e05a6713a461b34e10fd613233b5ffb02e3eac6c7cd0e95fecf4c94af665e oid sha256:1c18acbd4f797957e849843e4b08b3f32cfb5bf76e743a7e7be161532807a71d
size 11854148 size 11060127