Blob Blame Raw
# Generated by rust2rpm 10
%bcond_without check
%global __cargo_skip_build 0

%global crate cargo-bloat

Name:           rust-%{crate}
Version:        0.7.1
Release:        2%{?dist}
Summary:        Find out what takes most of the space in your executable

# Upstream license specification: MIT
License:        MIT
URL:            https://crates.io/crates/cargo-bloat
Source:         %{crates_source}
# Initial patched metadata
# * Update goblin and object
Patch0:         cargo-bloat-fix-metadata.diff
# Revert of https://github.com/RazrFalcon/cargo-bloat/commit/da04eca990b011f26d6c67efa8d02569ed05b320
Patch0001:      0001-Revert-Revert-Dependencies-updated.patch

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging

%global _description %{expand:
Find out what takes most of the space in your executable.}

%description %{_description}

%package     -n %{crate}
Summary:        %{summary}

%description -n %{crate} %{_description}

%files       -n %{crate}
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/cargo-bloat

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

%changelog
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat Jun 22 12:12:25 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.1-1
- Update to 0.7.1

* Sat Jun 08 11:58:39 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.0-1
- Update to 0.7.0

* Sat Jun 01 21:03:33 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.4-1
- Initial package