[packages/vagrant/binary] add bash-completion subpackage

glen glen at pld-linux.org
Sun Mar 24 21:26:19 CET 2013


commit ff67adbfbcfcc9bf817d295bfddda8ba95dc120d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Mar 24 22:26:11 2013 +0200

    add bash-completion subpackage

 vagrant.spec | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
---
diff --git a/vagrant.spec b/vagrant.spec
index f8943b2..691b238 100644
--- a/vagrant.spec
+++ b/vagrant.spec
@@ -7,7 +7,7 @@
 Summary:	Provisioning and deployment of virtual instances
 Name:		vagrant
 Version:	1.1.2
-Release:	0.13
+Release:	0.15
 License:	MIT
 Group:		Applications/Emulators
 URL:		http://vagrantup.com/
@@ -48,6 +48,18 @@ environments by making it easier to do so than not to. Additionally,
 work is ongoing to have Vagrant run identically on every major
 consumer OS platform (Linux, Mac OS X, and Windows).
 
+%package -n bash-completion-%{name}
+Summary:	bash-completion for %{name}
+Group:		Applications/Shells
+Requires:	%{name}
+Requires:	bash-completion
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%endif
+
+%description -n bash-completion-%{name}
+bash-completion for %{name}.
+
 %package guest
 Summary:	Vagrant guest
 Group:		Development/Building
@@ -145,6 +157,9 @@ cp -a bin embedded $RPM_BUILD_ROOT%{_appdir}
 ln -s %{_appdir}/bin/%{name} $RPM_BUILD_ROOT%{_bindir}
 %endif
 
+install -d $RPM_BUILD_ROOT/etc/bash_completion.d
+mv $RPM_BUILD_ROOT{%{_appdir}/embedded/gems/gems/vagrant-%{version}/contrib/bash/completion.sh,/etc/bash_completion.d/%{name}.sh}
+
 # guest
 install -d $RPM_BUILD_ROOT{%{vg_root},%{vg_home}/.ssh}
 cp -a /etc/skel/.bash*  $RPM_BUILD_ROOT%{vg_home}
@@ -172,6 +187,10 @@ fi
 %{_appdir}
 %endif
 
+%files -n bash-completion-%{name}
+%defattr(644,root,root,755)
+/etc/bash_completion.d/*
+
 %files guest
 %defattr(644,root,root,755)
 %dir %attr(750,vagrant,vagrant) %{vg_home}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vagrant.git/commitdiff/ff67adbfbcfcc9bf817d295bfddda8ba95dc120d



More information about the pld-cvs-commit mailing list