# Generated by rust2rpm 28 %bcond check 1 %global crate fd-find %global _trivial .0 %global _buildid .1 Name: rust-fd-find Version: 10.4.2 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Fd is a simple, fast and user-friendly alternative to find License: MIT OR Apache-2.0 URL: https://crates.io/crates/fd-find Source: %{name}-%{version}-processed.tar.gz # Manually created patch for downstream crate metadata changes # * Temporary lower MSRV from 1.90.0 to 1.88.0 for EL9 # * Allow lscolors 0.20 # * Allow tikv-jemallocator 0.7: https://github.com/sharkdp/fd/pull/2027 BuildRequires: rust-toolset %global _description %{expand: Fd is a simple, fast and user-friendly alternative to find.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 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 License: %{shrink: MIT AND Unicode-DFS-2016 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 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc CONTRIBUTING.md %doc README.md %doc SECURITY.md %{_bindir}/fd %{_mandir}/man1/fd.1* %{bash_completions_dir}/fd.bash %{fish_completions_dir}/fd.fish %{zsh_completions_dir}/_fd %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_vendor_manifest} %{cargo_license} > LICENSE.dependencies # generate shell completions ./target/release/fd --gen-completions bash > fd.bash ./target/release/fd --gen-completions fish > fd.fish ./target/release/fd --gen-completions zsh > fd.zsh %install %cargo_install # install manpage install -Dpm 644 doc/fd.1 -t %{buildroot}/%{_mandir}/man1/ # install shell completions install -Dpm 0644 fd.bash %{buildroot}/%{bash_completions_dir}/fd.bash install -Dpm 0644 fd.fish %{buildroot}/%{fish_completions_dir}/fd.fish install -Dpm 0644 fd.zsh %{buildroot}/%{zsh_completions_dir}/_fd %if %{with check} %check %cargo_test %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored build