diff --git a/anda/go/curlie/anda.hcl b/anda/go/curlie/anda.hcl new file mode 100644 index 0000000000..2b5b10bbd8 --- /dev/null +++ b/anda/go/curlie/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + rpm { + spec = "golang-github-rs-curlie.spec" + sources = "." + } +} diff --git a/anda/go/curlie/golang-github-rs-curlie.spec b/anda/go/curlie/golang-github-rs-curlie.spec new file mode 100644 index 0000000000..e97d0922d1 --- /dev/null +++ b/anda/go/curlie/golang-github-rs-curlie.spec @@ -0,0 +1,62 @@ +# Generated by go2rpm 1.8.2 +%bcond_without check + +# https://github.com/rs/curlie +%global goipath github.com/rs/curlie +Version: 1.6.9 + +%gometa -f + +%global common_description %{expand: +The power of curl, the ease of use of httpie.} + +%global golicenses LICENSE +%global godocs README.md + +Name: %{goname} +Release: %autorelease +Summary: The power of curl, the ease of use of httpie + +License: MIT +URL: %{gourl} +Source: %{gosource} + +%description %{common_description} + +%gopkg + +%prep +%goprep + +%generate_buildrequires +%go_generate_buildrequires + +%build +%gobuild -o %{gobuilddir}/bin/curlie %{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 +%{_bindir}/curlie + +%gopkgfiles + +%changelog +%autochangelog + +%package -n curlie +Summary: The power of curl, the ease of use of httpie +%description -n curlie %{common_description} +%files -n curlie +%license LICENSE +%{_bindir}/curlie