Group :: Shells
RPM: starship
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%ifarch i586 armh
%def_without check
%else
%def_with check
%endif
Name: starship
Version: 1.13.1
Release: alt1
Summary: The minimal, blazing-fast, and infinitely customizable prompt for any shell
License: ISC
Group: Shells
Url: https://github.com/starship/starship
Source: %name-%version.tar
# fixed build due to https://github.com/starship/starship/issues/4958
Patch1: fix-starship-issue-4958.patch
BuildRequires: rust-cargo
BuildRequires: cmake
%if_with check
BuildRequires: git
%endif
%description
%summary.
%prep
%setup
%patch1 -p1
mkdir -p .cargo
cat >> .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF
%build
cargo build --offline --release
%install
cargo install --path . --root %buildroot/%_usr
%check
%buildroot%_bindir/%name print-config > %name.toml
export STARSHIP_CONFIG=%name.toml
export TERM=xterm
# skip randomly failing test
cargo test -- --skip expiration_date_set
%files
%_bindir/%name
%changelog
…
Full changelog you can see here
%def_without check
%else
%def_with check
%endif
Name: starship
Version: 1.13.1
Release: alt1
Summary: The minimal, blazing-fast, and infinitely customizable prompt for any shell
License: ISC
Group: Shells
Url: https://github.com/starship/starship
Source: %name-%version.tar
# fixed build due to https://github.com/starship/starship/issues/4958
Patch1: fix-starship-issue-4958.patch
BuildRequires: rust-cargo
BuildRequires: cmake
%if_with check
BuildRequires: git
%endif
%description
%summary.
%prep
%setup
%patch1 -p1
mkdir -p .cargo
cat >> .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF
%build
cargo build --offline --release
%install
cargo install --path . --root %buildroot/%_usr
%check
%buildroot%_bindir/%name print-config > %name.toml
export STARSHIP_CONFIG=%name.toml
export TERM=xterm
# skip randomly failing test
cargo test -- --skip expiration_date_set
%files
%_bindir/%name
%changelog
…
Full changelog you can see here