# Generated by rust2rpm 20 # * compiling the test suite cause OOM failures on some architectures %bcond_with check # don't generate Requires for /usr/bin/pwsh / PowerShell %global __requires_exclude_from ^%{cargo_registry}/%{crate}-%{version_no_tilde}/src/init/starship\\.ps1$ # reduce debuginfo verbosity on armv7hl to work around rustc OOM problems %ifarch %{arm} %global rustflags_debuginfo 1 %endif %global crate starship Name: rust-%{crate} Version: 1.2.1 Release: %autorelease Summary: Minimal, blazing-fast, and infinitely customizable prompt for any shell # Upstream license specification: ISC License: ISC URL: https://crates.io/crates/starship Source: %{crates_source} # Initial patched metadata # * bump open from 2.0.2 to 3.0.2: # https://github.com/starship/starship/commit/4211a99 # * temporarily downgrade git2 dependency from 0.13.25 to 0.13.20 # * drop windows-specific dependencies ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: Minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️.} %description %{_description} %package -n %{crate} Summary: %{summary} # ASL 2.0 # ASL 2.0 or Boost # ASL 2.0 or MIT # ISC # MIT # MIT and ASL 2.0 # MIT or ASL 2.0 # MIT or ASL 2.0 or zlib # Unlicense or MIT # zlib or ASL 2.0 or MIT License: ISC and ASL 2.0 and MIT %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md %{_bindir}/starship %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license LICENSE %doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+battery-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+battery-devel %{_description} This package contains library source intended for building other packages which use the "battery" feature of the "%{crate}" crate. %files -n %{name}+battery-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+notify-rust-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+notify-rust-devel %{_description} This package contains library source intended for building other packages which use the "notify-rust" feature of the "%{crate}" crate. %files -n %{name}+notify-rust-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+starship-battery-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+starship-battery-devel %{_description} This package contains library source intended for building other packages which use the "starship-battery" feature of the "%{crate}" crate. %files -n %{name}+starship-battery-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %if %{with check} echo 'git-core' %endif %build %cargo_build -a %install %cargo_install -a %if %{with check} %check %cargo_test -a %endif %changelog %autochangelog