From 71850e9f380edf024d186537d0aa5215843d3fc3 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 2 Mar 2025 06:11:41 -0800 Subject: [PATCH] add: xdvdfs (#3663) (#3673) (cherry picked from commit c536a49de3922b3cb08dc8391477b418fbd309f5) Co-authored-by: madomado --- anda/langs/rust/xdvdfs/anda.hcl | 5 ++ anda/langs/rust/xdvdfs/rust-xdvdfs-cli.spec | 52 +++++++++++++++++++++ anda/langs/rust/xdvdfs/update.rhai | 1 + 3 files changed, 58 insertions(+) create mode 100644 anda/langs/rust/xdvdfs/anda.hcl create mode 100644 anda/langs/rust/xdvdfs/rust-xdvdfs-cli.spec create mode 100644 anda/langs/rust/xdvdfs/update.rhai diff --git a/anda/langs/rust/xdvdfs/anda.hcl b/anda/langs/rust/xdvdfs/anda.hcl new file mode 100644 index 0000000000..a0ae884d2b --- /dev/null +++ b/anda/langs/rust/xdvdfs/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-xdvdfs-cli.spec" + } +} diff --git a/anda/langs/rust/xdvdfs/rust-xdvdfs-cli.spec b/anda/langs/rust/xdvdfs/rust-xdvdfs-cli.spec new file mode 100644 index 0000000000..a45f7c2070 --- /dev/null +++ b/anda/langs/rust/xdvdfs/rust-xdvdfs-cli.spec @@ -0,0 +1,52 @@ +# Generated by rust2rpm 27 +%bcond check 0 + +%global crate xdvdfs-cli + +Name: rust-xdvdfs-cli +Version: 0.8.3 +Release: %autorelease +Summary: Tool for interacting with XISO/XDVDFS images + +License: MIT +URL: https://crates.io/crates/xdvdfs-cli +Source: %{crates_source} +Source1: https://raw.githubusercontent.com/antangelo/xdvdfs/v%version/LICENSE +Packager: madonuko + +BuildRequires: anda-srpm-macros +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Tool for interacting with XISO/XDVDFS images.} + +%description %{_description} + +%package -n xdvdfs +Summary: %{summary} +License: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND (Apache-2.0 OR MIT) AND MIT AND (MIT AND BSD-3-Clause) AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) AND Zlib + +%description -n xdvdfs %{_description} + +%files -n xdvdfs +%license LICENSE +%license LICENSE.dependencies +%doc README.md +%{_bindir}/xdvdfs + +%prep +%autosetup -n %{crate}-%{version} -p1 +cp %{S:1} LICENSE +%cargo_prep_online + +%build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif diff --git a/anda/langs/rust/xdvdfs/update.rhai b/anda/langs/rust/xdvdfs/update.rhai new file mode 100644 index 0000000000..df3efee4b3 --- /dev/null +++ b/anda/langs/rust/xdvdfs/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("xdvdfs-cli"));