mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 005ed20c4a | |||
| a5312f14e2 |
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user