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 %install
%cargo_install %cargo_install
rm %{buildroot}/.cargo -rf 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} %if %{with check}
%check %check
+9 -13
View File
@@ -4,13 +4,15 @@
%global crate kondo %global crate kondo
Name: rust-kondo Name: rust-kondo
Version: 0.4.0 Version: 0.5
Release: %autorelease 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 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 License: MIT
URL: https://crates.io/crates/kondo 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 BuildRequires: anda-srpm-macros rust-packaging >= 21
@@ -27,23 +29,17 @@ Summary: %{summary}
%description -n %{crate} %{_description} %description -n %{crate} %{_description}
%files -n %{crate} %files -n %{crate}
# FIXME: no license files detected %license LICENSE
%{_bindir}/kondo /usr/bin/kondo
%prep %prep
%autosetup -n %{crate}-%{version_no_tilde} -p1 tar xf %{SOURCE0}
%cargo_prep_online
%build %build
%cargo_build
%install %install
%cargo_install install -Dm755 kondo %{buildroot}/usr/bin/kondo
install -Dm644 %{SOURCE1} %{buildroot}/%{_datadir}/licenses/%{crate}/LICENSE
%if %{with check}
%check
%cargo_test
%endif
%changelog %changelog
%autochangelog %autochangelog