# Generated by rust2rpm 27 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 Name: topnfiles Version: 4.1.8 Release: %autorelease Summary: Finds newest/oldest/smallest/largest files in a directory structure SourceLicense: MIT License: %{shrink: (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 MIT MIT OR Apache-2.0 Unlicense OR MIT } URL: https://gitlab.com/troelsarvin/topnfiles Source: %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: Recursively finds n most/least recently modified or smallest/largest files in a directory structure.} %description %{_description} %prep %autosetup -n topnfiles-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install install -Dpm 0644 packaging%{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %if %{with check} %check %cargo_test %endif %files %license LICENSE.txt %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_bindir}/topnfiles %{_mandir}/man1/%{name}.1* %changelog %autochangelog