%global debug_package %{nil} %undefine _package_note_file 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 BuildRequires: cargo >= 1.59 BuildRequires: rust >= 1.59 BuildRequires: cmake #BuildRequires: gcc BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(zlib) %description The minimal, blazing-fast, and infinitely customizable prompt for any shell! %prep %autosetup cargo fetch --locked --target host-tuple %build cargo build --frozen --release %install #export CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_OPT_LEVEL=3 #export CMAKE=cmake3 #cargo install --root=%{buildroot}%{_prefix} --path=. #rm -f %{buildroot}%{_prefix}/.crates.toml \ # %{buildroot}%{_prefix}/.crates2.json #strip --strip-all %{buildroot}%{_bindir}/* install -Dm0755 target/release/starship -t "%{buildroot}%{_bindir}/" %files %license LICENSE %doc README.md CONTRIBUTING.md %{_bindir}/%{name} %changelog * Mon Aug 03 2026 Patrick - initial release