From eaf104b3ccb8477d24786030f021cbec9cf72256 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 19 Jan 2023 12:48:38 +0800 Subject: [PATCH] Add joshuto --- anda/rust/joshuto/anda.hcl | 5 +++ anda/rust/joshuto/rust-joshuto.spec | 48 +++++++++++++++++++++++++++++ anda/rust/joshuto/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/rust/joshuto/anda.hcl create mode 100644 anda/rust/joshuto/rust-joshuto.spec create mode 100644 anda/rust/joshuto/update.rhai diff --git a/anda/rust/joshuto/anda.hcl b/anda/rust/joshuto/anda.hcl new file mode 100644 index 0000000000..90901a334a --- /dev/null +++ b/anda/rust/joshuto/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-joshuto.spec" + } +} diff --git a/anda/rust/joshuto/rust-joshuto.spec b/anda/rust/joshuto/rust-joshuto.spec new file mode 100644 index 0000000000..dfc6222dad --- /dev/null +++ b/anda/rust/joshuto/rust-joshuto.spec @@ -0,0 +1,48 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate joshuto + +Name: rust-joshuto +Version: 0.9.4 +Release: %autorelease +Summary: Terminal file manager inspired by ranger + +License: LGPL-3.0 +URL: https://crates.io/crates/joshuto +Source: %{crates_source} + +BuildRequires: anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Terminal file manager inspired by ranger.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%doc README.md +%{_bindir}/joshuto + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep_online + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/anda/rust/joshuto/update.rhai b/anda/rust/joshuto/update.rhai new file mode 100644 index 0000000000..a43949c704 --- /dev/null +++ b/anda/rust/joshuto/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("joshuto"));