From 2eb76846bffca4bfc42e32f96c79358e6b331d41 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 20 Nov 2025 00:39:14 -0800 Subject: [PATCH] add: zola (#7504) (#7506) * add: zola * doc: remove url from summary * minor fix: seperate url and source (cherry picked from commit c568a655f5195fe4b90a37102c4048aff5df9ca9) Co-authored-by: arbor --- anda/tools/zola/anda.hcl | 5 +++++ anda/tools/zola/update.rhai | 1 + anda/tools/zola/zola.spec | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 anda/tools/zola/anda.hcl create mode 100644 anda/tools/zola/update.rhai create mode 100644 anda/tools/zola/zola.spec diff --git a/anda/tools/zola/anda.hcl b/anda/tools/zola/anda.hcl new file mode 100644 index 0000000000..0c51df00a0 --- /dev/null +++ b/anda/tools/zola/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "zola.spec" + } +} diff --git a/anda/tools/zola/update.rhai b/anda/tools/zola/update.rhai new file mode 100644 index 0000000000..ac9e75766f --- /dev/null +++ b/anda/tools/zola/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("getzola/zola")); diff --git a/anda/tools/zola/zola.spec b/anda/tools/zola/zola.spec new file mode 100644 index 0000000000..00f1c22ca9 --- /dev/null +++ b/anda/tools/zola/zola.spec @@ -0,0 +1,35 @@ +Name: zola +Version: 0.21.0 +Release: 1%?dist +Summary: A fast static site generator in a single binary with everything built-in. +URL: https://www.getzola.org +Source0: https://github.com/getzola/%{name}/archive/refs/tags/v%{version}.tar.gz +License: MIT +BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold glib2 libgcc clang + +Packager: arbormoss + +%description +%summary. + +%prep +%autosetup -n %name-%version +%cargo_prep_online + +%build +%cargo_build + +%install +install -Dm755 target/rpm/zola %{buildroot}%{_bindir}/zola +%cargo_license_summary_online +%{cargo_license_online -a} > LICENSE.dependencies + +%files +%doc README.md CHANGELOG.md CONTRIBUTING.md EXAMPLES.md +%license LICENSE +%license LICENSE.dependencies +%{_bindir}/zola + +%changelog +* Wed Nov 19 2025 arbormoss +- Intial Commit