From 8e93abc1e546a77e4beacccaabfcf811a2acc3c1 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 13 Dec 2025 15:29:30 -0800 Subject: [PATCH] add: soft-serve (#8317) (#8341) * add: soft-serve * fix: typo in summary and spec file name --------- (cherry picked from commit 9a27c100c1a7dec03988de3d9294d76e181a25f4) Co-authored-by: arbor Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/go/soft-serve/anda.hcl | 5 ++++ anda/langs/go/soft-serve/soft-serve.spec | 37 ++++++++++++++++++++++++ anda/langs/go/soft-serve/update.rhai | 1 + 3 files changed, 43 insertions(+) create mode 100644 anda/langs/go/soft-serve/anda.hcl create mode 100644 anda/langs/go/soft-serve/soft-serve.spec create mode 100644 anda/langs/go/soft-serve/update.rhai diff --git a/anda/langs/go/soft-serve/anda.hcl b/anda/langs/go/soft-serve/anda.hcl new file mode 100644 index 0000000000..d49e69aefd --- /dev/null +++ b/anda/langs/go/soft-serve/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "soft-serve.spec" + } +} diff --git a/anda/langs/go/soft-serve/soft-serve.spec b/anda/langs/go/soft-serve/soft-serve.spec new file mode 100644 index 0000000000..6de46e9464 --- /dev/null +++ b/anda/langs/go/soft-serve/soft-serve.spec @@ -0,0 +1,37 @@ +%global debug_package %{nil} + +# The command name is soft but the package and repo are soft-serve. +# The standard use for the tool is `soft serve`. +%global cmd_name soft + +Name: soft-serve +Version: 0.11.1 +Release: 1%?dist +Summary: The mighty, self-hostable Git server for the command line +URL: https://github.com/charmbracelet/%{name} +Source0: https://github.com/charmbracelet/%{name}/archive/refs/tags/v%{version}.tar.gz +License: MIT +BuildRequires: anda-srpm-macros go + +Packager: arbormoss + +%description +%summary. + +%prep +%autosetup -n %name-%version + +%build +go build -ldflags "-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \n') -s -w" -buildmode pie -compiler gc -a -x ./cmd/%{cmd_name} + +%install +install -Dm755 %{cmd_name} %{buildroot}%{_bindir}/%{cmd_name} + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{cmd_name} + +%changelog +* Fri Dec 12 2025 arbormoss +- Intial Commit diff --git a/anda/langs/go/soft-serve/update.rhai b/anda/langs/go/soft-serve/update.rhai new file mode 100644 index 0000000000..e6a17d1e07 --- /dev/null +++ b/anda/langs/go/soft-serve/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("charmbracelet/soft-serve"));