diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4657d80 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cloudstack-cloudmonkey-6.1.0.tar.gz diff --git a/apache-cloudstack-cloudmonkey.spec b/apache-cloudstack-cloudmonkey.spec new file mode 100644 index 0000000..5362e70 --- /dev/null +++ b/apache-cloudstack-cloudmonkey.spec @@ -0,0 +1,69 @@ +# Generated by go2rpm 1.2 +%bcond_without check + +# https://github.com/apache/cloudstack-cloudmonkey +%global goipath github.com/apache/cloudstack-cloudmonkey +Version: 6.1.0 +%global tag 6.1.0 + +%gometa + +%global common_description %{expand: +Apache Cloudstack Cloudmonkey is a command line interface (CLI) for Apache +CloudStack. + +CloudMonkey can be use both as an interactive shell and as a command line tool +which simplifies Apache CloudStack configuration and management.} + +%global golicenses LICENSE +%global godocs README.md CHANGES.md + +Name: apache-cloudstack-cloudmonkey +Release: 1%{?dist} +Summary: Apache Cloudstack Cloudmonkey + +# Upstream license specification: Apache-2.0 +License: ASL 2.0 +URL: %{gourl} +Source0: %{gosource} + +BuildRequires: golang(github.com/briandowns/spinner) +BuildRequires: golang(github.com/chzyer/readline) +BuildRequires: golang(github.com/gofrs/flock) +BuildRequires: golang(github.com/google/shlex) +BuildRequires: golang(github.com/mitchellh/go-homedir) +BuildRequires: golang(github.com/olekukonko/tablewriter) +BuildRequires: golang(gopkg.in/ini.v1) + +%description +%{common_description} + +%gopkg + +%prep +%goprep + +%build +%gobuild -o %{gobuilddir}/bin/cmk %{goipath} + +%install +%gopkginstall +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ + +%if %{with check} +%check +%gocheck +%endif + +%files +%license LICENSE +%doc README.md CHANGES.md +%{_bindir}/* + +%gopkgfiles + +%changelog +* Thu Oct 29 2020 Olivier Lemasle - 6.1.0-1 +- Initial package + diff --git a/sources b/sources new file mode 100644 index 0000000..34596b0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cloudstack-cloudmonkey-6.1.0.tar.gz) = c94a66e037d574406b64782a03248457504f24f611f9692e5c0b1efe184e9868f020886108790134e065085109f6586a2eee0f5633b0df9c773935c28c2009e3