@matheusbsbs / matheus-bagliano / commits / 3bfdf87c47
Fork 0

RPM spec: include bash completion support

Include the bash completion routines from the contrib/ directory in our core RPM, in the de facto standard location. Signed-off-by: Ian Ward Comfort <icomfort@stanford.edu> Acked-by: Ben Walton <bwalton@artsci.utoronto.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ian Ward Comfort committed Mar 26, 2010 at 01:39 UTC 3bfdf87c47d516abfe9a84e8fdd918a930543189
1 file changed +7
git.spec.in
+7
@@ -127,6 +127,9 @@ find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
127 rm -rf $RPM_BUILD_ROOT%{_mandir}
128 %endif
129
130 +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
131 +install -m 644 -T contrib/completion/git-completion.bash $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/git
132 +
133 %clean
134 rm -rf $RPM_BUILD_ROOT
135
@@ -136,6 +139,7 @@ rm -rf $RPM_BUILD_ROOT
139 %doc README COPYING Documentation/*.txt
140 %{!?_without_docs: %doc Documentation/*.html Documentation/howto}
141 %{!?_without_docs: %doc Documentation/technical}
142 +%{_sysconfdir}/bash_completion.d
143
144 %files svn
145 %defattr(-,root,root)
@@ -192,6 +196,9 @@ rm -rf $RPM_BUILD_ROOT
196 # No files for you!
197
198 %changelog
199 +* Fri Mar 26 2010 Ian Ward Comfort <icomfort@stanford.edu>
200 +- Ship bash completion support from contrib/ in the core package.
201 +
202 * Sun Jan 31 2010 Junio C Hamano <gitster@pobox.com>
203 - Do not use %define inside %{!?...} construct.
204