# 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.24.2 Release: %autorelease Summary: The minimal, blazing-fast, and infinitely customizable prompt for any shell! License: ISC URL: https://crates.io/crates/starship Source: %{crates_source} Source: starship-1.24.2-vendor.tar.zst # Automatically generated patch to strip dependencies and normalize metadata Patch: starship-fix-metadata-auto.diff # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: cargo-rpm-macros >= 26 # test dependency BuildRequires: git # Fedora currently only packaged Cascadia Code Nerd Font Recommends: cascadia-code-nf-fonts %global _description %{expand: The minimal, blazing-fast, and infinitely customizable prompt for any shell!} %description %{_description} %package -n %{crate} Summary: %{summary} ### BEGIN LICENSE 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 # MIT-0 OR MIT OR Apache-2.0 # MPL-2.0 # Unlicense # Unlicense OR MIT # Zlib # Zlib OR Apache-2.0 OR MIT ### END LICENSE SUMMARY ### License: %{shrink: (Apache-2.0 OR MIT) AND BSD-3-Clause AND (MIT OR Apache-2.0) AND Unicode-3.0 AND Apache-2.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 ISC AND MIT AND MIT AND Apache-2.0 AND MIT OR Apache-2.0 AND MIT OR Apache-2.0 OR LGPL-2.1-or-later AND MIT OR Apache-2.0 OR Zlib AND MIT-0 OR MIT OR Apache-2.0 AND MPL-2.0 AND Unlicense AND Unlicense OR MIT AND Zlib AND Zlib OR Apache-2.0 OR MIT } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies cat LICENSE.dependencies %{cargo_vendor_manifest} %install install -pDm755 target/release/starship %{buildroot}%{_bindir}/starship mkdir -p %{buildroot}%{bash_completions_dir} mkdir -p %{buildroot}%{zsh_completions_dir} mkdir -p %{buildroot}%{fish_completions_dir} mkdir -p %{buildroot}%{_datadir}/elvish/lib ./target/release/starship completions bash > %{buildroot}%{bash_completions_dir}/starship ./target/release/starship completions zsh > %{buildroot}%{zsh_completions_dir}/_starship ./target/release/starship completions fish > %{buildroot}%{fish_completions_dir}/starship.fish # https://elv.sh/ref/command.html#module-search-directories ./target/release/starship completions elvish > %{buildroot}%{_datadir}/elvish/lib/starship.elv %if %{with check} %check %cargo_test %endif %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/starship %{bash_completions_dir}/starship %{zsh_completions_dir}/_starship %{fish_completions_dir}/starship.fish %{_datadir}/elvish/lib/starship.elv %changelog %autochangelog