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"));