Initial import

Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Raits 2020-02-25 02:10:25 +01:00
parent 3f5ce63721
commit b2c2fd156e
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C
3 changed files with 101 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/dua-cli-2.3.2.crate

99
rust-dua-cli.spec Normal file
View File

@ -0,0 +1,99 @@
# Generated by rust2rpm 13
%bcond_without check
%global crate dua-cli
Name: rust-%{crate}
Version: 2.3.2
Release: 1%{?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}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Tool to conveniently learn about the disk usage of directories, fast!.}
%description %{_description}
%if ! %{__cargo_skip_build}
%package -n %{crate}
Summary: %{summary}
# Install all deps (without check), grab their licenses and make it simple
# * ASL 2.0 or MIT
# * MIT
# * MIT or ASL 2.0
# * (MIT or ASL 2.0) and BSD
License: MIT and BSD
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%doc README.md
%{_bindir}/dua
%endif
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages
which use "%{crate}" crate.
%files devel
%license LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
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_no_tilde}/Cargo.toml
%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
* Tue Feb 25 02:05:44 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 2.3.2-1
- Update to 2.3.2
* Mon Feb 24 20:18:39 EET 2020 Artem Polishchuk <ego.cordatus@gmail.com> - 2.3.1-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (dua-cli-2.3.2.crate) = fd95a661f8a161f918ad3647e866785fa9fb5dcb15e557aed038439b4280d6889968b6ba4e7dcea05841cee2998fbbb3c43fcdb3ac7db52db6e73a48ac698992