Copy from devel:tools:scm/tig based on submit request 26447 from user bwalle OBS-URL: https://build.opensuse.org/request/show/26447 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tig?expand=0&rev=11
80 lines
2.3 KiB
RPMSpec
80 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package tig (Version 0.15)
|
|
#
|
|
# Copyright (c) 2009 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: tig
|
|
License: GPLv2+
|
|
Group: Development/Tools/Version Control
|
|
BuildRequires: ncurses-devel
|
|
Requires: git-core
|
|
AutoReqProv: on
|
|
Version: 0.15
|
|
Release: 1
|
|
Summary: An ncurses-based text-mode interface for git
|
|
Url: http://jonas.nitro.dk/tig/
|
|
Source0: http://jonas.nitro.dk/tig/releases/%{name}-%{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 -p1
|
|
|
|
%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
|
|
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 \
|
|
$RPM_BUILD_ROOT/%{_mandir}/man5
|
|
gzip tig.1
|
|
gzip tigrc.5
|
|
install -m 0644 tig.1.gz $RPM_BUILD_ROOT/%{_mandir}/man1
|
|
install -m 0644 tigrc.5.gz $RPM_BUILD_ROOT/%{_mandir}/man5
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/tig
|
|
%{_mandir}/man1/*
|
|
%{_mandir}/man5/*
|
|
|
|
%changelog
|