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