diff --git a/anda/langs/go/dae/anda.hcl b/anda/langs/go/dae/anda.hcl new file mode 100644 index 0000000000..cdc3b46847 --- /dev/null +++ b/anda/langs/go/dae/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "dae.spec" + } +} diff --git a/anda/langs/go/dae/dae.spec b/anda/langs/go/dae/dae.spec new file mode 100644 index 0000000000..a34097dfc9 --- /dev/null +++ b/anda/langs/go/dae/dae.spec @@ -0,0 +1,77 @@ +# Generated by go2rpm 1.19.0 +%bcond check 1 +%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/daeuniverse/dae +%global goipath github.com/daeuniverse/dae +Version: 1.1.0 + +%gometa -f + +%global common_description %{expand: +EBPF-based Linux high-performance transparent proxy solution.} + +%global golicenses LICENSE +%global godocs docs .markdownlint-cli2.jsonc CHANGELOGS.md README.md\\\ + hack/templates/example-config.md + +Name: dae +Release: %autorelease +Summary: EBPF-based Linux high-performance transparent proxy solution + +License: AGPL-3.0-only +URL: %{gourl} +Source: %{gosource} + +%description %{common_description} + +%gopkg + +%prep +%goprep_online -A +%autopatch -p1 + +%if %{without bootstrap} +%build +%dnl for cmd in cmd/* ; do +%dnl %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd +%dnl done +%define gomodulesmode GO111MODULE=on +%gobuild -o %{gobuilddir}/bin/dae %{goipath} +%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 .markdownlint-cli2.jsonc CHANGELOGS.md README.md +%doc hack/templates/example-config.md +%{_bindir}/dae +%endif + +%gopkgfiles + +%changelog +* Mon Jun 15 2026 madonuko - 1.1.0-1 +- Initial package. diff --git a/anda/langs/go/dae/update.rhai b/anda/langs/go/dae/update.rhai new file mode 100644 index 0000000000..58908db857 --- /dev/null +++ b/anda/langs/go/dae/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("daeuniverse/dae"));