From 4027d8a290fe8e5b19e3769d529ec51025f361c2 Mon Sep 17 00:00:00 2001 From: madomado Date: Thu, 14 Aug 2025 13:56:36 +0800 Subject: [PATCH] add: chess-tui (#6050) Resolve #3249 --- anda/games/chess-tui/anda.hcl | 5 ++ anda/games/chess-tui/rust-chess-tui.spec | 92 ++++++++++++++++++++++++ anda/games/chess-tui/update.rhai | 1 + 3 files changed, 98 insertions(+) create mode 100644 anda/games/chess-tui/anda.hcl create mode 100644 anda/games/chess-tui/rust-chess-tui.spec create mode 100644 anda/games/chess-tui/update.rhai diff --git a/anda/games/chess-tui/anda.hcl b/anda/games/chess-tui/anda.hcl new file mode 100644 index 0000000000..c64d87b26e --- /dev/null +++ b/anda/games/chess-tui/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-chess-tui.spec" + } +} diff --git a/anda/games/chess-tui/rust-chess-tui.spec b/anda/games/chess-tui/rust-chess-tui.spec new file mode 100644 index 0000000000..f3c2c86236 --- /dev/null +++ b/anda/games/chess-tui/rust-chess-tui.spec @@ -0,0 +1,92 @@ +# Generated by rust2rpm 27 +%bcond check 1 + +%global crate chess-tui + +Name: rust-chess-tui +Version: 1.6.1 +Release: %autorelease +Summary: Rusty chess game in your terminal 🦀 + +License: MIT +URL: https://crates.io/crates/chess-tui +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A rusty chess game in your terminal 🦀.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +License: (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND MPL-2.0 AND (Unlicense OR MIT) AND Zlib +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc CONTRIBUTING.md +%doc README.md +%{_bindir}/chess-tui + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/CONTRIBUTING.md +%doc %{crate_instdir}/README.md +%{crate_instdir}/ + +%package -n %{name}+default-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+default-devel %{_description} + +This package contains library source intended for building other packages which +use the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+chess-tui-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+chess-tui-devel %{_description} + +This package contains library source intended for building other packages which +use the "chess-tui" feature of the "%{crate}" crate. + +%files -n %{name}+chess-tui-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep_online + +%build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/games/chess-tui/update.rhai b/anda/games/chess-tui/update.rhai new file mode 100644 index 0000000000..f1c80022ed --- /dev/null +++ b/anda/games/chess-tui/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("chess-tui"));