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"));