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.
|
2017-01-18 16:56:46 +01:00
|
|
|
|
2016-10-28 14:56:08 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2017-01-18 16:56:46 +01:00
|
|
|
#
|
2016-10-28 14:56:08 +02:00
|
|
|
|
|
|
|
%define import_path code.cloudfoundry.org/cli
|
|
|
|
|
|
|
|
Name: cf-cli
|
2017-03-03 16:14:24 +01:00
|
|
|
Version: 6.25.0
|
2016-10-28 14:56:08 +02:00
|
|
|
Release: 0
|
|
|
|
License: Apache-2.0
|
|
|
|
Summary: Cloud Foundry command line client
|
|
|
|
Url: https://github.com/cloudfoundry/cli
|
|
|
|
Group: System/Management
|
2017-03-03 16:14:24 +01:00
|
|
|
Source: https://github.com/cloudfoundry/cli/archive/v%{version}.tar.gz
|
2016-10-28 14:56:08 +02:00
|
|
|
Source1: README
|
2017-01-18 16:56:46 +01:00
|
|
|
BuildRequires: go >= 1.7.0
|
2016-10-28 14:56:08 +02:00
|
|
|
BuildRequires: golang-packaging
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%{go_provides}
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is the official command line client for Cloud Foundry.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n cli-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd %{_builddir}/cli-%{version}
|
2017-01-18 16:56:46 +01:00
|
|
|
# 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'
|
2016-10-28 14:56:08 +02:00
|
|
|
%goprep %{import_path}
|
|
|
|
%gobuild
|
|
|
|
|
|
|
|
%install
|
2017-03-21 15:24:32 +01:00
|
|
|
install -m 755 -d %{buildroot}/%{_sysconfdir}/bash_completion.d
|
|
|
|
cp ci/installers/completion/cf %{buildroot}/%{_sysconfdir}/bash_completion.d/cf
|
2016-10-28 14:56:08 +02:00
|
|
|
mkdir -p %{buildroot}/usr/bin
|
|
|
|
cp ../go/bin/cli %{buildroot}/usr/bin/cf
|
2017-01-18 16:56:46 +01:00
|
|
|
cp %{SOURCE1} ./
|
2016-10-28 14:56:08 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
/usr/bin/cf
|
|
|
|
%defattr(-,root,root,-)
|
2017-03-21 15:24:32 +01:00
|
|
|
%config %{_sysconfdir}/bash_completion.d/cf
|
2017-01-18 16:56:46 +01:00
|
|
|
%doc CHANGELOG.md LICENSE NOTICE README
|
2016-10-28 14:56:08 +02:00
|
|
|
|
|
|
|
%changelog
|