]> git.pld-linux.org Git - packages/tig.git/blame - tig.spec
- unconditional noarch subpackages
[packages/tig.git] / tig.spec
CommitLineData
d8ae691a 1Summary: Text-mode interface for git-core
43ad6af9 2Summary(pl.UTF-8): Tekstowy interfejs do git-core
d8ae691a 3Name: tig
be65773d 4Version: 2.5.2
d011c017 5Release: 1
c657d909 6License: GPL v2+
d8ae691a 7Group: Development/Tools
a3ddc5da 8Source0: https://github.com/jonas/tig/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
be65773d 9# Source0-md5: 695cb0429c6e0a8738747407bc1d3966
a3ddc5da 10URL: https://jonas.github.io/tig/
d8ae691a 11BuildRequires: ncurses-devel
be65773d
JP
12BuildRequires: pkgconfig
13BuildRequires: readline-devel
2cb93d4d 14BuildRequires: rpmbuild(macros) >= 1.752
d8ae691a 15Requires: git-core
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Tig is a git-core repository browser that additionally can act as a
20pager for output from various git commands.
21
22When browsing repositories, it uses the underlying git commands to
23present the user with various views, such as summarized revision log
24and showing the commit with the log message, diffstat, and the diff.
25
26Using it as a pager, it will display input from stdin and colorize it.
27
30c6d1e2
JR
28%description -l pl.UTF-8
29Tig jest przeglądarką repozytoriów git-core'a. Dodatkowo może działać
30jako pager dla różnych komend gita.
d8ae691a 31
30c6d1e2
JR
32Podczas przeglądania repozytoriów używa poleceń gita i pokazuje log,
33statystyki diffa i różnice między plikami.
d8ae691a 34
30c6d1e2
JR
35Używany jako pager będzie kolorował to co otrzyma ze standardowego
36wejścia.
d8ae691a 37
258a0492
AG
38%package -n bash-completion-tig
39Summary: bash-completion for tig
40Summary(pl.UTF-8): bashowe uzupełnianie nazw dla tiga
4eef9c0b 41Group: Applications/Shells
258a0492 42Requires: bash-completion
c773e14d 43BuildArch: noarch
258a0492
AG
44
45%description -n bash-completion-tig
46This package provides bash-completion for tig.
47
48%description -n bash-completion-tig -l pl.UTF-8
49Pakiet ten dostarcza bashowe uzupełnianie nazw dla tiga.
50
d8ae691a 51%prep
52%setup -q
d8ae691a 53
54%build
680ab128 55CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw"
56export CFLAGS
57LIBS=-ltinfow %configure
657504b3 58%{__make} V=1
d8ae691a 59
60%install
61rm -rf $RPM_BUILD_ROOT
258a0492 62install -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 71cp -a contrib/tig-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
258a0492 72
d8ae691a 73%clean
74rm -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
This page took 0.041458 seconds and 4 git commands to generate.