From 4502221d46b341dbcb1e99886436c7ed344b83da Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 5 Mar 2026 17:54:37 -0800 Subject: [PATCH] add: dysk (#10294) (#10308) --- anda/langs/rust/dysk/anda.hcl | 5 +++ anda/langs/rust/dysk/rust-dysk.spec | 58 +++++++++++++++++++++++++++++ anda/langs/rust/dysk/update.rhai | 1 + 3 files changed, 64 insertions(+) create mode 100644 anda/langs/rust/dysk/anda.hcl create mode 100644 anda/langs/rust/dysk/rust-dysk.spec create mode 100644 anda/langs/rust/dysk/update.rhai diff --git a/anda/langs/rust/dysk/anda.hcl b/anda/langs/rust/dysk/anda.hcl new file mode 100644 index 0000000000..92007ff08b --- /dev/null +++ b/anda/langs/rust/dysk/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-dysk.spec" + } +} diff --git a/anda/langs/rust/dysk/rust-dysk.spec b/anda/langs/rust/dysk/rust-dysk.spec new file mode 100644 index 0000000000..21f798887d --- /dev/null +++ b/anda/langs/rust/dysk/rust-dysk.spec @@ -0,0 +1,58 @@ +# Generated by rust2rpm 28 +%bcond check 1 + +%global crate dysk + +Name: rust-dysk +Version: 3.6.0 +Release: 1%?dist +Summary: Give information on mounted filesystems + +License: MIT +URL: https://crates.io/crates/dysk +Source: %{crates_source} +Packager: madonuko + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Give information on mounted filesystems.} + +%description %{_description} + +%package -n %{crate} +URL: https://dystroy.org/dysk +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 (BSD-2-Clause OR MIT OR Apache-2.0) AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) +# LICENSE.dependencies contains a full license breakdown + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%license LICENSE.dependencies +%doc CHANGELOG.md +%doc CONTRIBUTING.md +%doc README.md +%{_bindir}/dysk + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep_online + +%build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Thu Mar 05 2026 madonuko - 3.6.0-1 +- Initial package. diff --git a/anda/langs/rust/dysk/update.rhai b/anda/langs/rust/dysk/update.rhai new file mode 100644 index 0000000000..6370e40910 --- /dev/null +++ b/anda/langs/rust/dysk/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("dysk"));