File: tig.spec

package info (click to toggle)
tig 2.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,744 kB
  • ctags: 1,821
  • sloc: ansic: 14,015; sh: 398; makefile: 307
file content (76 lines) | stat: -rw-r--r-- 2,449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# -*- mode: rpm-spec-mode; encoding: utf-8; -*-
# Pass '--without docs' to rpmbuild if you don't want the documentation to be build

Summary: 	Tig: text-mode interface for git
Name: 		tig
Version: 	2.0.2
Release: 	0%{?dist}
License: 	GPL
Group: 		Development/Tools
Vendor: 	Jonas Fonseca <jonas.fonseca@gmail.com>
URL: 		http://jonas.nitro.dk/tig/
Source: 	http://jonas.nitro.dk/tig/releases/%{name}-%{version}.tar.gz
BuildRequires: 	ncurses-devel%{!?_without_docs:, xmlto, asciidoc > 6.0.3}
BuildRoot: 	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: 	git-core, ncurses

%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
CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
%{__make} %{_smp_mflags} \
	prefix=%{_prefix} \
	all %{!?_without_docs: doc-man doc-html}

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
%{__make} %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT \
	prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} \
	install %{!?_without_docs: install-doc-man}

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/*
%{_sysconfdir}/*
%doc README.adoc COPYING INSTALL.adoc NEWS.adoc contrib/tig-completion.bash
%{!?_without_docs: %{_mandir}/man1/*.1*}
%{!?_without_docs: %{_mandir}/man5/*.5*}
%{!?_without_docs: %{_mandir}/man7/*.7*}
%{!?_without_docs: %doc doc/*.html}
%{?_without_docs:  %doc doc/*.txt}

%changelog
* Sun 23 Feb 2014 Jonas Fonseca <jonas.fonseca@gmail.com>
- Add tigrc installed in /etc

* Tue Jan  8 2013 Joakim Sernbrant <serbaut@gmail.com>
- Added configure

* Thu Aug 16 2012 Victor Foitzik <vifo@cpan.org>
- Now also packaging man(7) pages

* Sat Jun 23 2007 Jonas Fonseca <jonas.fonseca@gmail.com>
- Include tig bash completion script

* Fri Jun  1 2007 Jakub Narebski <jnareb@gmail.com>
- Include documentation sources for --without docs
- Remove PDF version of manual from being build and installed

* Mon May 28 2007 Jakub Narebski <jnareb@gmail.com>
- Initial tig spec file