Compare commits

...

2 Commits

Author SHA1 Message Date
windowsboy111 005ed20c4a dunno 2023-02-20 15:15:47 +08:00
windowsboy111 a5312f14e2 fix: bandwhich 2023-02-20 14:10:01 +08:00
2 changed files with 10 additions and 13 deletions
+1
View File
@@ -43,6 +43,7 @@ Summary: %{summary}
%install
%cargo_install
rm %{buildroot}/.cargo -rf
chmod -x ./usr/src/debug/rust-bandwhich-0.20.0-1.fc37.x86_64/.cargo/registry/src/github.com-1ecc6299db9ec823/crossterm-0.17.7/src/lib.rs
%if %{with check}
%check
+9 -13
View File
@@ -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