tig/tig.spec

212 lines
7.9 KiB
RPMSpec

#
# spec file for package tig (Version 0.14.1)
#
# 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: GPL v2 or later
Group: Development/Tools/Version Control
BuildRequires: ncurses-devel
Requires: git-core
AutoReqProv: on
Version: 0.14.1
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
* Fri Feb 20 2009 bwalle@suse.de
- update to 0.14.1
o Improvements
- Status view: improve "on branch" information inspired by the
prompt code in git's bash completion script.
- Colors for 256-capable terminals can be specified as colorN.
- Entering a number in the prompt will jump to that line
number.
- Handle core.worktree by setting GIT_DIR and GIT_WORK_TREE.
- Make behavior of horizontal scrolling configurable by setting
the horizontal-scroll variable to a number or a percentage.
o Bug fixes.
- update to 0.14
o Incompatibilities:
- The screen-resize action has been deprecated.
- The "tree-parent" action was renamed to "parent". Warnings
will be emitted for transition.
- Remove parsing of deprecated option -S and subcommands log
and diff.
- The "author" color replaces "main-author".
o Improvements:
- Horizontal scrolling.
- Read tigrc(5) options from git configuration files.
- Tree view: avoid flickering when updating.
- Tree view: annotate entries with commit information.
- Tree & blob view: open any blob in an editor.
- Stage & main view: restore view position when reloading.
- Blame view: load blame for parent commit.
- Abbreviate author names to initials when the width of the
author column is below 6 characters.
o Bug fixes
* Thu Jan 15 2009 bwalle@suse.de
- update to 0.13
o Incompatibilities:
- Commands from the environment (e.g. TIG_MAIN_CMD) will no
longer have access to shell features, such as subshells and
variable expansion.
o Improvements:
- Display repository references in the sorted order: tags,
heads, tracked remotes, remotes.
- Add bash completion for blame.
- Tree view: edit files of the current branch.
- Run requests: new identifiers %%(directory), %%(file), and
%%(ref)
- Improve responsiveness and view loading speed by using
select(2).
o Bug fixes:
- Separate blame revision and file argument by "—" to avoid
- Main view: fix redrawing of the last commit wrt. the revision
graph.
- Fix waiting for input after executing a run request in pager
mode.
- Status & stage view: refuse to open directories and deleted
files.
- Tree view: show error when requesting blame for all non-file
entries.
- Do not draw loading views, which are not displayed.
- Fix launching of mergetool from a subdirectory problems.
* Thu Oct 09 2008 bwalle@suse.de
- update to 0.12.1
o Improvements:
- Status view: revert uncommitted diff chunks and unstaged
files with changes. Bound to ! by default.
- Main view: use —topo-order also when rev-list arguments are
given on the command line.
- Log view: support for refreshing.
o Bug fixes:
- Status view: use ls-files' —exclude-standard so user specific
ignore rules are effective. The option was added in git
version 1.5.4.
- Stage view: fix assertion failure triggered when updating
while status view is not displayed.
- Help view: avoid confusion by showing "(no key)" instead of
"?" for unbound requests.
- Reload repository references when refreshing the main (and
log) view.
- Do not maximize views when refreshing.
* Mon Oct 06 2008 bwalle@suse.de
- update to 0.12
o Improvements:
- F5 also refreshes the current view.
- Allow line graphics to be disabled with new line-graphics
option
- Main view: also include the reference names when searching
- Main view: support for refreshing
- Main view: disable boundary commits by default. Use —boundary
when they should be shown
- Stage view: add stage-next action to jump to next diff chunk
that can be staged. By default bound to @
- Configure: check for the ncurses header files
- Add author-width option to costumize the width of the author
column.
o Bug fixes:
- Fix regression when staging all diff chunks in a section.
- Bind the maximize view action to O; it conflicted with the
keybinding to launch the merge tool in the status view
- Fix problem with $(cmd) usage in shell code. Some shells
(jsh) installed as /bin/sh does not support it
- Do not show incomplete boundary commits when —no-walk is used
- Documentation: Rename gitlink macro to support AsciiDoc 8.2.3
- Ignore pipe reads with errno "Success" reported after a
signals, for example when refreshing doing background loading
* Mon Apr 07 2008 bwalle@suse.de
- update to 0.11
o Fix pager mode and disable view reliance on the git directory.
o The date and author columns and references can now be toggled
on and off.
o Local (unsigned) tags are now shown as references, and the
builtin reference colors have been changed to highlight the
current branch and the remote tracked by the current branch.
o The status and stage views are now reloaded after running
external commands (e.g. git commit) so they stay up to date.
o A blame view has been added, and is accessible from the
command line (tig blame [rev] file), status view, and the tree
view (by pressing 'B').
- change compression to bzip2
* Mon Mar 17 2008 bwalle@suse.de
- update to 0.10
o documentation improvements
o bugfixes
o needed updates to work better with git
o On startup, tig will now attempt to first read a system-wide
configuration file before loading the user specific
configuration file.
o Cherry picking from inside tig has been generalized
making it possible to wire external commands, which can
access information about the current commit, to a keybinding.
o option parsing has been changed to be more similar to gitk's.
* Sat Sep 22 2007 bwalle@suse.de
- update to 0.9 (no upstream ChangeLog)
* Sun May 13 2007 bwalle@suse.de
- initial package