## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %bcond check 1 Name: du-dust Version: 1.2.4 Release: %autorelease Summary: More intuitive version of du SourceLicense: Apache-2.0 # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 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 # BSD-2-Clause # MIT # MIT OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT License: %{shrink: Apache-2.0 AND BSD-2-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 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 (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown URL: https://github.com/bootandy/dust Source: %{url}/archive/v%{version}.tar.gz # Manually created patch for downstream crate metadata changes # * Allow directories 5 and 6: https://github.com/bootandy/dust/pull/533 # * Update sysinfo to 0.33 # Patch rust-lscolors to version 0.20 instead of 0.21 # Remove windows-only dependencies Patch: du-dust-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: A more intuitive version of du.} %description %{_description} %prep %autosetup -n dust-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install install -Dpm 0755 target/rpm/dust -t %{buildroot}%{_bindir} install -Dpm 0644 completions/dust.bash -t %{buildroot}%{bash_completions_dir} install -Dpm 0644 completions/dust.fish -t %{buildroot}%{fish_completions_dir} install -Dpm 0644 completions/_dust -t %{buildroot}%{zsh_completions_dir} install -Dpm 0644 man-page/dust.1 -t %{buildroot}%{_mandir}/man1/ %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/dust %{bash_completions_dir}/dust.bash %{fish_completions_dir}/dust.fish %{zsh_completions_dir}/_dust %{_mandir}/man1/dust.1* %changelog ## START: Generated by rpmautospec * Wed Mar 18 2026 Michel Lind - 1.2.4-5 - Undo the temporary downgrade of lscolors to 0.20 * Mon Jan 26 2026 jados - 1.2.4-4 - deleted rust2rpm.toml, no longer needed * Mon Jan 26 2026 jados - 1.2.4-3 - fixed typos in .spec * Mon Jan 26 2026 jados - 1.2.4-2 - switched to the non-crate way of packaging * Mon Jan 26 2026 jados - 1.2.4-1 - Updated to version 1.2.4 Added manual page Added shell completions * Fri Jan 16 2026 Fedora Release Engineering - 1.2.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Fri Nov 07 2025 Benjamin A. Beasley - 1.2.3-2 - Allow directories 6 - Re-generate the spec file and fix the License expression * Tue Aug 05 2025 jados - 1.2.3-1 - update to version 1.2.3 * Wed Jul 23 2025 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jul 06 2025 jados - 1.2.2-1 - Bump du-dust to version 1.2.2 * Mon Jun 30 2025 jados - 1.2.1-1 - Initial import (fedora#2371231). ## END: Generated by rpmautospec