5
0
forked from pool/git-delta
Files
git-delta/git-delta.spec
Martin Sirringhaus 8a1a973565 Accepting request 1200134 from home:jubalh:branches:utilities
- Update to 0.18.2:
  * Move AmbiguousDiffMinusCounter to hunk_header #1825
  * Fix Catppuccin Latte name in LIGHT_SYNTAX_THEMES list #1823
  * Handle quoted file paths in hunk headers #1840
  * Fix clippy warnings #1851
  * Allow --dark to override dark/light detected from syntax theme #1843
  * Upgrade and pin unicode-width to v0.1.12 #1858

- Update to 0.18.1:
  * This patch release fixes an issue with delta --version that
    was causing problems downstream (#1818)
  * Add hyperlinks section to manual #1816
  * Added platypus theme #1819
  * Don't use pager for --version #1824

- Update to 0.18.0:
  * Link to Repository from Manual #1657
  * Stop highlighting unchanged whitespace #1659
  * Add .gitattributes rules for rust files #1245
  * Repair --default-language, and highlight using full filename #1549
  * tests: prevent parallel env var access #1681
  * CI: fix macOS build #1696
  * Only use nosort in bash <4.4 #1683
  * Don't read git files when --no-gitconfig is given + unused variables #1728
  * tests: add insta for snapshot testing #1739
  * tests: set terminal width to 43 #1741
  * Fix panic when blame-palette is empty #1737
  * Make relative-paths work with binary files #1740
  * Fix github links from master to main #1709
  * Update terminal-colorsaurus #1699

OBS-URL: https://build.opensuse.org/request/show/1200134
OBS-URL: https://build.opensuse.org/package/show/utilities/git-delta?expand=0&rev=30
2024-09-16 10:51:41 +00:00

70 lines
2.1 KiB
RPMSpec

#
# spec file for package git-delta
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: git-delta
Version: 0.18.2
Release: 0
Summary: A syntax-highlighter for git and diff output
License: MIT
URL: https://github.com/dandavison/delta
Source0: https://github.com/dandavison/delta/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: clang-devel
BuildRequires: git-core
BuildRequires: zstd
Conflicts: sccs
%description
Delta provides language syntax-highlighting, within-line insertion/deletion detection, and restructured diff output for git on the command line.
%prep
%autosetup -a1 -n delta-%{version}
mkdir -p .cargo
cp %{SOURCE2} .cargo/config
%build
CFLAGS+=' -ffat-lto-objects'
%{cargo_build}
%check
CFLAGS+=' -ffat-lto-objects'
%{cargo_test}
%install
CFLAGS+=' -ffat-lto-objects'
%{cargo_install}
# install bash completion
install -D -m 0644 %{_builddir}/delta-%{version}%{_sysconfdir}/completion/completion.bash %{buildroot}%{_datadir}/bash-completion/completions/delta
# install zsh completion
install -D -m 0644 %{_builddir}/delta-%{version}%{_sysconfdir}/completion/completion.zsh %{buildroot}%{_datadir}/zsh/site-functions/_delta
%files
%license LICENSE
%doc README.md
%{_bindir}/delta
%{_datadir}/bash-completion/completions/delta
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_delta
%changelog