tig/tig.spec

77 lines
2.4 KiB
RPMSpec

#
# spec file for package tig
#
# Copyright (c) 2012 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
BuildRequires: ncurses-devel
Requires: git-core
Version: 0.18
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/
# http://jonas.nitro.dk/tig/releases/tig-%{version}.tar.gz
Source0: tig-%{version}.tar.bz2
Patch0: tig-fix-build.diff
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.
Authors:
--------
Jonas Fonseca <fonseca@diku.dk>
%prep
%setup
%patch0
%build
CC=gcc
CFLAGS="$RPM_OPT_FLAGS -Wall"
export CFLAGS CC
%__make prefix=%{_prefix} mandir=%{_mandir}
%install
%__make DESTDIR="$RPM_BUILD_ROOT" prefix="%{_prefix}" mandir="%{_mandir}" install
%__install -D -m0644 tig.1 "$RPM_BUILD_ROOT/%{_mandir}/man1/tig.1"
%__install -D -m0644 tigrc.5 "$RPM_BUILD_ROOT/%{_mandir}/man5/tigrc.5"
%__install -D -m0644 tigmanual.7 "$RPM_BUILD_ROOT/%{_mandir}/man7/tigmanual.7"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc BUGS COPYING NEWS README TODO
%{_bindir}/tig
%doc %{_mandir}/man1/tig.1%{ext_man}
%doc %{_mandir}/man5/tigrc.5%{ext_man}
%doc %{_mandir}/man7/tigmanual.7%{ext_man}
%changelog