%define debug_package %{nil} %undefine _package_note_file Name: delta Version: 0.19.2 Release: 1%{?dist} Summary: A syntax-highlighting pager for git, diff, and grep output URL: https://github.com/dandavison/delta License: MIT Source0: https://github.com/dandavison/delta/archive/refs/tags/%{version}.tar.gz BuildRequires: git-core BuildRequires: python3 BuildRequires: curl BuildRequires: gcc BuildRequires: upx %description Code evolves, and we all spend time studying diffs. Delta aims to make this both efficient and enjoyable: it allows you to make extensive changes to the layout and styling of diffs, as well as allowing you to stay arbitrarily close to the default git/diff output. %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 --all-features upx target/release/%{name} %install # You may need to adjust paths and permissions as necessary install -D -m 755 target/release/%{name} %{buildroot}/usr/bin/%{name} %check $HOME/.cargo/bin/cargo test --release %files # List all installed files and directories /usr/bin/%{name} %changelog %autochangelog