]> git.pld-linux.org Git - packages/tig.git/blobdiff - tig.spec
up to 2.2.1
[packages/tig.git] / tig.spec
index a5226fe567db0ef80980543cd2c913ffb40b4c98..67206436bd8d779f44b90c06f58e93027cff7f56 100644 (file)
--- a/tig.spec
+++ b/tig.spec
@@ -1,13 +1,13 @@
 Summary:       Text-mode interface for git-core
 Summary(pl.UTF-8):     Tekstowy interfejs do git-core
 Name:          tig
-Version:       0.15
+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: 8f373a99823f6db241b66642075657d3
-URL:           http://jonas.nitro.dk/tig/
+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)
@@ -37,6 +37,9 @@ Summary:      bash-completion for tig
 Summary(pl.UTF-8):     bashowe uzupełnianie nazw dla tiga
 Group:         Applications/Shells
 Requires:      bash-completion
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
 
 %description -n bash-completion-tig
 This package provides bash-completion for tig.
@@ -48,10 +51,10 @@ Pakiet ten dostarcza bashowe uzupełnianie nazw dla tiga.
 %setup -q
 
 %build
-%{__make} \
-       CC="%{__cc}" \
-       CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw" \
-       LDLIBS=-lncursesw
+CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncursesw"
+export CFLAGS
+LIBS=-ltinfow %configure
+%{__make} V=1
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -61,18 +64,23 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
        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
+%doc *.html
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tigrc
 %attr(755,root,root) %{_bindir}/tig
-%{_mandir}/man*/*
+#%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)
This page took 0.165146 seconds and 4 git commands to generate.