Skip to content

Commit

Permalink
Set explicit +stable
Browse files Browse the repository at this point in the history
  • Loading branch information
cyqsimon committed Apr 16, 2024
1 parent 2be8763 commit e0b33bc
Show file tree
Hide file tree
Showing 26 changed files with 55 additions and 55 deletions.
4 changes: 2 additions & 2 deletions specs/atuin.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

for SHELL in "bash" "fish" "zsh"; do
target/release/%{name} gen-completions --shell $SHELL -o .
done

%check
source ~/.cargo/env
cargo test --workspace --all-features --lib
cargo +stable test --workspace --all-features --lib

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/bandwhich.spec
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y
source ~/.cargo/env

mkdir gen
BANDWHICH_GEN_DIR="$(pwd)/gen" cargo build --release
BANDWHICH_GEN_DIR="$(pwd)/gen" cargo +stable build --release

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/bat.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
6 changes: 3 additions & 3 deletions specs/ccase.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
# tests require the debug binary to be built
cargo build
cargo test
cargo +stable build
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/didyoumean.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
# X11 is not running in build environment
cargo test -- --skip yank_test
cargo +stable test -- --skip yank_test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/diskus.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/dog.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

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

%check
source ~/.cargo/env
cargo test --workspace
cargo +stable test --workspace

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/dysk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

# create compatibility script
cat >lfs <<"EOF"
Expand All @@ -37,7 +37,7 @@ EOF

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/fd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

# generate completions
target/release/%{name} --gen-completions bash > %{name}.bash
target/release/%{name} --gen-completions fish > %{name}.fish

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/fend.spec
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release --package %{name}
cargo +stable build --release --package %{name}

%if 0%{?rhel} >= 9
./documentation/build.sh
%endif

%check
source ~/.cargo/env
cargo test --package %{name} --package %{name}-core
cargo +stable test --package %{name} --package %{name}-core

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/garbage.spec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

# generate completions
target/release/%{name} generate-completions bash > %{name}.bash
Expand All @@ -33,7 +33,7 @@ target/release/%{name} generate-completions zsh > %{name}.zsh

%check
source ~/.cargo/env
cargo test --workspace
cargo +stable test --workspace

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/git-delta.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/hck.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y
source ~/.cargo/env

# On EL7 `cmake` links to cmake2
CMAKE=cmake3 cargo build --release
CMAKE=cmake3 cargo +stable build --release

%check
source ~/.cargo/env
CMAKE=cmake3 cargo test
CMAKE=cmake3 cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/httplz.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y
%build
source ~/.cargo/env
# only build and install the `httplz` binary
cargo build --release --bin %{name}
cargo +stable build --release --bin %{name}

# rename man page markdown
mv %{_prj_name}.md %{name}.md
Expand All @@ -51,7 +51,7 @@ pandoc --standalone --from markdown --to man %{name}.md > %{name}.1

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
6 changes: 3 additions & 3 deletions specs/miniserve.spec
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

# generate manpage
target/release/%{name} --print-manpage > %{name}.1
Expand All @@ -49,12 +49,12 @@ source ~/.cargo/env
# cant_navigate_up_the_root: EL7 curl lacks `--path-as-is` argument
# qrcode_shown_in_tty_when_enabled: `fake-tty` timeout
# qrcode_hidden_in_tty_when_disabled: `fake-tty` timeout
cargo test -- \
cargo +stable test -- \
--skip cant_navigate_up_the_root \
--skip qrcode_shown_in_tty_when_enabled \
--skip qrcode_hidden_in_tty_when_disabled
%else
cargo test
cargo +stable test
%endif

%install
Expand Down
6 changes: 3 additions & 3 deletions specs/mprocs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
# see https://github.com/pvolok/mprocs/issues/50
#cargo test --workspace
cargo test --workspace --exclude mprocs-pty --exclude mprocs-vt100
#cargo +stable test --workspace
cargo +stable test --workspace --exclude mprocs-pty --exclude mprocs-vt100

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/ouch.spec
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ rm -f rust-toolchain
%endif

source ~/.cargo/env
OUCH_ARTIFACTS_FOLDER=%{artifact_dir} cargo build --release
OUCH_ARTIFACTS_FOLDER=%{artifact_dir} cargo +stable build --release

%check
%if 0%{?el8}
source /opt/rh/gcc-toolset-12/enable
%endif

source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/podlet.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/procs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

target/release/%{name} --gen-completion bash
target/release/%{name} --gen-completion fish
target/release/%{name} --gen-completion zsh

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/pueue.spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

# generate completions
for SHELL_NAME in bash fish zsh; do
Expand All @@ -39,7 +39,7 @@ done

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/ripgrep.spec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y
%endif

source ~/.cargo/env
cargo build --release --features pcre2
cargo +stable build --release --features pcre2

mkdir generated
target/release/rg --generate man > generated/man
Expand All @@ -50,7 +50,7 @@ target/release/rg --generate complete-zsh > generated/zsh
%endif

source ~/.cargo/env
cargo test --workspace
cargo +stable test --workspace

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/rustscan.spec
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/sd.spec
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
4 changes: 2 additions & 2 deletions specs/tealdeer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ curl -Lf "https://sh.rustup.rs" | sh -s -- --profile minimal -y

%build
source ~/.cargo/env
cargo build --release
cargo +stable build --release

%check
source ~/.cargo/env
cargo test
cargo +stable test

%install
# bin
Expand Down
Loading

0 comments on commit e0b33bc

Please sign in to comment.