Blob Blame History Raw
# Generated by rust2rpm 13
# * The test code is not shipped, but even if it would - the testing parts
#   are missing too.
%bcond_with check
# No devel stuff in released Fedora
%global __cargo_is_lib() false

%global crate dua-cli

Name:           rust-%{crate}
Version:        2.8.2
Release:        4%{?dist}
Summary:        Tool to conveniently learn about the disk usage of directories

# Upstream license specification: MIT
License:        MIT
URL:            https://crates.io/crates/dua-cli
Source:         %{crates_source}
# Initial patched metadata
# * Downgrade byte-unit to 3.1
Patch0:         dua-cli-fix-metadata.diff

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging

%global _description %{expand:
Tool to conveniently learn about the disk usage of directories, fast!.}

%description %{_description}

%package     -n %{crate}
Summary:        %{summary}
# (MIT or ASL 2.0) and BSD
# MIT
# MIT or ASL 2.0
License:        MIT and BSD

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

%files       -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/dua

%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
# https://github.com/Byron/dua-cli/issues/39
%cargo_test -- --   --skip interactive::app_test::journeys_with_writes::basic_user_journey_with_deletion                \
                    --skip interactive::app_test::journeys_readonly::simple_user_journey_read_only                      \
                    --skip interactive::app_test::unit::it_can_handle_ending_traversal_without_reaching_the_top         \
                    --skip interactive::app_test::unit::it_can_handle_ending_traversal_reaching_top_but_skipping_levels
%endif

%changelog
* Sun Aug 16 15:01:11 GMT 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.8.2-4
- Rebuild

* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-3
- Second attempt - Rebuilt for
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Thu Jul 02 09:59:22 EEST 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 2.8.2-1
- Update to 2.8.2

* Sun May 31 13:57:22 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.6.1-1
- Update to 2.6.1

* Sun May 10 14:35:34 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.6.0-1
- Update to 2.6.0

* Wed Apr 08 2020 Josh Stone <jistone@redhat.com> - 2.5.0-1
- Update to 2.5.0

* Mon Mar 30 08:19:56 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.4.1-1
- Update to 2.4.1

* Fri Mar 27 15:15:21 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.3.9-1
- Update to 2.3.9

* Thu Mar 26 08:32:46 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.3.8-1
- Update to 2.3.8

* Tue Mar 17 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.3.6-1.1
- Initial import