Blame rust-starship.spec

651d7bb
# Generated by rust2rpm 13
d3a6bee
%bcond_without check
009d6ed
009d6ed
%global crate starship
009d6ed
009d6ed
Name:           rust-%{crate}
62129dc
Version:        0.37.0
bee26a6
Release:        1%{?dist}
2ee16bb
Summary:        Minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️
009d6ed
009d6ed
# Upstream license specification: ISC
009d6ed
License:        ISC
009d6ed
URL:            https://crates.io/crates/starship
009d6ed
Source:         %{crates_source}
651d7bb
# Initial patched metadata
651d7bb
# * Use default features (OpenSSL) for reqwest, essentially revert of https://github.com/starship/starship/commit/d1b725a47cda1047546fb3998ff8f8a61ed4a48b
62129dc
# * Bump git2 to 0.12, https://github.com/starship/starship/pull/963
651d7bb
Patch0:         starship-fix-metadata.diff
009d6ed
009d6ed
ExclusiveArch:  %{rust_arches}
009d6ed
%if %{__cargo_skip_build}
009d6ed
BuildArch:      noarch
009d6ed
%endif
009d6ed
009d6ed
BuildRequires:  rust-packaging
009d6ed
009d6ed
%global _description %{expand:
2ee16bb
Minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️.}
009d6ed
009d6ed
%description %{_description}
009d6ed
009d6ed
%if ! %{__cargo_skip_build}
009d6ed
%package     -n %{crate}
009d6ed
Summary:        %{summary}
62ee0cd
# Install all deps (without check), grab their licenses and make it simple
62ee0cd
# * ASL 2.0
62ee0cd
# * ASL 2.0 or Boost
62ee0cd
# * ASL 2.0 or MIT
62ee0cd
# * ISC
62ee0cd
# * MIT
62ee0cd
# * MIT or ASL 2.0
62ee0cd
# * (MIT or ASL 2.0) and BSD
62ee0cd
# * Unlicense or MIT
62ee0cd
License:        ISC and ASL 2.0 and MIT and BSD
009d6ed
009d6ed
%description -n %{crate} %{_description}
009d6ed
009d6ed
%files       -n %{crate}
009d6ed
%license LICENSE
d3a6bee
%doc README.md
009d6ed
%{_bindir}/starship
009d6ed
%endif
009d6ed
009d6ed
%package        devel
009d6ed
Summary:        %{summary}
009d6ed
BuildArch:      noarch
009d6ed
009d6ed
%description    devel %{_description}
009d6ed
009d6ed
This package contains library source intended for building other packages
009d6ed
which use "%{crate}" crate.
009d6ed
009d6ed
%files          devel
d3a6bee
%license LICENSE
d3a6bee
%doc README.md CONTRIBUTING.md
d3a6bee
%{cargo_registry}/%{crate}-%{version_no_tilde}/
009d6ed
009d6ed
%package     -n %{name}+default-devel
009d6ed
Summary:        %{summary}
009d6ed
BuildArch:      noarch
009d6ed
009d6ed
%description -n %{name}+default-devel %{_description}
009d6ed
009d6ed
This package contains library source intended for building other packages
009d6ed
which use "default" feature of "%{crate}" crate.
009d6ed
009d6ed
%files       -n %{name}+default-devel
d3a6bee
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
009d6ed
009d6ed
%package     -n %{name}+battery-devel
009d6ed
Summary:        %{summary}
009d6ed
BuildArch:      noarch
009d6ed
009d6ed
%description -n %{name}+battery-devel %{_description}
009d6ed
009d6ed
This package contains library source intended for building other packages
009d6ed
which use "battery" feature of "%{crate}" crate.
009d6ed
009d6ed
%files       -n %{name}+battery-devel
d3a6bee
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
009d6ed
009d6ed
%prep
009d6ed
%autosetup -n %{crate}-%{version_no_tilde} -p1
d3a6bee
# https://github.com/starship/starship/issues/755
d3a6bee
sed -i -e '/EXE_PATH/s|/debug/|/release/|' tests/testsuite/common.rs
009d6ed
%cargo_prep
009d6ed
009d6ed
%generate_buildrequires
009d6ed
%cargo_generate_buildrequires
d3a6bee
%if %{with check}
d3a6bee
echo 'git-core'
d3a6bee
%endif
009d6ed
009d6ed
%build
009d6ed
%cargo_build
009d6ed
009d6ed
%install
009d6ed
%cargo_install
009d6ed
009d6ed
%if %{with check}
009d6ed
%check
009d6ed
%cargo_test
009d6ed
%endif
009d6ed
009d6ed
%changelog
62129dc
* Tue Mar 03 2020 Josh Stone <jistone@redhat.com> - 0.37.0-1
62129dc
- Update to 0.37.0
62129dc
bee26a6
* Thu Feb 20 09:08:02 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.36.1-1
bee26a6
- Update to 0.36.1
bee26a6
62ee0cd
* Sun Feb 16 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.36.0-2
62ee0cd
- Fixup license list
62ee0cd
2ee16bb
* Thu Feb 13 05:20:12 EET 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 0.36.0-1
2ee16bb
- Update to 0.36.0
2ee16bb
345232d
* Tue Feb 11 13:28:47 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.35.1-1
345232d
- Update to 0.35.1
345232d
2667488
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.32.1-2
2667488
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2667488
651d7bb
* Thu Dec 26 08:19:53 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.32.1-1
651d7bb
- Update to 0.32.1
651d7bb
d3a6bee
* Thu Dec 19 14:06:54 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.30.1-3
d3a6bee
- Run tests
d3a6bee
009d6ed
* Fri Dec 13 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.30.1-2
009d6ed
- Update to 0.30.1
009d6ed
ffab942
* Fri Dec 13 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.29.0-1
009d6ed
- Update to 0.29.0
009d6ed
009d6ed
* Wed Dec 04 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.27.0-1
009d6ed
- Update to 0.27.0
009d6ed
009d6ed
* Thu Nov 28 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.26.5-1
009d6ed
- Update to 0.26.5
009d6ed
009d6ed
* Mon Nov 25 10:54:30 EET 2019 Artem Polishchuk <ego.cordatus@gmail.com> - 0.26.4-1
009d6ed
- Initial package