Use 3 as the minimum width of formatted line numbers
[tig] / contrib / tig.spec.in
CommitLineData
8cdf5691 1# -*- mode: rpm-spec-mode; encoding: utf-8; -*-
22eb36aa 2# Pass '--without docs' to rpmbuild if you don't want the documentation to be build
8cdf5691
JN
3
4Summary: Tig: text-mode interface for git
5Name: tig
6Version: @@VERSION@@
276346b0 7Release: @@RELEASE@@%{?dist}
8cdf5691
JN
8License: GPL
9Group: Development/Tools
10Vendor: Jonas Fonseca <fonseca@diku.dk>
11URL: http://jonas.nitro.dk/tig/
12Source: http://jonas.nitro.dk/tig/releases/%{name}-%{version}.tar.gz
1f84ca3d 13BuildRequires: ncurses-devel%{!?_without_docs:, xmlto, asciidoc > 6.0.3}
8cdf5691
JN
14BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15Requires: git-core, ncurses
16
17%description
18Tig is a git repository browser that additionally can act as a pager
19for output from various git commands.
20
21When browsing repositories, it uses the underlying git commands to
22present the user with various views, such as summarized revision log
23and showing the commit with the log message, diffstat, and the diff.
24
25Using it as a pager, it will display input from stdin and colorize it.
26
27%prep
28%setup -q
29
30%build
31CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
32%{__make} %{_smp_mflags} \
33 prefix=%{_prefix} \
1f84ca3d 34 all %{!?_without_docs: doc-man doc-html}
8cdf5691
JN
35
36%install
37[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
38CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
39%{__make} %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT \
40 prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} \
41 install %{!?_without_docs: install-doc-man}
42
43%clean
44[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
45
46%files
47%defattr(-,root,root)
48%{_bindir}/*
f218b6c8 49%doc README COPYING INSTALL SITES BUGS TODO contrib/tigrc contrib/tig-completion.bash
8cdf5691
JN
50%{!?_without_docs: %{_mandir}/man1/*.1*}
51%{!?_without_docs: %{_mandir}/man5/*.5*}
1f84ca3d 52%{!?_without_docs: %doc *.html}
22eb36aa 53%{?_without_docs: %doc *.txt}
8cdf5691
JN
54
55%changelog
f218b6c8
JF
56* Sat Jun 23 2007 Jonas Fonseca <fonseca@diku.dk>
57- Include tig bash completion script
58
1f84ca3d 59* Fri Jun 1 2007 Jakub Narebski <jnareb@gmail.com>
22eb36aa 60- Include documentation sources for --without docs
1f84ca3d
JN
61- Remove PDF version of manual from being build and installed
62
8cdf5691
JN
63* Mon May 28 2007 Jakub Narebski <jnareb@gmail.com>
64- Initial tig spec file