diff --git a/README.md b/README.md index 6009353..57b4658 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # vagrant +Vagrant is a tool for building and distributing development environments. + diff --git a/vagrant.spec b/vagrant.spec new file mode 100644 index 0000000..6021b34 --- /dev/null +++ b/vagrant.spec @@ -0,0 +1,75 @@ +%define ruby_apiver %(echo %ruby_version|cut -d. -f1-2).0 +Name: vagrant +Version: 2.1.2 +Release: 1mamba +Summary: A tool for building and distributing development environments +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.vagrantup.com +## GITSOURCE https://github.com/hashicorp/vagrant.git v2.1.2 +Source: https://github.com/hashicorp/vagrant.git/v%{version}/vagrant-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libffi-devel +BuildRequires: libgcc +BuildRequires: libgmp-devel +BuildRequires: libstdc++6-devel +BuildRequires: perl-devel +BuildRequires: ruby-devel +## AUTOBUILDREQ-END +BuildRequires: ruby +Requires: ruby +Requires: libarchive-tools +Requires: VirtualBox +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Vagrant is a tool for building and distributing development environments. + +%prep +%setup -q + +touch .gitignore + +%build +gem build vagrant.gemspec + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +gemdir="$(ruby -rrubygems -e'puts Gem.default_dir')" + +gem install vagrant-2.1.2.gem -i %{buildroot}%{ruby_sitelib} \ + --no-ri --no-rdoc + +rm -f %{buildroot}%{_libdir}/ruby/gems/%{ruby_apiver}/bin/rake +rm -rf %{buildroot}%{ruby_sitelib}/cache + +install -d -m0755 %{buildroot}${gemdir} +mv %{buildroot}%{ruby_sitelib}/* %{buildroot}${gemdir}/ + +install -d -m0755 %{buildroot}%{_bindir} + +ln -s %{_libdir}/ruby/gems/%{ruby_apiver}/bin/vagrant %{buildroot}%{_bindir}/vagrant + +install -Dm644 contrib/bash/completion.sh \ + %{buildroot}%{_datadir}/bash-completion/completions/vagrant + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/vagrant +%{_libdir}/ruby/gems/%{ruby_apiver}/bin/* +%{_libdir}/ruby/gems/%{ruby_apiver}/extensions/* +%{_libdir}/ruby/gems/%{ruby_apiver}/gems/* +%{_libdir}/ruby/gems/%{ruby_apiver}/specifications/* +%{_datadir}/bash-completion/completions/vagrant +%doc LICENSE + +%changelog +* Mon Jul 16 2018 Silvan Calarco 2.1.2-1mamba +- package created using the webbuild interface