Skip to content

Commit

Permalink
bandwhich: 0.22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Jan 28, 2024
1 parent 87c66cc commit 00d6628
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions specs/bandwhich.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global debug_package %{nil}

Name: bandwhich
Version: 0.22.0
Version: 0.22.2
Release: 1%{?dist}
Summary: Terminal bandwidth utilization tool

Expand All @@ -23,7 +23,10 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
RUSTFLAGS="-C strip=symbols" cargo build --release

mkdir gen
RUSTFLAGS="-C strip=symbols" BANDWHICH_GEN_DIR="$(pwd)/gen" \
cargo build --release

%check
source ~/.cargo/env
Expand All @@ -33,12 +36,28 @@ cargo test
# bin
install -Dpm 755 target/release/%{name} %{buildroot}%{_bindir}/%{name}

# manpage
install -Dpm 644 gen/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

# completions
install -Dpm 644 gen/%{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -Dpm 644 gen/%{name}.fish %{buildroot}%{_datadir}/fish/completions/%{name}.fish
install -Dpm 644 gen/_%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name}

%files
%license LICENSE.md
%doc CHANGELOG.md README.md
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/fish/completions/%{name}.fish
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Mon Jan 29 2024 cyqsimon - 0.22.2-1
- Release 0.22.2
- Install manpage & shell completions

* Sun Jan 28 2024 cyqsimon - 0.22.0-1
- Release 0.22.0

Expand Down

0 comments on commit 00d6628

Please sign in to comment.