[tig/f18] New upstream release, add bash completion

Johan Cwiklinski trasher at fedoraproject.org
Mon Aug 26 18:45:16 UTC 2013


commit f98cb0d64a2ac2572800cc63c2ed87be3dd9bd4d
Author: Johan Cwiklinski <johan at x-tnd.be>
Date:   Mon Aug 26 18:18:26 2013 +0200

    New upstream release, add bash completion

 sources  |    2 +-
 tig.spec |   17 +++++++++++++++--
 2 files changed, 16 insertions(+), 3 deletions(-)
---
diff --git a/sources b/sources
index cb3e903..b48eab1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9821525564aa3f4aa51ad2b6c11b3a91  tig-1.2.tar.gz
+9dec2966d3d51f7d8b5b8d4a4b8d93eb  tig-1.2.1.tar.gz
diff --git a/tig.spec b/tig.spec
index 5d7a87c..a4ecec5 100644
--- a/tig.spec
+++ b/tig.spec
@@ -1,5 +1,5 @@
 Name:           tig
-Version:        1.2
+Version:        1.2.1
 Release:        1%{?dist}
 Summary:        Text-mode interface for the git revision control system
 
@@ -37,12 +37,19 @@ make %{?_smp_mflags} all doc-man doc-html
 #Convert to unix line endings
 sed -i -e 's/\r//' *.html
 
+# Remove shebang from bash-completion script
+sed -i '/^#!bash/,+1 d' contrib/%{name}-completion.bash
+
 
 %install
 rm -rf $RPM_BUILD_ROOT
 make install install-doc-man DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} \
     mandir=%{_mandir}
 
+# Setup bash completion
+mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
+install -pm 644 contrib/%{name}-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
+
 # Remove test-graph binary
 rm -f $RPM_BUILD_ROOT%{_bindir}/test-graph
 
@@ -52,16 +59,22 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
-%doc COPYING NEWS README SITES BUGS manual.txt *.html
+%doc COPYING NEWS README BUGS *.html
 
 %{_bindir}/tig
 
+%{_sysconfdir}/bash_completion.d/%{name}
+
 %{_mandir}/man1/tig.1*
 %{_mandir}/man5/tigrc.5*
 %{_mandir}/man7/tigmanual.7*
 
 
 %changelog
+* Mon Aug 26 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 1.2.1-1
+- New upstream release
+- Add bash completion (bz #1000823)
+
 * Mon Aug 12 2013 Johan Cwiklinski <johan AT x-tnd DOT be> - 1.2-1
 - New upstream release
 


More information about the scm-commits mailing list