diff --git a/rust-starship.spec b/rust-starship.spec index e7cba5c..a653523 100644 --- a/rust-starship.spec +++ b/rust-starship.spec @@ -1,13 +1,11 @@ -# Generated by rust2rpm 11 - -# Disable temporary due to missing necessary BR -%bcond_with check +# Generated by rust2rpm 12 +%bcond_without check %global crate starship Name: rust-%{crate} Version: 0.30.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Cross-shell prompt for astronauts # Upstream license specification: ISC @@ -21,9 +19,6 @@ BuildArch: noarch %endif BuildRequires: rust-packaging -%if %{with check} -BuildRequires: git-core -%endif %global _description %{expand: Cross-shell prompt for astronauts. ☄🌌️.} @@ -38,7 +33,7 @@ Summary: %{summary} %files -n %{crate} %license LICENSE -%doc README.md CONTRIBUTING.md +%doc README.md %{_bindir}/starship %endif @@ -52,8 +47,9 @@ This package contains library source intended for building other packages which use "%{crate}" crate. %files devel -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ +%license LICENSE +%doc README.md CONTRIBUTING.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ %package -n %{name}+default-devel Summary: %{summary} @@ -65,7 +61,7 @@ This package contains library source intended for building other packages which use "default" feature of "%{crate}" crate. %files -n %{name}+default-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+battery-devel Summary: %{summary} @@ -77,14 +73,19 @@ This package contains library source intended for building other packages which use "battery" feature of "%{crate}" crate. %files -n %{name}+battery-devel -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %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 @@ -98,6 +99,9 @@ which use "battery" feature of "%{crate}" crate. %endif %changelog +* Thu Dec 19 14:06:54 CET 2019 Igor Gnatenko - 0.30.1-3 +- Run tests + * Fri Dec 13 2019 Artem Polishchuk - 0.30.1-2 - Update to 0.30.1