2024-01-05 18:53:32 +01:00
|
|
|
%define ruby_apiver %(echo %ruby_version|cut -d. -f1-2).0
|
|
|
|
Name: vagrant
|
2024-01-05 18:53:32 +01:00
|
|
|
Version: 2.1.5
|
2024-01-05 18:53:32 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A tool for building and distributing development environments
|
|
|
|
Group: Applications/Development
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
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')"
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
gem install vagrant-%{version}.gem -i %{buildroot}%{ruby_sitelib} \
|
2024-01-05 18:53:32 +01:00
|
|
|
--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
|
2024-01-05 18:53:32 +01:00
|
|
|
* Thu Sep 13 2018 Automatic Build System <autodist@mambasoft.it> 2.1.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Mon Sep 10 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.4-1mamba
|
|
|
|
- update to 2.1.4
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Mon Jul 16 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.2-1mamba
|
|
|
|
- package created using the webbuild interface
|