Name: ripgrep Version: 14.1.1 Release: 1%{?dist} Summary: ripgrep recursively searches directories for a regex pattern while respecting your gitignore URL: https://github.com/BurntSushi/ripgrep License: MIT Source0: https://github.com/BurntSushi/ripgrep/archive/refs/tags/%{version}.tar.gz # BuildRequires: List all packages required to build the software BuildRequires: git BuildRequires: python3 BuildRequires: curl BuildRequires: gcc %define debug_package %{nil} %description ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files. (To disable all automatic filtering by default, use rg -uuu.) ripgrep has first class support on Windows, macOS and Linux, with binary downloads available for every release. ripgrep is similar to other popular search tools like The Silver Searcher, ack and grep. %prep %setup -q %build # Install Rust using curl curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y export PATH="$PATH:$HOME/.cargo/bin" $HOME/.cargo/bin/cargo build --release --features 'pcre2' %install # You may need to adjust paths and permissions as necessary install -D -m 755 target/release/rg %{buildroot}/usr/bin/rg %check $HOME/.cargo/bin/cargo test --release --locked --all %files # List all installed files and directories /usr/bin/rg %changelog * Mon Sep 16 2024 Danie de Jager - 14.1.1-1 - Initial version