%global debug_package %{nil} Name: starship Version: 1.26.0 Release: 1%{?dist} Summary: The minimal, blazing-fast, and infinitely customizable prompt for any shell License: ISC URL: https://github.com/starship/starship Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.bz2 BuildRequires: rust >= 1.90 BuildRequires: cargo BuildRequires: gcc %description Starship is the minimal, blazing-fast, and infinitely customizable prompt for any shell. It shows the information you need while staying sleek and minimal. Quick installation available for Bash, Fish, Zsh, Ion, Tcsh, Elvish, Nu, Xonsh, Cmd, and PowerShell. %prep %autosetup tar -xf %{S:1} mkdir -p .cargo cat > .cargo/config.toml << 'EOF' [source.crates-io] replace-with = "vendored-sources" [source.vendored-sources] directory = "vendor" EOF %build cargo build --release --frozen 2>&1 %install install -Dpm 0755 target/release/%{name} %{buildroot}%{_bindir}/%{name} # Generate shell completions target/release/%{name} completions bash > starship.bash target/release/%{name} completions fish > starship.fish target/release/%{name} completions zsh > starship.zsh install -Dpm 0644 starship.bash %{buildroot}%{_datadir}/bash-completion/completions/starship install -Dpm 0644 starship.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/starship.fish install -Dpm 0644 starship.zsh %{buildroot}%{_datadir}/zsh/site-functions/_starship %check target/release/%{name} --version | grep %{version} %files %license LICENSE %doc README.md CHANGELOG.md docs/ %{_bindir}/%{name} %{_datadir}/bash-completion/completions/starship %{_datadir}/fish/vendor_completions.d/starship.fish %{_datadir}/zsh/site-functions/_starship %changelog * Tue Jul 07 2026 Yonghang Wang - 1.26.0-1 - Initial package for AL2023 (COPR al-stream-2023)