Files
tig/tig.spec
Michael Vetter 36b299515f - Update to 2.6.0:
Bug fixes:
  * Initialise %(head) from command line arguments. (#1366)
  * Make $GIT_EDITOR value interpreted by the shell. (#1367)
  * Use correct line from recursively blamed commit. (#1369, #1370)
  * Use correct line when using :parent in blame view. (#1372)
  * Fix the incorrect line shift after stage file. (#1371)
  * Update display after setting column option. (#1384)
  * Fix file mode diff header handling.
  * Fix crash caused by too many diff cells. (#1389)
  * Fix issue with blame when using absolute file paths. (#1391)
  Improvements:
  * Add color for cursor in backgrounded view. (#1374)
  * Blame view now works without a working tree.
  * Open diff view from blame at the correct line. (#1375)
  * Document how to get a < within TIG_SCRIPT. (#1357)
  * Allow to hide +/- signs in the diff view. (#855)
  * Add toggle options to help. (#1381)
  * Add expand/collapse all options to help. (#1382)
  * Expand relevant sections only when opening the help view. (#782, #886)
  * Introduce committer column.
  * Open the blame and blob views from diffstat.
  * Update utf8proc to v2.11.0, supporting Unicode 17.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/tig?expand=0&rev=88
2025-09-17 08:46:55 +00:00

102 lines
3.0 KiB
RPMSpec

#
# spec file for package tig
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: tig
Version: 2.6.0
Release: 0
Summary: An ncurses-based text-mode interface for git
License: GPL-2.0-or-later
Group: Development/Tools/Version Control
URL: https://jonas.github.io/tig/
Source0: https://github.com/jonas/tig/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig >= 0.9.0
BuildRequires: readline-devel >= 6.3
BuildRequires: pkgconfig(libpcre2-posix)
BuildRequires: pkgconfig(ncurses)
Requires: git-core
%description
Tig is a git repository browser that additionally can act as a pager
for output from various git commands.
When browsing repositories, it uses the underlying git commands to
present the user with various views, such as summarized revision log
and showing the commit with the log message, diffstat, and the diff.
Using it as a pager, it will display input from stdin and colorize it.
%package bash-completion
Summary: Bash completion for %{name}
Group: Development/Tools/Version Control
Requires: %{name} = %{version}
Requires: bash-completion
Supplements: (%{name} and bash-completion)
BuildArch: noarch
%description bash-completion
Bash command line completion support for %{name}.
%package zsh-completion
Summary: Zsh completion for %{name}
Group: Development/Tools/Version Control
Requires: %{name} = %{version}
Requires: zsh
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
Zsh command line completion support for %{name}.
%prep
%autosetup -p1
%build
%configure \
--with-ncurses \
--docdir=%{_docdir}
%make_build
%install
%make_install install-doc-man
install -Dpm 0644 contrib/tig-completion.bash \
%{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -Dpm 0644 contrib/tig-completion.bash \
%{buildroot}%{_datadir}/zsh/site-functions/%{name}-completion.bash
install -Dpm 0644 contrib/tig-completion.zsh \
%{buildroot}%{_datadir}/zsh/site-functions/_%{name}
%files
%license COPYING
%doc NEWS.adoc README.adoc
%doc contrib/*.tigrc
%{_bindir}/tig
%config %{_sysconfdir}/tigrc
%{_mandir}/man1/tig.1%{?ext_man}
%{_mandir}/man5/tigrc.5%{?ext_man}
%{_mandir}/man7/tigmanual.7%{?ext_man}
%files bash-completion
%license COPYING
%{_datadir}/bash-completion
%files zsh-completion
%license COPYING
%{_datadir}/zsh
%changelog