File tig.spec of Package tig

# spec file for package tig
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           tig
Version:        2.3.3
Release:        0
Summary:        An ncurses-based text-mode interface for git
License:        GPL-2.0+
Group:          Development/Tools/Version Control
BuildRequires:  asciidoc
BuildRequires:  bash-completion
BuildRequires:  ncurses-devel
BuildRequires:  readline-devel
Requires:       bash-completion
Requires:       git-core

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.

%setup -q

%configure \
	--with-ncurses \

make %{?_smp_mflags}

%make_install install-doc-man
install -D -m0644 contrib/tig-completion.bash "%{buildroot}%{_sysconfdir}/bash_completion.d/%{name}"

%doc COPYING NEWS.adoc README.adoc
%doc contrib/*.tigrc
%config %{_sysconfdir}/tigrc