From bc30424b7a06353fab8cd7fefc9f35721bef8c75 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 23 Oct 2025 20:39:01 -0700 Subject: [PATCH] add: rust-motd (#6837) (#6845) --- anda/misc/rust-motd/anda.hcl | 5 +++++ anda/misc/rust-motd/rust-motd.spec | 35 ++++++++++++++++++++++++++++++ anda/misc/rust-motd/update.rhai | 1 + 3 files changed, 41 insertions(+) create mode 100644 anda/misc/rust-motd/anda.hcl create mode 100644 anda/misc/rust-motd/rust-motd.spec create mode 100644 anda/misc/rust-motd/update.rhai diff --git a/anda/misc/rust-motd/anda.hcl b/anda/misc/rust-motd/anda.hcl new file mode 100644 index 0000000000..4e15d350e7 --- /dev/null +++ b/anda/misc/rust-motd/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-motd.spec" + } +} diff --git a/anda/misc/rust-motd/rust-motd.spec b/anda/misc/rust-motd/rust-motd.spec new file mode 100644 index 0000000000..abcc88f938 --- /dev/null +++ b/anda/misc/rust-motd/rust-motd.spec @@ -0,0 +1,35 @@ +Name: rust-motd +Version: 2.1.0 +Release: 1%?dist +Summary: Beautiful, useful, configurable MOTD generation with zero runtime dependencies +URL: https://github.com/rust-motd/rust-motd +Source0: %url/archive/refs/tags/v%{version}.tar.gz +License: MIT +BuildRequires: cargo anda-srpm-macros cargo-rpm-macros mold perl + +Packager: Owen Zimmerman + +%description +%summary. + +%prep +%autosetup -n %{name}-%{version} +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install +%cargo_license_summary_online +%{cargo_license_online -a} > LICENSE.dependencies + +%files +%doc README.md DEVELOPING.md CHANGELOG.md example_config.toml example_config.kdl +%license LICENSE +%license LICENSE.dependencies +%{_bindir}/rust-motd + +%changelog +* Thu Oct 23 2025 Owen Zimmerman +- Intial Commit diff --git a/anda/misc/rust-motd/update.rhai b/anda/misc/rust-motd/update.rhai new file mode 100644 index 0000000000..3b5f0039db --- /dev/null +++ b/anda/misc/rust-motd/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("rust-motd/rust-motd"));