diff --git a/anda/rust/typeracer/anda.hcl b/anda/rust/typeracer/anda.hcl new file mode 100644 index 0000000000..d836b764a4 --- /dev/null +++ b/anda/rust/typeracer/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "rust-typeracer.spec" + } +} diff --git a/anda/rust/typeracer/rust-typeracer.spec b/anda/rust/typeracer/rust-typeracer.spec new file mode 100644 index 0000000000..8091e78195 --- /dev/null +++ b/anda/rust/typeracer/rust-typeracer.spec @@ -0,0 +1,50 @@ +%global debug_package %{nil} + +# Generated by rust2rpm 23 +%bcond_without check + +%global crate typeracer + +Name: rust-typeracer +Version: 2.1.2 +Release: %autorelease +Summary: Terminal typing game + +License: GPL-3.0 +URL: https://crates.io/crates/typeracer +Source: %{crates_source} + +BuildRequires: perl openssl-devel anda-srpm-macros rust-packaging >= 21 + +%global _description %{expand: +Terminal typing game. Race to see the fastest time you can get!.} + +%description %{_description} + +%package -n %{crate} +Summary: %{summary} + +%description -n %{crate} %{_description} + +%files -n %{crate} +# FIXME: no license files detected +%doc README.md +%{_bindir}/typeracer + +%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/typeracer/update.rhai b/anda/rust/typeracer/update.rhai new file mode 100644 index 0000000000..1302013208 --- /dev/null +++ b/anda/rust/typeracer/update.rhai @@ -0,0 +1 @@ +rpm.version(crates("typeracer"));