Name: ripgrep Version: 15.1.0 Release: 1%{?dist} Summary: Line-oriented search tool License: Unlicense OR MIT URL: https://crates.io/crates/ripgrep Source: https://github.com/BurntSushi/ripgrep/archive/%{version}/%{name}-%{version}.tar.gz BuildRequires: cargo-rpm-macros >= 24 %description Line-oriented search tool that recursively searches the current directory for a regex pattern while respecting gitignore rules. %prep %autosetup -n %{name}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %{cargo_license_summary -a} %{cargo_license -a} > LICENSE.dependencies %install %cargo_install -a # generate and install manpage target/release/rg --generate man > rg.1 install -Dpm 0644 rg.1 -t %{buildroot}/%{_mandir}/man1/ # generate and install shell completions target/release/rg --generate complete-bash > rg.bash target/release/rg --generate complete-fish > rg.fish install -Dpm 0644 rg.bash -t %{buildroot}/%{bash_completions_dir} install -Dpm 0644 rg.fish -t %{buildroot}/%{fish_completions_dir} %files %{_bindir}/rg %{_mandir}/man1/rg.1* %{bash_completions_dir}/rg.bash %{fish_completions_dir}/rg.fish %changelog %autochangelog