%define ruby_apiver %(echo %ruby_version|cut -d. -f1-2).0 Name: vagrant Version: 2.2.3 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-%{version}.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 * Thu Jan 17 2019 Automatic Build System 2.2.3-1mamba - automatic version update by autodist * Thu Dec 20 2018 Automatic Build System 2.2.2-1mamba - automatic version update by autodist * Sat Nov 24 2018 Automatic Build System 2.2.1-1mamba - automatic version update by autodist * Mon Oct 22 2018 Automatic Build System 2.2.0-1mamba - automatic version update by autodist * Thu Sep 13 2018 Automatic Build System 2.1.5-1mamba - automatic version update by autodist * Mon Sep 10 2018 Silvan Calarco 2.1.4-1mamba - update to 2.1.4 * Mon Jul 16 2018 Silvan Calarco 2.1.2-1mamba - package created using the webbuild interface