From 24ce8fdd23fe2ecb0e5ba6dc7f970bc5d602a230 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sun, 16 Feb 2025 09:26:19 -0800 Subject: [PATCH] add: xplr (#3369) (#3387) * add: xplr * remove crate * update.rhai (cherry picked from commit 86711188598d52e26dfd50e9571ff32988d932fc) Co-authored-by: sadlerm4 --- anda/langs/rust/xplr/anda.hcl | 5 +++ anda/langs/rust/xplr/rust-xplr.spec | 61 +++++++++++++++++++++++++++++ anda/langs/rust/xplr/update.rhai | 1 + 3 files changed, 67 insertions(+) create mode 100644 anda/langs/rust/xplr/anda.hcl create mode 100644 anda/langs/rust/xplr/rust-xplr.spec create mode 100644 anda/langs/rust/xplr/update.rhai diff --git a/anda/langs/rust/xplr/anda.hcl b/anda/langs/rust/xplr/anda.hcl new file mode 100644 index 0000000000..82514da56d --- /dev/null +++ b/anda/langs/rust/xplr/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-xplr.spec" + } +} diff --git a/anda/langs/rust/xplr/rust-xplr.spec b/anda/langs/rust/xplr/rust-xplr.spec new file mode 100644 index 0000000000..321d236d25 --- /dev/null +++ b/anda/langs/rust/xplr/rust-xplr.spec @@ -0,0 +1,61 @@ +# Generated by rust2rpm 27 +%undefine __brp_mangle_shebangs + +%global crate xplr + +Name: rust-xplr +Version: 0.21.10 +Release: 1%{?dist} +Summary: Hackable, minimal, fast TUI file explorer + +License: MIT +URL: https://crates.io/crates/xplr +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 +BuildRequires: mold +BuildRequires: anda-srpm-macros + +%global _description %{expand: +A hackable, minimal, fast TUI file explorer.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} +License: Apache-2.0 AND (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 Apache-2.0 OR MIT) AND GPL-3.0-only AND MIT AND MIT AND (MIT OR Apache-2.0) 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 README.md +%{_bindir}/xplr + +%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}/README.md +%{crate_instdir}/ + + +%prep +%autosetup -n %{crate}-%{version} +%cargo_prep_online + +%build +%{cargo_license_summary_online} +%{cargo_license_online} > LICENSE.dependencies + +%install +%cargo_install diff --git a/anda/langs/rust/xplr/update.rhai b/anda/langs/rust/xplr/update.rhai new file mode 100644 index 0000000000..4090bdf0f4 --- /dev/null +++ b/anda/langs/rust/xplr/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("xplr"));