# Generated by rust2rpm 18 # * neither test files nor test code is included in published crates %bcond_with check %global crate dua-cli Name: rust-%{crate} Version: 2.11.1 Release: %autorelease 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 # * bump crosstermion from 0.6 to 0.7 # * bump tui from 0.14 to 0.15 # * bump tui-react from 0.14 to 0.15 Patch0: dua-cli-fix-metadata.diff # * port to clap 3.0.0-beta.5 Patch1: 0001-port-to-clap-3.0.0-beta.5.patch 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} # ASL 2.0 or MIT # BSD # MIT # MIT or ASL 2.0 # MPLv2.0 # Unlicense or MIT License: MIT and BSD and MPLv2.0 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md CHANGELOG.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 CHANGELOG.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 %package -n %{name}+crosstermion-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crosstermion-devel %{_description} This package contains library source intended for building other packages which use "crosstermion" feature of "%{crate}" crate. %files -n %{name}+crosstermion-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+open-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+open-devel %{_description} This package contains library source intended for building other packages which use "open" feature of "%{crate}" crate. %files -n %{name}+open-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+tui-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tui-devel %{_description} This package contains library source intended for building other packages which use "tui" feature of "%{crate}" crate. %files -n %{name}+tui-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+tui-crossplatform-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tui-crossplatform-devel %{_description} This package contains library source intended for building other packages which use "tui-crossplatform" feature of "%{crate}" crate. %files -n %{name}+tui-crossplatform-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+tui-react-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tui-react-devel %{_description} This package contains library source intended for building other packages which use "tui-react" feature of "%{crate}" crate. %files -n %{name}+tui-react-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+tui-shared-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tui-shared-devel %{_description} This package contains library source intended for building other packages which use "tui-shared" feature of "%{crate}" crate. %files -n %{name}+tui-shared-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+tui-unix-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tui-unix-devel %{_description} This package contains library source intended for building other packages which use "tui-unix" feature of "%{crate}" crate. %files -n %{name}+tui-unix-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+unicode-segmentation-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unicode-segmentation-devel %{_description} This package contains library source intended for building other packages which use "unicode-segmentation" feature of "%{crate}" crate. %files -n %{name}+unicode-segmentation-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 %cargo_test %endif %changelog %autochangelog