From 0c0ee19867b3d9a28813c4c7f140ffbccd10979c Mon Sep 17 00:00:00 2001 From: Carl George Date: Feb 14 2019 15:57:21 +0000 Subject: Initial import https://bugzilla.redhat.com/show_bug.cgi?id=1663709 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bd7ed43 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +vultr-*.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 6134e2e..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# vultr - -Vultr CLI \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..e9d5e68 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vultr-1.15.0.tar.gz) = 3e14f8b36dfef497755c14d56ec8b1aeb9ae0ac25f8b694591999a334fb2e8e2fa5a034e268d7313eb1f24831c3f87edada995efb806c9090244fdca7bb77f53 diff --git a/vultr.spec b/vultr.spec new file mode 100644 index 0000000..161fdd4 --- /dev/null +++ b/vultr.spec @@ -0,0 +1,76 @@ +%global goipath github.com/JamesClonk/vultr +Version: 1.15.0 +%global tag %{version} +%gometa + + +Name: vultr +Release: 2%{?dist} +Summary: Vultr CLI +License: MIT +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/jawher/mow.cli) +BuildRequires: golang(github.com/juju/ratelimit) +BuildRequires: golang(github.com/stretchr/testify/assert) +BuildRequires: golang(golang.org/x/crypto/ssh) +BuildRequires: golang(golang.org/x/crypto/ssh/agent) +BuildRequires: golang(golang.org/x/crypto/ssh/terminal) + + +%description +Vultr CLI is a command line tool for using the Vultr API. It allows you to +create and manage your virtual machines, SSH public keys, snapshots, and +startup scripts on your Vultr account. You can also use it to directly SSH +into a Vultr virtual machine through the vultr ssh command. + + +%package -n %{goname}-devel +Summary: Vultr API client library +BuildArch: noarch + + +%description -n %{goname}-devel +%{summary}. + +This package contains the source code needed for building packages that import +the %{goipath} Go namespace. + + +%prep +%autosetup +rm -rf vendor + + +%build +%gobuildroot +%gobuild -o _bin/vultr %{goipath} + + +%install +install -D -p -m 0755 _bin/vultr %{buildroot}%{_bindir}/vultr +%goinstall -t cmd + + +%check +%gochecks + + +%files +%license LICENSE +%doc README.md +%{_bindir}/vultr + + +%files -n %{goname}-devel -f devel.file-list +%license LICENSE +%doc README.md + + +%changelog +* Tue Jan 22 2019 Carl George - 1.15.0-2 +- Expand description + +* Sun Jan 06 2019 Carl George - 1.15.0-1 +- Initial package