diff --git a/anda/devs/asdf/anda.hcl b/anda/devs/asdf/anda.hcl new file mode 100644 index 0000000000..57eb2ef3e3 --- /dev/null +++ b/anda/devs/asdf/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "asdf.spec" + } +} diff --git a/anda/devs/asdf/asdf.spec b/anda/devs/asdf/asdf.spec new file mode 100644 index 0000000000..2185fbc043 --- /dev/null +++ b/anda/devs/asdf/asdf.spec @@ -0,0 +1,81 @@ +# Generated by go2rpm 1.18.0 +%bcond check 0 +%bcond bootstrap 0 + +%if %{with bootstrap} +%global debug_package %{nil} +%endif + +%if %{with bootstrap} +%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(.*\\)$ +%endif + +# https://github.com/asdf-vm/asdf +%global goipath github.com/asdf-vm/asdf +Version: 0.18.0 + +%gometa -f + +%global common_description %{expand: +Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & +more.} + +%global golicenses LICENSE +%global godocs docs CHANGELOG.md CONTRIBUTING.md README.md\\\ + SECURITY.md ballad-of-asdf.md help.txt version.txt + +Name: asdf +Release: %autorelease +Summary: Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more + +License: MIT +%dnl URL: %{gourl} +URL: https://asdf-vm.com +Source: %{gosource} +Packager: madonuko +Provides: golang-github-asdf-vm = %evr + +%description %{common_description} + +%gopkg + +%prep +%goprep -A +%autopatch -p1 + +%if %{without bootstrap} +#generate_buildrequires +#go_generate_buildrequires +%endif + +%if %{without bootstrap} +%build +%define gomodulesmode GO111MODULE=on +for cmd in cmd/* ; do + %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd +done +%endif + +%install +%gopkginstall +%if %{without bootstrap} +install -m 0755 -vd %{buildroot}%{_bindir} +install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ +%endif + +%if %{without bootstrap} +%if %{with check} +%check +%gocheck +%endif +%endif + +%if %{without bootstrap} +%files +%license LICENSE +%doc docs CHANGELOG.md CONTRIBUTING.md README.md SECURITY.md ballad-of-asdf.md +%doc help.txt version.txt +%{_bindir}/asdf +%endif + +%gopkgfiles diff --git a/anda/devs/asdf/update.rhai b/anda/devs/asdf/update.rhai new file mode 100644 index 0000000000..8f29d778ec --- /dev/null +++ b/anda/devs/asdf/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("asdf-vm/asdf"));