2016-10-28 14:56:08 +02:00
|
|
|
#
|
|
|
|
# spec file for package cf-cli
|
|
|
|
#
|
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
%define import_path code.cloudfoundry.org/cli
|
|
|
|
|
|
|
|
Name: cf-cli
|
|
|
|
Version: 6.22.2
|
|
|
|
Release: 0
|
|
|
|
License: Apache-2.0
|
|
|
|
Summary: Cloud Foundry command line client
|
|
|
|
Url: https://github.com/cloudfoundry/cli
|
|
|
|
Group: System/Management
|
2016-12-20 15:22:28 +01:00
|
|
|
Source0: v%{version}.tar.gz
|
2016-10-28 14:56:08 +02:00
|
|
|
Source1: README
|
2016-12-05 14:48:04 +01:00
|
|
|
Patch1: 0001-Use-plain-version-string.patch
|
2016-10-28 14:56:08 +02:00
|
|
|
BuildRequires: go >= 1.6.0
|
|
|
|
BuildRequires: golang-packaging
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{go_provides}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is the official command line client for Cloud Foundry.
|
|
|
|
|
|
|
|
%{gosrc_package}
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n cli-%{version}
|
2016-12-05 14:48:04 +01:00
|
|
|
%patch1 -p1
|
2016-10-28 14:56:08 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd %{_builddir}/cli-%{version}
|
|
|
|
%goprep %{import_path}
|
|
|
|
%gobuild
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}/usr/bin
|
|
|
|
mkdir -p %{buildroot}/usr/share/doc/packages/cf-cli
|
|
|
|
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} %{buildroot}/usr/share/doc/packages/cf-cli
|
|
|
|
|
|
|
|
#%%goinstall
|
|
|
|
%gosrc
|
|
|
|
%go_filelist
|
|
|
|
%go_filelist --source
|
|
|
|
|
|
|
|
%check
|
|
|
|
#1/9 test fails - disabled
|
|
|
|
#%%gotest %%{import_path}
|
|
|
|
|
|
|
|
#%%files -f file.lst
|
|
|
|
%files
|
|
|
|
/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,-)
|
|
|
|
%doc CHANGELOG.md LICENSE NOTICE
|
|
|
|
|
|
|
|
%files source -f source.lst
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|