# Generated by rust2rpm 28 # * neither test files nor test code is included in published crates %bcond check 0 %global crate dua-cli Name: rust-dua-cli Version: 2.38.1 Release: %autorelease Summary: Tool to conveniently learn about the disk usage of directories License: MIT URL: https://crates.io/crates/dua-cli Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * relax trash dependency to >=3,<6 # * allow shlex 2, gix 0.86: # https://github.com/Byron/dua-cli/commit/86b5db8dd147e47a302845b346b9af17774b52fa Patch: dua-cli-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A tool to conveniently learn about the disk usage of directories, fast!.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-3.0 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR Zlib # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib # Zlib OR Apache-2.0 OR MIT License: %{shrink: MIT AND Apache-2.0 AND MPL-2.0 AND Unicode-3.0 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) AND Zlib } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_bindir}/dua %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %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 the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+crossterm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crossterm-devel %{_description} This package contains library source intended for building other packages which use the "crossterm" feature of the "%{crate}" crate. %files -n %{name}+crossterm-devel %ghost %{crate_instdir}/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 the "open" feature of the "%{crate}" crate. %files -n %{name}+open-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trash-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trash-devel %{_description} This package contains library source intended for building other packages which use the "trash" feature of the "%{crate}" crate. %files -n %{name}+trash-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+trash-move-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+trash-move-devel %{_description} This package contains library source intended for building other packages which use the "trash-move" feature of the "%{crate}" crate. %files -n %{name}+trash-move-devel %ghost %{crate_instdir}/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 the "tui" feature of the "%{crate}" crate. %files -n %{name}+tui-devel %ghost %{crate_instdir}/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 the "tui-crossplatform" feature of the "%{crate}" crate. %files -n %{name}+tui-crossplatform-devel %ghost %{crate_instdir}/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 the "unicode-segmentation" feature of the "%{crate}" crate. %files -n %{name}+unicode-segmentation-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unicode-width-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unicode-width-devel %{_description} This package contains library source intended for building other packages which use the "unicode-width" feature of the "%{crate}" crate. %files -n %{name}+unicode-width-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog