Skip to content

Commit

Permalink
Remove explicit RUSTFLAGS="-C strip=symbols"
Browse files Browse the repository at this point in the history
Since 1.77.0, strip is enabled by default for release profile
See https://blog.rust-lang.org/2024/03/21/Rust-1.77.0.html
  • Loading branch information
cyqsimon committed Apr 16, 2024
1 parent dd1fd0c commit 3fc8e48
Show file tree
Hide file tree
Showing 27 changed files with 135 additions and 55 deletions.
7 changes: 5 additions & 2 deletions specs/atuin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: atuin
Version: 18.2.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Magical shell history

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

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

for SHELL in "bash" "fish" "zsh"; do
target/release/%{name} gen-completions --shell $SHELL -o .
Expand Down Expand Up @@ -53,6 +53,9 @@ install -Dpm 644 _%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 18.2.0-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Mon Apr 15 2024 cyqsimon - 18.2.0-1
- Release 18.2.0

Expand Down
8 changes: 5 additions & 3 deletions specs/bandwhich.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

License: MIT
Expand All @@ -25,8 +25,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y
source ~/.cargo/env

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

%check
source ~/.cargo/env
Expand Down Expand Up @@ -54,6 +53,9 @@ install -Dpm 644 gen/_%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 0.22.2-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Mon Jan 29 2024 cyqsimon - 0.22.2-1
- Release 0.22.2
- Install manpage & shell completions
Expand Down
7 changes: 5 additions & 2 deletions specs/bat.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: bat
Version: 0.24.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A cat(1) clone with syntax highlighting and Git integration
License: ASL 2.0 or MIT
URL: https://github.com/sharkdp/bat
Expand All @@ -22,7 +22,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

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

%check
source ~/.cargo/env
Expand Down Expand Up @@ -50,6 +50,9 @@ install -Dpm 644 target/release/build/%{name}-*/out/assets/completions/%{name}.z
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 0.24.0-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Thu Oct 12 2023 cyqsimon - 0.24.0-1
- Release 0.24.0

Expand Down
7 changes: 5 additions & 2 deletions specs/ccase.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: ccase
Version: 0.4.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A command line utility for converting between string cases

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

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

%check
source ~/.cargo/env
Expand All @@ -41,5 +41,8 @@ install -Dpm 755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
%{_bindir}/%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 0.4.1-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Fri Jan 05 2024 cyqsimon - 0.4.1-1
- Release 0.4.1
7 changes: 5 additions & 2 deletions specs/didyoumean.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Name: didyoumean
Version: 1.1.4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A CLI spelling corrector for when you're unsure

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

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

%check
source ~/.cargo/env
Expand Down Expand Up @@ -55,5 +55,8 @@ install -Dpm 644 completions/_%{bin_name} %{buildroot}%{_datadir}/zsh/site-funct
%{_datadir}/zsh/site-functions/_%{bin_name}

%changelog
* Tue Apr 16 2024 cyqsimon - 1.1.4-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Wed Mar 29 2023 cyqsimon - 1.1.4-1
- Release 1.1.4
7 changes: 5 additions & 2 deletions specs/diskus.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: diskus
Version: 0.7.0
Release: 3%{?dist}
Release: 4%{?dist}
Summary: A minimal, fast alternative to 'du -sh'

License: ASL 2.0 or MIT
Expand All @@ -26,7 +26,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

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

%check
source ~/.cargo/env
Expand All @@ -46,6 +46,9 @@ install -Dpm 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%{_mandir}/man1/%{name}.1*

%changelog
* Tue Apr 16 2024 cyqsimon - 0.7.0-4
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Sat Mar 18 2023 cyqsimon - 0.7.0-3
- Run tests in debug mode

Expand Down
7 changes: 5 additions & 2 deletions specs/dog.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: dog
Version: 0.1.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A command-line DNS client

License: EUPL 1.2
Expand Down Expand Up @@ -35,7 +35,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

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

ronn --roff man/%{name}.1.md

Expand Down Expand Up @@ -65,6 +65,9 @@ install -Dpm 644 completions/%{name}.zsh %{buildroot}%{_datadir}/zsh/site-functi
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 0.1.0-3
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Sat Mar 18 2023 cyqsimon - 0.1.0-2
- Run tests in debug mode
- Enable tests for workspace members
Expand Down
7 changes: 5 additions & 2 deletions specs/dysk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: dysk
Version: 2.8.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A linux utility listing your filesystems (previously lfs)
Provides: lfs = %{version}-%{release}
Obsoletes: lfs <= 2.6.0
Expand All @@ -24,7 +24,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

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

