diff --git a/tig.changes b/tig.changes index b325b6d..157b25f 100644 --- a/tig.changes +++ b/tig.changes @@ -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 diff --git a/tig.spec b/tig.spec index 55d37a1..d55d847 100644 --- a/tig.spec +++ b/tig.spec @@ -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