]> git.pld-linux.org Git - packages/tig.git/blob - tig.spec
- unconditional noarch subpackages
[packages/tig.git] / tig.spec
1 Summary:        Text-mode interface for git-core
2 Summary(pl.UTF-8):      Tekstowy interfejs do git-core
3 Name:           tig
4 Version:        2.5.2
5 Release:        1
6 License:        GPL v2+
7 Group:          Development/Tools
8 Source0:        https://github.com/jonas/tig/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5:  695cb0429c6e0a8738747407bc1d3966
10 URL:            https://jonas.github.io/tig/
11 BuildRequires:  ncurses-devel
12 BuildRequires:  pkgconfig
13 BuildRequires:  readline-devel
14 BuildRequires:  rpmbuild(macros) >= 1.752
15 Requires:       git-core
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Tig is a git-core repository browser that additionally can act as a
20 pager for output from various git commands.
21
22 When browsing repositories, it uses the underlying git commands to
23 present the user with various views, such as summarized revision log
24 and showing the commit with the log message, diffstat, and the diff.
25
26 Using it as a pager, it will display input from stdin and colorize it.
27
28 %description -l pl.UTF-8
29 Tig jest przeglądarką repozytoriów git-core'a. Dodatkowo może działać
30 jako pager dla różnych komend gita.
31
32 Podczas przeglądania repozytoriów używa poleceń gita i pokazuje log,
33 statystyki diffa i różnice między plikami.
34
35 Używany jako pager będzie kolorował to co otrzyma ze standardowego
36 wejścia.
37
38 %package -n bash-completion-tig
39 Summary:        bash-completion for tig
40 Summary(pl.UTF-8):      bashowe uzupełnianie nazw dla tiga
41 Group:          Applications/Shells
42 Requires:       bash-completion
43 BuildArch:      noarch
44
45 %description -n bash-completion-tig
46 This package provides bash-completion for tig.
47
48 %description -n bash-completion-tig -l pl.UTF-8
49 Pakiet ten dostarcza bashowe uzupełnianie nazw dla tiga.
50
51 %prep
52 %setup -q
53
54 %build
55 CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw"
56 export CFLAGS
57 LIBS=-ltinfow %configure
58 %{__make} V=1
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
63
64 %{__make} install install-doc-man \
65         DESTDIR=$RPM_BUILD_ROOT \
66         mandir=%{_mandir} \
67         prefix=%{_prefix}
68         sysconfdir=%{_sysconfdir}
69
70 # bash completion
71 cp -a contrib/tig-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %doc *.html
79 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tigrc
80 %attr(755,root,root) %{_bindir}/tig
81 #%attr(755,root,root) %{_bindir}/test-graph
82 %{_mandir}/man1/tig.1*
83 %{_mandir}/man5/tigrc.5*
84 %{_mandir}/man7/tigmanual.7*
85
86 %files -n bash-completion-tig
87 %defattr(644,root,root,755)
88 %{_sysconfdir}/bash_completion.d/tig-completion.bash
This page took 0.032677 seconds and 3 git commands to generate.