From b78d51338610e5d03d1d2a3d96fb21a5aca27a11 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 21:20:43 +0800 Subject: [PATCH 1/5] add: typeracer --- anda/rust/typeracer/anda.hcl | 5 +++ anda/rust/typeracer/rust-typeracer.spec | 48 +++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 anda/rust/typeracer/anda.hcl create mode 100644 anda/rust/typeracer/rust-typeracer.spec 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..37ba3f2ae0 --- /dev/null +++ b/anda/rust/typeracer/rust-typeracer.spec @@ -0,0 +1,48 @@ +# 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: 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 From 6edde0a7eb0795d5b96abab37473e9f5cb3c18cd Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 21:21:37 +0800 Subject: [PATCH 2/5] I forgot update.rhai again --- anda/rust/typeracer/update.rhai | 1 + 1 file changed, 1 insertion(+) create mode 100644 anda/rust/typeracer/update.rhai 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")); From 30b0c10586d0e7904025fd99e6ff8cebaf9bfe86 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 21:33:10 +0800 Subject: [PATCH 3/5] deps --- anda/rust/typeracer/rust-typeracer.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/rust/typeracer/rust-typeracer.spec b/anda/rust/typeracer/rust-typeracer.spec index 37ba3f2ae0..5bf34a1b02 100644 --- a/anda/rust/typeracer/rust-typeracer.spec +++ b/anda/rust/typeracer/rust-typeracer.spec @@ -12,7 +12,7 @@ License: GPL-3.0 URL: https://crates.io/crates/typeracer Source: %{crates_source} -BuildRequires: anda-srpm-macros rust-packaging >= 21 +BuildRequires: openssl-devel anda-srpm-macros rust-packaging >= 21 %global _description %{expand: Terminal typing game. Race to see the fastest time you can get!.} From 5b103f4825ec99561d557edf2a2dce44fd139b09 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 21:44:59 +0800 Subject: [PATCH 4/5] perl as deps --- anda/rust/typeracer/rust-typeracer.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anda/rust/typeracer/rust-typeracer.spec b/anda/rust/typeracer/rust-typeracer.spec index 5bf34a1b02..e780a167fb 100644 --- a/anda/rust/typeracer/rust-typeracer.spec +++ b/anda/rust/typeracer/rust-typeracer.spec @@ -12,7 +12,7 @@ License: GPL-3.0 URL: https://crates.io/crates/typeracer Source: %{crates_source} -BuildRequires: openssl-devel anda-srpm-macros rust-packaging >= 21 +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!.} From 1d30c5f436ecf3798723d99571b68044c7d29c13 Mon Sep 17 00:00:00 2001 From: windowsboy111 Date: Thu, 9 Feb 2023 22:01:15 +0800 Subject: [PATCH 5/5] Bai bai debug package --- anda/rust/typeracer/rust-typeracer.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anda/rust/typeracer/rust-typeracer.spec b/anda/rust/typeracer/rust-typeracer.spec index e780a167fb..8091e78195 100644 --- a/anda/rust/typeracer/rust-typeracer.spec +++ b/anda/rust/typeracer/rust-typeracer.spec @@ -1,3 +1,5 @@ +%global debug_package %{nil} + # Generated by rust2rpm 23 %bcond_without check