Summary: Text-mode interface for git-core
Summary(pl.UTF-8): Tekstowy interfejs do git-core
Name: tig
-Version: 0.11
+Version: 2.2.1
Release: 1
-License: GPL v2
+License: GPL v2+
Group: Development/Tools
-Source0: http://jonas.nitro.dk/tig/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 5d136ae97ed27ec8e343624fcc97ee4a
-URL: http://jonas.nitro.dk/tig/
-Patch0: tig-git.patch
-BuildRequires: asciidoc
+Source0: https://github.com/jonas/tig/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: c93217874652d5c970e23d188df62a7c
+URL: https://jonas.github.io/tig/
BuildRequires: ncurses-devel
Requires: git-core
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%package -n bash-completion-tig
Summary: bash-completion for tig
Summary(pl.UTF-8): bashowe uzupełnianie nazw dla tiga
-Group: Applications/Shell
+Group: Applications/Shells
Requires: bash-completion
+%if "%{_rpmversion}" >= "5"
+BuildArch: noarch
+%endif
%description -n bash-completion-tig
This package provides bash-completion for tig.
%prep
%setup -q
-%patch0 -p1
%build
-%{__make} \
- CC="%{__cc}" \
- CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncurses" \
- LDLIBS=-lncursesw
+CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw"
+export CFLAGS
+LIBS=-ltinfow %configure
+%{__make} V=1
%install
rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT \
mandir=%{_mandir} \
prefix=%{_prefix}
+ sysconfdir=%{_sysconfdir}
# bash completion
-install contrib/tig-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
+cp -a contrib/tig-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc BUGS README TODO *.html contrib/tigrc
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man*/*
+%doc *.html
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tigrc
+%attr(755,root,root) %{_bindir}/tig
+#%attr(755,root,root) %{_bindir}/test-graph
+%{_mandir}/man1/tig.1*
+%{_mandir}/man5/tigrc.5*
+%{_mandir}/man7/tigmanual.7*
%files -n bash-completion-tig
%defattr(644,root,root,755)