add: typeracer (#184)

* add: typeracer

* I forgot update.rhai again

* deps

* perl as deps

* Bai bai debug package
This commit is contained in:
windowsboy111
2023-02-10 07:54:09 +08:00
committed by GitHub
3 changed files with 56 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rust-typeracer.spec"
}
}
+50
View File
@@ -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
+1
View File
@@ -0,0 +1 @@
rpm.version(crates("typeracer"));