SHA256
1
0
forked from pool/tig

Accepting request 290936 from home:AndreasStieger:branches:devel:tools:scm

- package bash completion
- package some configuration files samples
- use upstream spec.in description

OBS-URL: https://build.opensuse.org/request/show/290936
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/tig?expand=0&rev=36
This commit is contained in:
Takashi Iwai 2015-03-16 14:44:27 +00:00 committed by Git OBS Bridge
parent 5dee8d61d9
commit e3f0c494c5
2 changed files with 27 additions and 7 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 13 21:24:35 UTC 2015 - astieger@suse.com
- package bash completion
- package some configuration files samples
- use upstream spec.in description
-------------------------------------------------------------------
Wed Mar 11 19:25:11 UTC 2015 - astieger@suse.com

View File

@ -16,6 +16,7 @@
#
%define with_bash_completion 0%{?suse_version} >= 1310
Name: tig
Version: 2.1
Release: 0
@ -30,16 +31,20 @@ 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 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.
Tig is a git repository browser that additionally can act as a pager
for output from various git commands.
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.
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
@ -49,19 +54,27 @@ showing the commit with the log message, diffstat, and the diff.
%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
%doc %{_mandir}/man1/tig.1%{ext_man}
%doc %{_mandir}/man5/tigrc.5%{ext_man}
%doc %{_mandir}/man7/tigmanual.7%{ext_man}
%config %{_sysconfdir}/tigrc
%if 0%{with_bash_completion}
%{_sysconfdir}/bash_completion.d/%{name}
%endif
%changelog