# # spec file for package tig # # Copyright (c) 2013 SUSE LINUX Products 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/ # Name: tig Version: 1.2.1 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 Patch0: tig-fix-build.diff Patch1: tig-remove_build_timestamp.patch BuildRequires: asciidoc BuildRequires: automake BuildRequires: libxslt-tools BuildRequires: ncurses-devel Requires: git-core BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Tig is an ncurses-based text-mode interface for git. It allows you to browse changes in a git repository and can additionally act as a pager for output of various git commands. When used as a pager, it will display input from stdin and colorize it. When browsing repositories, tig uses the underlying git commands to present the user with various views, such as summarized commit log and showing the commit with the log message, diffstat, and the diff. %prep %setup -q %patch0 %patch1 %build autoreconf -vi -I contrib %configure make prefix=%{_prefix} mandir=%{_mandir} %install make DESTDIR=%{buildroot} prefix="%{_prefix}" mandir="%{_mandir}" install a2x -f manpage -D %{_tmppath} doc/tig.1.asciidoc a2x -f manpage -D %{_tmppath} doc/tigrc.5.asciidoc a2x -f manpage -D %{_tmppath} doc/tigmanual.7.asciidoc install -D -m0644 %{_tmppath}/tig.1 "%{buildroot}/%{_mandir}/man1/tig.1" install -D -m0644 %{_tmppath}/tigrc.5 "%{buildroot}/%{_mandir}/man5/tigrc.5" install -D -m0644 %{_tmppath}/tigmanual.7 "%{buildroot}/%{_mandir}/man7/tigmanual.7" %files %defattr(-,root,root) %doc BUGS COPYING NEWS README %{_bindir}/tig %doc %{_mandir}/man1/tig.1%{ext_man} %doc %{_mandir}/man5/tigrc.5%{ext_man} %doc %{_mandir}/man7/tigmanual.7%{ext_man} %changelog