SHA256
1
0
forked from pool/tig

Accepting request 291026 from devel:tools:scm

1

OBS-URL: https://build.opensuse.org/request/show/291026
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tig?expand=0&rev=33
This commit is contained in:
Dominique Leuenberger 2015-03-18 12:05:45 +00:00 committed by Git OBS Bridge
commit a8749003fe
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 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 Name: tig
Version: 2.1 Version: 2.1
Release: 0 Release: 0
@ -30,16 +31,20 @@ BuildRequires: ncurses-devel
BuildRequires: readline-devel BuildRequires: readline-devel
Requires: git-core Requires: git-core
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{with_bash_completion}
BuildRequires: bash-completion
Requires: bash-completion
%endif
%description %description
Tig is an ncurses-based text-mode interface for git. It allows you to Tig is a git repository browser that additionally can act as a pager
browse changes in a git repository and can additionally act as a pager for output from various git commands.
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 When browsing repositories, it uses the underlying git commands to
present the user with various views, such as summarized commit log and present the user with various views, such as summarized revision log
showing the commit with the log message, diffstat, and the diff. 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 %prep
%setup -q %setup -q
@ -49,19 +54,27 @@ showing the commit with the log message, diffstat, and the diff.
%configure \ %configure \
--with-ncurses \ --with-ncurses \
--docdir=%{_docdir} --docdir=%{_docdir}
make %{?_smp_mflags} prefix=%{_prefix} mandir=%{_mandir} make %{?_smp_mflags} prefix=%{_prefix} mandir=%{_mandir}
%install %install
make DESTDIR=%{buildroot} prefix="%{_prefix}" mandir="%{_mandir}" install make DESTDIR=%{buildroot} prefix="%{_prefix}" mandir="%{_mandir}" install
make DESTDIR=%{buildroot} prefix="%{_prefix}" mandir="%{_mandir}" install-doc 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 %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING NEWS.adoc README.adoc %doc COPYING NEWS.adoc README.adoc
%doc contrib/*.tigrc
%{_bindir}/tig %{_bindir}/tig
%doc %{_mandir}/man1/tig.1%{ext_man} %doc %{_mandir}/man1/tig.1%{ext_man}
%doc %{_mandir}/man5/tigrc.5%{ext_man} %doc %{_mandir}/man5/tigrc.5%{ext_man}
%doc %{_mandir}/man7/tigmanual.7%{ext_man} %doc %{_mandir}/man7/tigmanual.7%{ext_man}
%config %{_sysconfdir}/tigrc %config %{_sysconfdir}/tigrc
%if 0%{with_bash_completion}
%{_sysconfdir}/bash_completion.d/%{name}
%endif
%changelog %changelog