]>
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 |
be65773d | 4 | Version: 2.5.2 |
d011c017 | 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 |
be65773d | 9 | # Source0-md5: 695cb0429c6e0a8738747407bc1d3966 |
a3ddc5da | 10 | URL: https://jonas.github.io/tig/ |
d8ae691a | 11 | BuildRequires: ncurses-devel |
be65773d JP |
12 | BuildRequires: pkgconfig |
13 | BuildRequires: readline-devel | |
2cb93d4d | 14 | BuildRequires: rpmbuild(macros) >= 1.752 |
d8ae691a | 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 | ||
30c6d1e2 JR |
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. | |
d8ae691a | 31 | |
30c6d1e2 JR |
32 | Podczas przeglądania repozytoriów używa poleceń gita i pokazuje log, |
33 | statystyki diffa i różnice między plikami. | |
d8ae691a | 34 | |
30c6d1e2 JR |
35 | Używany jako pager będzie kolorował to co otrzyma ze standardowego |
36 | wejścia. | |
d8ae691a | 37 | |
258a0492 AG |
38 | %package -n bash-completion-tig |
39 | Summary: bash-completion for tig | |
40 | Summary(pl.UTF-8): bashowe uzupełnianie nazw dla tiga | |
4eef9c0b | 41 | Group: Applications/Shells |
258a0492 | 42 | Requires: bash-completion |
c773e14d | 43 | BuildArch: noarch |
258a0492 AG |
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 | ||
d8ae691a | 51 | %prep |
52 | %setup -q | |
d8ae691a | 53 | |
54 | %build | |
680ab128 | 55 | CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw" |
56 | export CFLAGS | |
57 | LIBS=-ltinfow %configure | |
657504b3 | 58 | %{__make} V=1 |
d8ae691a | 59 | |
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
258a0492 | 62 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
d8ae691a | 63 | |
5ffc336a | 64 | %{__make} install install-doc-man \ |
d8ae691a | 65 | DESTDIR=$RPM_BUILD_ROOT \ |
5ffc336a | 66 | mandir=%{_mandir} \ |
d8ae691a | 67 | prefix=%{_prefix} |
657504b3 | 68 | sysconfdir=%{_sysconfdir} |
d8ae691a | 69 | |
258a0492 | 70 | # bash completion |
c657d909 | 71 | cp -a contrib/tig-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d |
258a0492 | 72 | |
d8ae691a | 73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
657504b3 JP |
78 | %doc *.html |
79 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tigrc | |
4eef9c0b | 80 | %attr(755,root,root) %{_bindir}/tig |
680ab128 | 81 | #%attr(755,root,root) %{_bindir}/test-graph |
c657d909 | 82 | %{_mandir}/man1/tig.1* |
83 | %{_mandir}/man5/tigrc.5* | |
84 | %{_mandir}/man7/tigmanual.7* | |
258a0492 AG |
85 | |
86 | %files -n bash-completion-tig | |
87 | %defattr(644,root,root,755) | |
88 | %{_sysconfdir}/bash_completion.d/tig-completion.bash |