# # spec file for package tig # # Copyright (c) 2016 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 http://bugs.opensuse.org/ # %define with_bash_completion 0%{?suse_version} >= 1310 Name: tig Version: 2.2 Release: 0 Summary: An ncurses-based text-mode interface for git License: GPL-2.0+ Group: Development/Tools/Version Control Url: http://jonas.nitro.dk/tig/ Source0: http://jonas.nitro.dk/tig/releases/tig-%{version}.tar.gz Patch1: tig-remove_build_timestamp.patch BuildRequires: asciidoc BuildRequires: ncurses-devel BuildRequires: readline-devel Requires: git-core BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{with_bash_completion} BuildRequires: bash-completion Requires: bash-completion %endif %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. %prep %setup -q %patch1 %build %configure \ --with-ncurses \ --docdir=%{_docdir} make %{?_smp_mflags} prefix=%{_prefix} mandir=%{_mandir} %install make DESTDIR=%{buildroot} prefix="%{_prefix}" mandir="%{_mandir}" install make DESTDIR=%{buildroot} prefix="%{_prefix}" mandir="%{_mandir}" install-doc %if 0%{with_bash_completion} install -D -m0644 contrib/tig-completion.bash "%{buildroot}%{_sysconfdir}/bash_completion.d/%{name}" %endif %files %defattr(-,root,root) %doc COPYING NEWS.adoc README.adoc %doc contrib/*.tigrc %{_bindir}/tig %{_mandir}/man1/tig.1%{ext_man} %{_mandir}/man5/tigrc.5%{ext_man} %{_mandir}/man7/tigmanual.7%{ext_man} %config %{_sysconfdir}/tigrc %if 0%{with_bash_completion} %{_sysconfdir}/bash_completion.d/%{name} %endif %changelog