Name: dysk Version: 3.4.0 Release: 1%{?dist} Summary: A linux utility listing your filesystems. License: MIT URL: https://github.com/Canop/dysk?tab=readme-ov-file Source0: https://github.com/Canop/dysk/archive/refs/tags/v%{version}.tar.gz Source1: https://dystroy.org/dysk/download/man/dysk.1 BuildRequires: cargo %description dysk is a command that allows you to elegantly visualize filesystem usage on your system. %prep %autosetup -n dysk-%{version} gzip %{_sourcedir}/dysk.1 %build cargo build --release --locked %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_mandir}/man1 install -p -m 0755 target/release/dysk %{buildroot}%{_bindir} install -p -m 0644 %{_sourcedir}/dysk.1.gz %{buildroot}%{_mandir}/man1/dysk.1.gz %files %license LICENSE %{_bindir}/dysk %{_mandir}/man1/dysk.1.gz %changelog %autochangelog