From 355070aa817ed6cd1abcfdce8e5e983aede85c54 Mon Sep 17 00:00:00 2001 From: madomado Date: Mon, 20 Feb 2023 14:32:30 +0800 Subject: [PATCH] fix: kondo (#219) * bump: kondo * fix: kondo --- anda/rust/kondo/rust-kondo.spec | 22 +++++++++------------- anda/rust/kondo/update.rhai | 2 +- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/anda/rust/kondo/rust-kondo.spec b/anda/rust/kondo/rust-kondo.spec index 43ea87d54d..e0277ce14d 100644 --- a/anda/rust/kondo/rust-kondo.spec +++ b/anda/rust/kondo/rust-kondo.spec @@ -4,13 +4,15 @@ %global crate kondo Name: rust-kondo -Version: 0.4.0 +Version: 0.5 Release: %autorelease Summary: Filesystem cleaning tool that recursively searches directories for known project structures and determines how much space you could save by deleting the unnecessary files License: MIT URL: https://crates.io/crates/kondo -Source: %{crates_source} +Source0: https://github.com/tbillington/kondo/releases/download/v%{version}/kondo-x86_64-unknown-linux-gnu.tar.gz +Source1: https://github.com/tbillington/kondo/blob/v%{version}/LICENSE +ExclusiveArch: x86_64 BuildRequires: anda-srpm-macros rust-packaging >= 21 @@ -27,23 +29,17 @@ Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} -# FIXME: no license files detected -%{_bindir}/kondo +%license LICENSE +/usr/bin/kondo %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 -%cargo_prep_online +tar xf %{SOURCE0} %build -%cargo_build %install -%cargo_install - -%if %{with check} -%check -%cargo_test -%endif +install -Dm755 kondo %{buildroot}/usr/bin/kondo +install -Dm644 %{SOURCE1} %{buildroot}/%{_datadir}/licenses/%{crate}/LICENSE %changelog %autochangelog diff --git a/anda/rust/kondo/update.rhai b/anda/rust/kondo/update.rhai index 4c1185f593..2a8da1568b 100644 --- a/anda/rust/kondo/update.rhai +++ b/anda/rust/kondo/update.rhai @@ -1 +1 @@ -rpm.version(crates("kondo")); +rpm.version(gh("tbillington/kondo"));