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.2.15
|
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
|
|
|
|
Source: https://github.com/hashicorp/vagrant.git/v%{version}/vagrant-%{version}.tar.bz2
|
2024-01-05 18:53:32 +01:00
|
|
|
Source1: https://github.com/hashicorp/vagrant-installers.git/v%{version}.dev+main/vagrant-installers-%{version}.tar.bz2
|
2024-01-05 18:53:32 +01:00
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 18:53:32 +01:00
|
|
|
BuildRequires: ldconfig
|
2024-01-05 18:53:32 +01:00
|
|
|
BuildRequires: libffi-devel
|
2024-01-05 18:53:32 +01:00
|
|
|
BuildRequires: libruby-devel
|
2024-01-05 18:53:32 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: ruby
|
2024-01-05 18:53:32 +01:00
|
|
|
BuildRequires: go
|
2024-01-05 18:53:32 +01:00
|
|
|
Requires: ruby
|
|
|
|
Requires: libarchive-tools
|
|
|
|
Requires: VirtualBox
|
|
|
|
|
|
|
|
%description
|
|
|
|
Vagrant is a tool for building and distributing development environments.
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
%debug_package
|
2024-01-05 18:53:32 +01:00
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -a1
|
|
|
|
mv vagrant-installers-%{version} vagrant-installers
|
2024-01-05 18:53:32 +01:00
|
|
|
touch .gitignore
|
|
|
|
|
|
|
|
%build
|
|
|
|
gem build vagrant.gemspec
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
cd vagrant-installers/substrate/launcher
|
|
|
|
go get github.com/mitchellh/osext
|
|
|
|
|
|
|
|
go build \
|
|
|
|
-trimpath \
|
|
|
|
-buildmode=pie \
|
|
|
|
-ldflags "-extldflags \"${LDFLAGS}\"" \
|
|
|
|
-o vagrant
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 18:53:32 +01:00
|
|
|
INSTALLERS_DIR=vagrant-installers/substrate
|
|
|
|
EMBEDDED_DIR=%{buildroot}%{_datadir}/vagrant/embedded
|
2024-01-05 18:53:32 +01:00
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
install -d %{buildroot}/usr/{bin,share/bash-completion/completions}
|
|
|
|
install -d ${EMBEDDED_DIR}/rgloader
|
|
|
|
|
|
|
|
install -Dm644 ${INSTALLERS_DIR}/common/gemrc ${EMBEDDED_DIR}/etc/gemrc
|
|
|
|
install -Dm644 ${INSTALLERS_DIR}/{common,linux}/rgloader/* \
|
|
|
|
${EMBEDDED_DIR}/rgloader/
|
2024-01-05 18:53:32 +01:00
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
echo "{ \"vagrant_version\": \"%{version}\" }" > ${EMBEDDED_DIR}/manifest.json
|
2024-01-05 18:53:32 +01:00
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
GEM_PATH=${EMBEDDED_DIR}/gems/%{version} GEM_HOME="$GEM_PATH" \
|
|
|
|
GEMRC=${EMBEDDED_DIR}/etc/gemrc \
|
|
|
|
gem install %{name}-%{version}.gem --no-document --prerelease
|
2024-01-05 18:53:32 +01:00
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
install -Dm755 ${INSTALLERS_DIR}/launcher/vagrant \
|
|
|
|
%{buildroot}%{_datadir}/vagrant/bin/vagrant
|
|
|
|
|
|
|
|
ln -s %{_datadir}/vagrant/bin/vagrant %{buildroot}%{_bindir}/vagrant
|
2024-01-05 18:53:32 +01:00
|
|
|
|
|
|
|
install -Dm644 contrib/bash/completion.sh \
|
|
|
|
%{buildroot}%{_datadir}/bash-completion/completions/vagrant
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
install -Dm644 contrib/vim/vagrantfile.vim \
|
|
|
|
%{buildroot}%{_datadir}/vim/vimfiles/ftdetect/vagrantfile.vim
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/vagrant
|
2024-01-05 18:53:32 +01:00
|
|
|
%dir %{_datadir}/vagrant
|
|
|
|
%dir %{_datadir}/vagrant/bin
|
|
|
|
%{_datadir}/vagrant/bin/vagrant
|
|
|
|
%dir %{_datadir}/vagrant/embedded
|
|
|
|
%dir %{_datadir}/vagrant/embedded/etc
|
|
|
|
%{_datadir}/vagrant/embedded/etc/gemrc
|
|
|
|
%dir %{_datadir}/vagrant/embedded/gems/
|
|
|
|
%dir %{_datadir}/vagrant/embedded/gems/%{version}
|
|
|
|
%{_datadir}/vagrant/embedded/gems/%{version}/*
|
|
|
|
%{_datadir}/vagrant/embedded/manifest.json
|
|
|
|
%dir %{_datadir}/vagrant/embedded/rgloader
|
|
|
|
%{_datadir}/vagrant/embedded/rgloader/loader.rb
|
|
|
|
%{_datadir}/vagrant/embedded/rgloader/rgloader26.linux.x86_64.so
|
|
|
|
%{_datadir}/vim/vimfiles/ftdetect/vagrantfile.vim
|
2024-01-05 18:53:32 +01:00
|
|
|
%{_datadir}/bash-completion/completions/vagrant
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 18:53:32 +01:00
|
|
|
* Wed Mar 31 2021 Automatic Build System <autodist@mambasoft.it> 2.2.15-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Mon Nov 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.14-1mamba
|
|
|
|
- update to 2.2.14
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Fri May 15 2020 Automatic Build System <autodist@mambasoft.it> 2.2.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Sat May 09 2020 Automatic Build System <autodist@mambasoft.it> 2.2.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Wed Jan 29 2020 Automatic Build System <autodist@mambasoft.it> 2.2.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Sat Oct 19 2019 Automatic Build System <autodist@mambasoft.it> 2.2.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Mon Jul 08 2019 Automatic Build System <autodist@mambasoft.it> 2.2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Sat Mar 02 2019 Automatic Build System <autodist@mambasoft.it> 2.2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Thu Jan 17 2019 Automatic Build System <autodist@mambasoft.it> 2.2.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Thu Dec 20 2018 Automatic Build System <autodist@mambasoft.it> 2.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Sat Nov 24 2018 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 18:53:32 +01:00
|
|
|
* Mon Oct 22 2018 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
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
|