0c0ee19
%global goipath github.com/JamesClonk/vultr
0c0ee19
Version:        1.15.0
0c0ee19
%global tag     %{version}
0c0ee19
%gometa
0c0ee19
0c0ee19
0c0ee19
Name:           vultr
0c0ee19
Release:        2%{?dist}
0c0ee19
Summary:        Vultr CLI
0c0ee19
License:        MIT
0c0ee19
URL:            %{gourl}
0c0ee19
Source0:        %{gosource}
0c0ee19
0c0ee19
BuildRequires:  golang(github.com/jawher/mow.cli)
0c0ee19
BuildRequires:  golang(github.com/juju/ratelimit)
0c0ee19
BuildRequires:  golang(github.com/stretchr/testify/assert)
0c0ee19
BuildRequires:  golang(golang.org/x/crypto/ssh)
0c0ee19
BuildRequires:  golang(golang.org/x/crypto/ssh/agent)
0c0ee19
BuildRequires:  golang(golang.org/x/crypto/ssh/terminal)
0c0ee19
0c0ee19
0c0ee19
%description
0c0ee19
Vultr CLI is a command line tool for using the Vultr API.  It allows you to
0c0ee19
create and manage your virtual machines, SSH public keys, snapshots, and
0c0ee19
startup scripts on your Vultr account.  You can also use it to directly SSH
0c0ee19
into a Vultr virtual machine through the vultr ssh command.
0c0ee19
0c0ee19
0c0ee19
%package -n %{goname}-devel
0c0ee19
Summary:        Vultr API client library
0c0ee19
BuildArch:      noarch
0c0ee19
0c0ee19
0c0ee19
%description -n %{goname}-devel
0c0ee19
%{summary}.
0c0ee19
0c0ee19
This package contains the source code needed for building packages that import
0c0ee19
the %{goipath} Go namespace.
0c0ee19
0c0ee19
0c0ee19
%prep
0c0ee19
%autosetup
0c0ee19
rm -rf vendor
0c0ee19
0c0ee19
0c0ee19
%build
0c0ee19
%gobuildroot
0c0ee19
%gobuild -o _bin/vultr %{goipath}
0c0ee19
0c0ee19
0c0ee19
%install
0c0ee19
install -D -p -m 0755 _bin/vultr %{buildroot}%{_bindir}/vultr
0c0ee19
%goinstall -t cmd
0c0ee19
0c0ee19
0c0ee19
%check
0c0ee19
%gochecks
0c0ee19
0c0ee19
0c0ee19
%files
0c0ee19
%license LICENSE
0c0ee19
%doc README.md
0c0ee19
%{_bindir}/vultr
0c0ee19
0c0ee19
0c0ee19
%files -n %{goname}-devel -f devel.file-list
0c0ee19
%license LICENSE
0c0ee19
%doc README.md
0c0ee19
0c0ee19
0c0ee19
%changelog
0c0ee19
* Tue Jan 22 2019 Carl George <carl@george.computer> - 1.15.0-2
0c0ee19
- Expand description
0c0ee19
0c0ee19
* Sun Jan 06 2019 Carl George <carl@george.computer> - 1.15.0-1
0c0ee19
- Initial package