tig/tig.spec
Martin Pluskal 308f3fe5dd Accepting request 559523 from home:avindra
- tig 2.3.2:
  * Improve how busy loop detection performs on large repos
- tig 2.3.1:
  * Improvements:
    - Restore TTY attributes
    - Handle \n like \r
  * Bug fixes:
    - Add workaround that detects busy loops when Tig loses the
      TTY. This may happen if Tig does not receive the HUP signal
      (e.g. when started with nohup)
    - compatibility with ncurses-5.4 (clipboard support for prompt)
    - tig(1): document correct environment variable
- use macros to simplify build and install steps

OBS-URL: https://build.opensuse.org/request/show/559523
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/tig?expand=0&rev=53
2017-12-23 08:19:25 +00:00

69 lines
2.1 KiB
RPMSpec

#
# spec file for package tig
#
# Copyright (c) 2017 SUSE LINUX 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
Version: 2.3.2
Release: 0
Summary: An ncurses-based text-mode interface for git
License: GPL-2.0+
Group: Development/Tools/Version Control
Url: https://jonas.github.io/tig/
Source0: https://github.com/jonas/tig/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: asciidoc
BuildRequires: bash-completion
BuildRequires: ncurses-devel
BuildRequires: readline-devel
Requires: bash-completion
Requires: git-core
%description
Tig is a git repository browser that additionally can act as a pager
for output from various git commands.
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
%build
%configure \
--with-ncurses \
--docdir=%{_docdir}
make %{?_smp_mflags}
%install
%make_install install-doc-man
install -D -m0644 contrib/tig-completion.bash "%{buildroot}%{_sysconfdir}/bash_completion.d/%{name}"
%files
%doc COPYING NEWS.adoc README.adoc
%doc contrib/*.tigrc
%{_bindir}/tig
%{_mandir}/man1/tig.1%{ext_man}
%{_mandir}/man5/tigrc.5%{ext_man}
%{_mandir}/man7/tigmanual.7%{ext_man}
%config %{_sysconfdir}/tigrc
%{_sysconfdir}/bash_completion.d/%{name}
%changelog