1 Summary: Text-mode interface for git-core
2 Summary(pl.UTF-8): Tekstowy interfejs do git-core
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
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Tig is a git-core repository browser that additionally can act as a
20 pager for output from various git commands.
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.
26 Using it as a pager, it will display input from stdin and colorize it.
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.
32 Podczas przeglądania repozytoriów używa poleceń gita i pokazuje log,
33 statystyki diffa i różnice między plikami.
35 Używany jako pager będzie kolorował to co otrzyma ze standardowego
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
45 %description -n bash-completion-tig
46 This package provides bash-completion for tig.
48 %description -n bash-completion-tig -l pl.UTF-8
49 Pakiet ten dostarcza bashowe uzupełnianie nazw dla tiga.
55 CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw"
57 LIBS=-ltinfow %configure
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
64 %{__make} install install-doc-man \
65 DESTDIR=$RPM_BUILD_ROOT \
68 sysconfdir=%{_sysconfdir}
71 cp -a contrib/tig-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
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*
86 %files -n bash-completion-tig
87 %defattr(644,root,root,755)
88 %{_sysconfdir}/bash_completion.d/tig-completion.bash