# Generated by rust2rpm 13
%bcond_without check
# No devel stuff in released Fedora
%global __cargo_is_lib() false
%global crate starship
Name: rust-%{crate}
Version: 0.35.1
Release: 1%{?dist}
Summary: Cross-shell prompt for astronauts
# Upstream license specification: ISC
License: ISC
URL: https://crates.io/crates/starship
Source: %{crates_source}
# Initial patched metadata
# * Use default features (OpenSSL) for reqwest, essentially revert of https://github.com/starship/starship/commit/d1b725a47cda1047546fb3998ff8f8a61ed4a48b
# * Update sysinfo to 0.11, https://github.com/starship/starship/commit/9292ec63d489966312d24c67b011668fe4efec4b
# * Update os_info to 2, https://github.com/starship/starship/commit/0e8b1c659dfcd8ceb1c753c3c6b396ae2f7f7ddf
Patch0: starship-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
Cross-shell prompt for astronauts. ☄🌌️.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/starship
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
# https://github.com/starship/starship/issues/755
sed -i -e '/EXE_PATH/s|/debug/|/release/|' tests/testsuite/common.rs
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%if %{with check}
echo 'git-core'
%endif
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
* Tue Feb 11 16:43:01 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.35.1-1
- Update to 0.35.1
* Thu Dec 26 11:55:11 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.32.1-1.1
- Initial package