# create compatibility script
cat >lfs <<"EOF"
Expand Down Expand Up @@ -64,6 +64,9 @@ install -Dpm 644 target/release/build/%{name}-*/out/_%{name} %{buildroot}%{_data
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 2.8.2-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Tue Oct 17 2023 cyqsimon - 2.8.2-1
- Release 2.8.2

Expand Down
7 changes: 5 additions & 2 deletions specs/eza.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: eza
Version: 0.18.10
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A modern, maintained replacement for ‘ls’
Provides: exa = %{version}-%{release}
Obsoletes: exa <= 0.10.1
Expand Down Expand Up @@ -33,7 +33,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

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

pandoc --standalone -f markdown -t man man/%{name}.1.md > %{name}.1
pandoc --standalone -f markdown -t man man/eza_colors-explanation.5.md > eza_colors-explanation.5
Expand Down Expand Up @@ -74,6 +74,9 @@ install -Dpm 644 completions/zsh/_%{name} %{buildroot}%{_datadir}/zsh/site-funct
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 0.18.10-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Thu Apr 11 2024 cyqsimon - 0.18.10-1
- Release 0.18.10

Expand Down
7 changes: 5 additions & 2 deletions specs/fd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: fd
Version: 9.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A simple, fast and user-friendly alternative to find

License: ASL 2.0 or MIT
Expand All @@ -26,7 +26,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

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

# generate completions
target/release/%{name} --gen-completions bash > %{name}.bash
Expand Down Expand Up @@ -58,6 +58,9 @@ install -Dpm 644 contrib/completion/_%{name} %{buildroot}%{_datadir}/zsh/site-fu
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 9.0.0-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Wed Dec 20 2023 cyqsimon - 9.0.0-1
- Release 9.0.0

Expand Down
7 changes: 5 additions & 2 deletions specs/fend.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: fend
Version: 1.4.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Arbitrary-precision unit-aware calculator

License: GPLv3+
Expand Down Expand Up @@ -39,7 +39,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

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

%if 0%{?rhel} >= 9
./documentation/build.sh
Expand Down Expand Up @@ -67,6 +67,9 @@ install -Dpm 644 documentation/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%endif

%changelog
* Tue Apr 16 2024 cyqsimon - 1.4.1-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Sun Jan 07 2024 cyqsimon - 1.4.1-1
- Release 1.4.1

Expand Down
7 changes: 5 additions & 2 deletions specs/garbage.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: garbage
Version: 0.4.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Soft-deletion CLI tool with FreeDesktop Trash compatibility

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

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

# generate completions
target/release/%{name} generate-completions bash > %{name}.bash
Expand Down Expand Up @@ -53,6 +53,9 @@ install -Dpm 644 %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 0.4.1-3
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Sat Mar 18 2023 cyqsimon - 0.4.1-2
- Run tests in debug mode
- Enable tests for workspace members
Expand Down
7 changes: 5 additions & 2 deletions specs/git-delta.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Name: git-delta
Version: 0.17.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A syntax-highlighting pager for git, diff, and grep output

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

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

%check
source ~/.cargo/env
Expand All @@ -49,6 +49,9 @@ install -Dpm 644 etc/completion/completion.zsh %{buildroot}%{_datadir}/zsh/site-
%{_datadir}/zsh/site-functions/_%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 0.17.0-2
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Sun Mar 17 2024 cyqsimon - 0.17.0-1
- Release 0.17.0

Expand Down
7 changes: 5 additions & 2 deletions specs/hck.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: hck
Version: 0.10.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A sharp cut(1) clone

License: MIT OR Unlicense
Expand Down Expand Up @@ -35,7 +35,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y
source ~/.cargo/env

# On EL7 `cmake` links to cmake2
CMAKE=cmake3 RUSTFLAGS="-C strip=symbols" cargo build --release
CMAKE=cmake3 cargo build --release

%check
source ~/.cargo/env
Expand All @@ -51,6 +51,9 @@ install -Dpm 755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
%{_bindir}/%{name}

%changelog
* Tue Apr 16 2024 cyqsimon - 0.10.0-3
- Remove explicit stripping (strip enabled by default since 1.77.0)

* Tue Apr 16 2024 cyqsimon - 0.10.0-2
- Fix cmake config for EL7

Expand Down
Loading

0 comments on commit 3fc8e48

Please sign in to comment.