b24eaaa
# Generated by go2rpm
b24eaaa
%bcond_without check
b24eaaa
b24eaaa
# https://github.com/JamesClonk/vultr
b24eaaa
%global goipath         github.com/JamesClonk/vultr
b24eaaa
Version:                1.15.0
b24eaaa
%global tag             %{version}
b24eaaa
0c0ee19
%gometa
0c0ee19
b24eaaa
%global common_description %{expand:
b24eaaa
Vultr CLI and API client library.}
b24eaaa
b24eaaa
%global golicenses      LICENSE
b24eaaa
%global godocs          README.md
0c0ee19
0c0ee19
Name:           vultr
e65fd62
Release:        4%{?dist}
0c0ee19
Summary:        Vultr CLI
b24eaaa
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
b24eaaa
%if %{with check}
b24eaaa
# Tests
b24eaaa
BuildRequires:  golang(github.com/stretchr/testify/assert)
b24eaaa
%endif
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
b24eaaa
%gopkg
0c0ee19
0c0ee19
%prep
b24eaaa
%goprep
0c0ee19
0c0ee19
%build
b24eaaa
%gobuild -o %{gobuilddir}/bin/vultr %{goipath}
0c0ee19
0c0ee19
%install
b24eaaa
%gopkginstall
b24eaaa
install -m 0755 -vd                     %{buildroot}%{_bindir}
b24eaaa
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
0c0ee19
b24eaaa
%if %{with check}
0c0ee19
%check
b24eaaa
%gocheck
b24eaaa
%endif
0c0ee19
0c0ee19
%files
0c0ee19
%license LICENSE
0c0ee19
%doc README.md
0c0ee19
%{_bindir}/vultr
0c0ee19
b24eaaa
%gopkgfiles
0c0ee19
0c0ee19
%changelog
e65fd62
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.0-4
e65fd62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e65fd62
b24eaaa
* Fri Jul 12 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.15.0-3
b24eaaa
- Update to latest Go macros
b24eaaa
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