- update to version 6.23.1
- clean up doc file packaging - remove disabled checks and macros OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cf-cli?expand=0&rev=4
This commit is contained in:
parent
7f2006f5be
commit
efa351df5f
@ -1,10 +0,0 @@
|
|||||||
--- a/cf/commands/version.go 2016-12-05 14:21:12.245009000 +0100
|
|
||||||
+++ b/cf/commands/version.go 2016-12-05 14:21:43.708615000 +0100
|
|
||||||
@@ -45,6 +45,6 @@
|
|
||||||
}
|
|
||||||
|
|
||||||
func (cmd *Version) Execute(context flags.FlagContext) error {
|
|
||||||
- cmd.ui.Say(fmt.Sprintf("%s version %s-%s", cf.Name, cf.Version, cf.BuiltOnDate))
|
|
||||||
+ cmd.ui.Say(fmt.Sprintf("%s version 6.22.2", cf.Name))
|
|
||||||
return nil
|
|
||||||
}
|
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 17 17:30:36 UTC 2017 - thardeck@suse.com
|
||||||
|
|
||||||
|
- update to version 6.23.1
|
||||||
|
- clean up doc file packaging
|
||||||
|
- remove disabled checks and macros
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 20 15:18:09 CET 2016 - svollath@suse.de
|
Tue Dec 20 15:18:09 CET 2016 - svollath@suse.de
|
||||||
|
|
||||||
|
27
cf-cli.spec
27
cf-cli.spec
@ -16,9 +16,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
%define import_path code.cloudfoundry.org/cli
|
%define import_path code.cloudfoundry.org/cli
|
||||||
|
%define date_string %(date -u +"%Y-%m-%d")
|
||||||
|
|
||||||
Name: cf-cli
|
Name: cf-cli
|
||||||
Version: 6.22.2
|
Version: 6.23.1
|
||||||
Release: 0
|
Release: 0
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Summary: Cloud Foundry command line client
|
Summary: Cloud Foundry command line client
|
||||||
@ -26,8 +27,7 @@ Url: https://github.com/cloudfoundry/cli
|
|||||||
Group: System/Management
|
Group: System/Management
|
||||||
Source0: v%{version}.tar.gz
|
Source0: v%{version}.tar.gz
|
||||||
Source1: README
|
Source1: README
|
||||||
Patch1: 0001-Use-plain-version-string.patch
|
BuildRequires: go >= 1.7.0
|
||||||
BuildRequires: go >= 1.6.0
|
|
||||||
BuildRequires: golang-packaging
|
BuildRequires: golang-packaging
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
@ -40,42 +40,29 @@ This is the official command line client for Cloud Foundry.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n cli-%{version}
|
%setup -q -n cli-%{version}
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{_builddir}/cli-%{version}
|
cd %{_builddir}/cli-%{version}
|
||||||
|
# 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'
|
||||||
%goprep %{import_path}
|
%goprep %{import_path}
|
||||||
%gobuild
|
%gobuild
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}/usr/bin
|
mkdir -p %{buildroot}/usr/bin
|
||||||
mkdir -p %{buildroot}/usr/share/doc/packages/cf-cli
|
|
||||||
cp ../go/bin/cli %{buildroot}/usr/bin/cf
|
cp ../go/bin/cli %{buildroot}/usr/bin/cf
|
||||||
cp ../go/src/code.cloudfoundry.org/cli/{CHANGELOG.md,LICENSE,NOTICE} %{buildroot}/usr/share/doc/packages/cf-cli
|
cp %{SOURCE1} ./
|
||||||
cp %{SOURCE1} %{buildroot}/usr/share/doc/packages/cf-cli
|
|
||||||
|
|
||||||
#%%goinstall
|
|
||||||
%gosrc
|
%gosrc
|
||||||
%go_filelist
|
%go_filelist
|
||||||
%go_filelist --source
|
%go_filelist --source
|
||||||
|
|
||||||
%check
|
|
||||||
#1/9 test fails - disabled
|
|
||||||
#%%gotest %%{import_path}
|
|
||||||
|
|
||||||
#%%files -f file.lst
|
|
||||||
%files
|
%files
|
||||||
/usr/bin/cf
|
/usr/bin/cf
|
||||||
/usr/share/doc/packages/cf-cli
|
|
||||||
/usr/share/doc/packages/cf-cli/CHANGELOG.md
|
|
||||||
/usr/share/doc/packages/cf-cli/LICENSE
|
|
||||||
/usr/share/doc/packages/cf-cli/NOTICE
|
|
||||||
/usr/share/doc/packages/cf-cli/README
|
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGELOG.md LICENSE NOTICE
|
%doc CHANGELOG.md LICENSE NOTICE README
|
||||||
|
|
||||||
%files source -f source.lst
|
%files source -f source.lst
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fa5254a6e7197d9de86f3f9e1084d1f51f04cfa201b27c85b467a3320dbecda6
|
|
||||||
size 5399810
|
|
3
v6.23.1.tar.gz
Normal file
3
v6.23.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1e0cce57fd2ba1a32e54c7e05b0cf35ba6d16960aa843b218c44efad513383a5
|
||||||
|
size 5655471
|
Loading…
Reference in New Issue
Block a user