From: Jan Palus Date: Sun, 2 Aug 2020 23:17:58 +0000 (+0200) Subject: new (version 0.3.0) X-Git-Tag: auto/th/delta-0.3.0-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdelta.git;a=commitdiff_plain;h=92a8f1184626e8ebd822946b4ad7d34bd72f5230 new (version 0.3.0) --- 92a8f1184626e8ebd822946b4ad7d34bd72f5230 diff --git a/delta.spec b/delta.spec new file mode 100644 index 0000000..8054d2d --- /dev/null +++ b/delta.spec @@ -0,0 +1,79 @@ +Summary: A viewer for git and diff output +Name: delta +Version: 0.3.0 +Release: 1 +License: MIT +Group: Applications +Source0: https://github.com/dandavison/delta/archive/%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 2478af54c90dd207f7fe0db3c802c346 +# cd delta-%{version} +# cargo vendor +# cd .. +# tar cJf delta-crates-%{version}.tar.xz delta-%{version}/{vendor,Cargo.lock} +Source1: %{name}-crates-%{version}.tar.xz +# Source1-md5: b154f9661df86b69323b3f08e14e0e69 +URL: https://github.com/dandavison/delta +BuildRequires: cargo +BuildRequires: rust +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Delta aims to make studying diffs 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, changing just the aspects that you want to +change. + +Delta's main features are: + +- Language syntax highlighting with color themes +- Within-line highlights based on a Levenshtein edit inference + algorithm +- Style (foreground color, background color, font attributes) can be + configured independently for more than 20 different sections of the + diff +- Stylable box/line decorations to draw attention to commit, file and + hunk header sections. +- Line numbering (`-n`) +- `--diff-highlight` and `--diff-so-fancy` emulation modes +- Code can be copied directly from the diff (`-/+` markers are removed + by default). +- `n` and `N` keybindings to move between files in large diffs, and + between diffs in `log -p` views (`--navigate`) A viewer for git and + diff output. + +%prep +%setup -q -b1 + +# use our offline registry +export CARGO_HOME="$(pwd)/.cargo" + +mkdir -p "$CARGO_HOME" +cat >.cargo/config <