1 # -*- mode: rpm-spec-mode; encoding: utf-8; -*-
2 # Pass '--without docs' to rpmbuild if you don't want the documentation to be build
4 Summary: Tig
: text
-mode interface
for git
7 Release: @@RELEASE@@
%{?dist}
9 Group: Development
/Tools
10 Vendor: Jonas Fonseca
<jonas.fonseca@gmail.com
>
11 URL: http
://jonas.nitro.dk
/tig
/
12 Source: http
://jonas.nitro.dk
/tig
/releases
/%{name}-%{version}.tar.gz
13 BuildRequires
: ncurses
-devel
%{!?_without_docs:, xmlto, asciidoc > 6.0.3}
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
15 Requires: git
-core
, ncurses
18 Tig is a git repository browser that additionally can act as a pager
19 for output from various git commands.
21 When browsing repositories
, it uses the underlying git commands to
22 present the user with various views
, such as summarized revision log
23 and showing the commit with the log message
, diffstat
, and the diff.
25 Using it as a pager
, it will display input from stdin and colorize it.
32 CFLAGS
="$RPM_OPT_FLAGS
-DVERSION
=tig
-%{version}-%{release}"
33 %{__make} %{_smp_mflags} \
35 all
%{!?_without_docs: doc-man doc-html}
38 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
39 CFLAGS
="$RPM_OPT_FLAGS
-DVERSION
=tig
-%{version}-%{release}"
40 %{__make} %{_smp_mflags} DESTDIR
=$RPM_BUILD_ROOT \
41 prefix
=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} \
42 install %{!?_without_docs: install-doc-man}
45 [ "$RPM_BUILD_ROOT"
!= "
/"
] && rm -rf $RPM_BUILD_ROOT
51 %doc README.adoc COPYING INSTALL.adoc NEWS.adoc contrib
/tig
-completion.bash
52 %{!?_without_docs: %{_mandir}/man1/*.1*}
53 %{!?_without_docs: %{_mandir}/man5/*.5*}
54 %{!?_without_docs: %{_mandir}/man7/*.7*}
55 %{!?_without_docs: %doc doc/*.html}
56 %{?_without_docs: %doc doc/*.txt}
59 * Sun
23 Feb
2014 Jonas Fonseca
<jonas.fonseca@gmail.com
>
60 - Add tigrc installed
in /etc
62 * Tue Jan
8 2013 Joakim Sernbrant
<serbaut@gmail.com
>
65 * Thu Aug
16 2012 Victor Foitzik
<vifo@cpan.org
>
66 - Now also packaging man
(7) pages
68 * Sat Jun
23 2007 Jonas Fonseca
<jonas.fonseca@gmail.com
>
69 - Include tig bash completion script
71 * Fri Jun
1 2007 Jakub Narebski
<jnareb@gmail.com
>
72 - Include documentation sources
for --without docs
73 - Remove PDF version of manual from being build and installed
75 * Mon May
28 2007 Jakub Narebski
<jnareb@gmail.com
>
76 - Initial tig spec file