# Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate starship Name: rust-starship Version: 1.26.0 Release: %autorelease Summary: Minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️ License: ISC URL: https://crates.io/crates/starship Source: %{crates_source} Source: starship-1.26.0-vendor.tar.xz # Automatically generated patch to strip dependencies and normalize metadata Patch: starship-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 26 BuildRequires: git-core %global _description %{expand: The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️.} %description %{_description} %package -n %{crate} Summary: %{summary} # (Apache-2.0 OR MIT) AND BSD-3-Clause # (MIT OR Apache-2.0) AND Unicode-3.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 OR MIT # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-2-Clause OR MIT OR Apache-2.0 # CC0-1.0 OR MIT-0 OR Apache-2.0 # ISC # MIT # MIT AND Apache-2.0 # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR LGPL-2.1-or-later # MIT OR Apache-2.0 OR Zlib # MPL-2.0 # Unlicense # Unlicense OR MIT # WTFPL # Zlib # Zlib OR Apache-2.0 OR MIT License: %{shrink: ISC AND MIT AND Apache-2.0 AND ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND ((MIT OR Apache-2.0) AND Unicode-3.0) AND (Apache-2.0 OR BSL-1.0 OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR MIT OR Apache-2.0) AND (CC0-1.0 OR MIT-0 OR Apache-2.0) AND (MIT AND Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Apache-2.0 OR Zlib) AND MPL-2.0 AND Unlicense AND (Unlicense OR MIT) AND WTFPL AND Zlib AND (Zlib OR Apache-2.0 OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/starship %{bash_completions_dir}/starship %{fish_completions_dir}/starship.fish %{zsh_completions_dir}/_starship %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} target/rpm/starship completions bash > starship target/rpm/starship completions fish > starship.fish target/rpm/starship completions zsh > _starship %install %cargo_install install -Dpm 0644 starship -t %{buildroot}%{bash_completions_dir} install -Dpm 0644 starship.fish -t %{buildroot}%{fish_completions_dir} install -Dpm 0644 _starship -t %{buildroot}%{zsh_completions_dir} %if %{with check} %check %cargo_test %endif %changelog %autochangelog