From 678715b41e34aed1bfbb610e0ded1162ba5d9b32 Mon Sep 17 00:00:00 2001 From: madomado Date: Mon, 20 Feb 2023 12:28:59 +0800 Subject: [PATCH] add: detox (#216) * add: detox * well --- anda/rust/detox/anda.hcl | 5 ++++ anda/rust/detox/rust-detox.spec | 48 +++++++++++++++++++++++++++++++++ anda/rust/detox/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/rust/detox/anda.hcl create mode 100644 anda/rust/detox/rust-detox.spec create mode 100644 anda/rust/detox/update.rhai diff --git a/anda/rust/detox/anda.hcl b/anda/rust/detox/anda.hcl new file mode 100644 index 0000000000..5d1e8e449a --- /dev/null +++ b/anda/rust/detox/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-detox.spec" + } +} diff --git a/anda/rust/detox/rust-detox.spec b/anda/rust/detox/rust-detox.spec new file mode 100644 index 0000000000..9a21c46586 --- /dev/null +++ b/anda/rust/detox/rust-detox.spec @@ -0,0 +1,48 @@ +# Generated by rust2rpm 23 +%bcond_without check + +%global crate detox + +Name: rust-detox +Version: 0.1.2 +Release: %autorelease +Summary: Quickly clean up your development directories on disk + +License: MIT +URL: https://crates.io/crates/detox +Source: %{crates_source} + +BuildRequires: anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Quickly clean up your development directories on disk.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +%license LICENSE +%doc README.md +%{_bindir}/detox + +%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/detox/update.rhai b/anda/rust/detox/update.rhai new file mode 100644 index 0000000000..2f8a12eff3 --- /dev/null +++ b/anda/rust/detox/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("detox"));