Do not show deleted branch when reloading the branch view
[tig.git] / contrib / tig.spec.in
blob911e33791740e30e5569e693e5dee626a1e01078
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
5 Name: tig
6 Version: @@VERSION@@
7 Release: @@RELEASE@@%{?dist}
8 License: GPL
9 Group: Development/Tools
10 Vendor: Jonas Fonseca <fonseca@diku.dk>
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
17 %description
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.
27 %prep
28 %setup -q
30 %build
31 CFLAGS="$RPM_OPT_FLAGS -DVERSION=tig-%{version}-%{release}"
32 %{__make} %{_smp_mflags} \
33 prefix=%{_prefix} \
34 all %{!?_without_docs: doc-man doc-html}
36 %install
37 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
38 CFLAGS="$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}
43 %clean
44 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
46 %files
47 %defattr(-,root,root)
48 %{_bindir}/*
49 %doc README COPYING INSTALL SITES BUGS contrib/tigrc contrib/tig-completion.bash
50 %{!?_without_docs: %{_mandir}/man1/*.1*}
51 %{!?_without_docs: %{_mandir}/man5/*.5*}
52 %{!?_without_docs: %{_mandir}/man7/*.7*}
53 %{!?_without_docs: %doc *.html}
54 %{?_without_docs: %doc *.txt}
56 %changelog
57 * Thu Aug 16 2012 Victor Foitzik <vifo@cpan.org>
58 - Now also packaging man(7) pages
60 * Sat Jun 23 2007 Jonas Fonseca <fonseca@diku.dk>
61 - Include tig bash completion script
63 * Fri Jun 1 2007 Jakub Narebski <jnareb@gmail.com>
64 - Include documentation sources for --without docs
65 - Remove PDF version of manual from being build and installed
67 * Mon May 28 2007 Jakub Narebski <jnareb@gmail.com>
68 - Initial tig spec file