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