# Generated by rust2rpm 27 # * Doesn't compile for testutils %bcond check 0 # prevent library files from being installed %global cargo_install_lib 0 %global crate starship Name: rust-starship Version: 1.23.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.23.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: pkgconfig(zlib) BuildRequires: cmake %global _description %{expand: The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # 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.bash %{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} %install %cargo_install %{buildroot}/%{_bindir}/starship completions bash > starship.bash %{buildroot}/%{_bindir}/starship completions fish > starship.fish %{buildroot}/%{_bindir}/starship completions zsh > _starship install -Dpm 0644 starship.bash -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