| |
@@ -5,8 +5,8 @@
|
| |
%bcond_without help2man
|
| |
|
| |
Name: vagrant
|
| |
- Version: 2.2.6
|
| |
- Release: 4%{?dist}
|
| |
+ Version: 2.2.9
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Build and distribute virtualized development environments
|
| |
License: MIT
|
| |
URL: http://vagrantup.com
|
| |
@@ -24,9 +24,9 @@
|
| |
# Fix fake_ftp 0.3.x compatibility.
|
| |
# https://github.com/hashicorp/vagrant/issues/10646
|
| |
Patch0: vagrant-2.2.3-Fix-fake_ftp-0.3.x-compatibility.patch
|
| |
- # Do not load runtime dependencies if vagrant is not loaded
|
| |
+ # Do not load runtime dependencies in %%check if vagrant is not loaded
|
| |
# https://github.com/hashicorp/vagrant/pull/10945
|
| |
- Patch1: vagrant-2.2.5-do-not-load-dependencies.patch
|
| |
+ Patch1: vagrant-2.2.9-do-not-load-dependencies.patch
|
| |
|
| |
# The load directive is supported since RPM 4.12, i.e. F21+. The build process
|
| |
# fails on older Fedoras.
|
| |
@@ -39,11 +39,11 @@
|
| |
Requires: rubygem(hashicorp-checkpoint) >= 0.1.5
|
| |
Requires: rubygem(childprocess) >= 0.5.0
|
| |
Requires: rubygem(erubis) >= 2.7.0
|
| |
- Requires: (rubygem(i18n) >= 1.1.1 with rubygem(i18n) < 2.0)
|
| |
+ Requires: (rubygem(i18n) >= 1.8 with rubygem(i18n) < 2.0)
|
| |
Requires: rubygem(json)
|
| |
Requires: (rubygem(listen) >= 3.2 with rubygem(listen) < 4)
|
| |
Requires: rubygem(log4r) >= 1.1.9
|
| |
- Requires: rubygem(net-ssh) >= 5.1.0
|
| |
+ Requires: rubygem(net-ssh) >= 5.2.0
|
| |
Requires: rubygem(net-scp) >= 1.2.0
|
| |
Requires: rubygem(net-sftp) >= 2.1
|
| |
Requires: rubygem(rest-client) >= 1.6.0
|
| |
@@ -54,6 +54,7 @@
|
| |
Recommends: vagrant(vagrant-libvirt)
|
| |
Recommends: rubygem(bcrypt_pbkdf)
|
| |
Recommends: rubygem(ed25519)
|
| |
+ Recommends: (podman-docker if podman)
|
| |
|
| |
BuildRequires: bsdtar
|
| |
BuildRequires: ruby
|
| |
@@ -108,7 +109,6 @@
|
| |
%setup -q -b2
|
| |
|
| |
%patch0 -p1
|
| |
- %patch1 -p1
|
| |
|
| |
%build
|
| |
# TODO: package vagrant_cloud, as it is not in Fedora yet
|
| |
@@ -121,10 +121,8 @@
|
| |
sed -i '/^\s*command(:login) do$/,/\s*end$/ s/^/#/g' plugins/commands/login/plugin.rb
|
| |
|
| |
# We have newer versions in Fedora
|
| |
- %gemspec_remove_dep -s %{name}.gemspec -g childprocess '~> 0.6.0'
|
| |
- %gemspec_add_dep -s %{name}.gemspec -g childprocess '>= 0.5.0'
|
| |
- %gemspec_remove_dep -s %{name}.gemspec -g net-ssh '~> 5.1.0'
|
| |
- %gemspec_add_dep -s %{name}.gemspec -g net-ssh '>= 5.2.0'
|
| |
+ %gemspec_remove_dep -s %{name}.gemspec -g net-scp '~> 1.2.0'
|
| |
+ %gemspec_add_dep -s %{name}.gemspec -g net-scp '>= 1.2.0'
|
| |
|
| |
# Remove Windows specific dependencies
|
| |
%gemspec_remove_dep -s %{name}.gemspec -g wdm
|
| |
@@ -138,26 +136,24 @@
|
| |
# Do not impose any Ruby version restrictions on Fedora.
|
| |
%gemspec_remove_dep -s %{name}.gemspec -g ruby_dep
|
| |
|
| |
- # Allow older rubyzip version
|
| |
- # TODO: remove
|
| |
- # https://src.fedoraproject.org/rpms/rubygem-rubyzip/pull-request/1
|
| |
- %gemspec_remove_dep -s %{name}.gemspec -g rubyzip '~> 1.2.2'
|
| |
- %gemspec_add_dep -s %{name}.gemspec -g rubyzip
|
| |
-
|
| |
- # Allow newer i18n version
|
| |
- # https://github.com/hashicorp/vagrant/pull/11146
|
| |
- %gemspec_remove_dep -s %{name}.gemspec -g i18n '~> 1.1.1'
|
| |
- %gemspec_add_dep -s %{name}.gemspec -g i18n
|
| |
-
|
| |
# Allow newer listen version
|
| |
# https://github.com/hashicorp/vagrant/pull/11208
|
| |
%gemspec_remove_dep -s %{name}.gemspec -g listen '~> 3.1.5'
|
| |
- %gemspec_add_dep -s %{name}.gemspec -g listen ['~> 3.2']
|
| |
+ %gemspec_add_dep -s %{name}.gemspec -g listen '>= 3.1.5'
|
| |
+
|
| |
+ # Allow older childprocess version
|
| |
+ %gemspec_remove_dep -s %{name}.gemspec -g childprocess
|
| |
+ %gemspec_add_dep -s %{name}.gemspec -g childprocess '>= 1.0.1'
|
| |
|
| |
# Remove optional dependencies
|
| |
%gemspec_remove_dep -s %{name}.gemspec -g ed25519
|
| |
%gemspec_remove_dep -s %{name}.gemspec -g bcrypt_pbkdf
|
| |
|
| |
+ # Load missing dependency Vagrant::Util::MapCommandOptions
|
| |
+ # https://github.com/hashicorp/vagrant/pull/11609
|
| |
+ sed -i "/^ require 'vagrant\/util\/experimental'$/ a\ require 'vagrant/util/map_command_options'" \
|
| |
+ bin/vagrant
|
| |
+
|
| |
gem build %{name}.gemspec
|
| |
|
| |
gem install -V --local \
|
| |
@@ -210,11 +206,20 @@
|
| |
# Needed to display help page without a warning.
|
| |
export VAGRANT_INSTALLER_ENV=1
|
| |
mkdir -p %{buildroot}%{_mandir}/man1
|
| |
- help2man --no-discard-stderr -N -s1 -o %{buildroot}%{_mandir}/man1/%{name}.1 \
|
| |
+ help2man -N -s1 -o %{buildroot}%{_mandir}/man1/%{name}.1 \
|
| |
+ %{buildroot}/usr/share/%{name}/gems/gems/%{name}-%{version}/bin/%{name} || \
|
| |
%{buildroot}/usr/share/%{name}/gems/gems/%{name}-%{version}/bin/%{name}
|
| |
%endif
|
| |
|
| |
%check
|
| |
+ # Do not load dependencies from gemspec
|
| |
+ cat %{PATCH1} | patch -p1
|
| |
+
|
| |
+ sed -i '/^\s*context "when vagrant specification is not found" do$/,/^ end$/ s/^/#/' \
|
| |
+ test/unit/vagrant/bundler_test.rb
|
| |
+ sed -i '/^\s*it "should init the bundler instance with plugins" do$/,/^ end$/ s/^/#/' \
|
| |
+ test/unit/vagrant/plugin/manager_test.rb
|
| |
+
|
| |
# Adjust the vagrant-spec directory name.
|
| |
rm -rf ../vagrant-spec
|
| |
mv ../vagrant-spec{-%{vagrant_spec_commit},}
|
| |
@@ -266,6 +271,16 @@
|
| |
# Remove failing BSD-host tests, as we don't care about those.
|
| |
rm -rf test/unit/plugins/hosts/bsd
|
| |
|
| |
+ # Disable broken test for installing docker on host
|
| |
+ # https://github.com/hashicorp/vagrant/issues/11606
|
| |
+ sed -i '/^\s*it "installs docker if not present" do$/ a\ skip "GH#11606"' \
|
| |
+ test/unit/plugins/provisioners/docker/installer_test.rb
|
| |
+
|
| |
+ # Export the OS as an environment variable that Vagrant can access, so the
|
| |
+ # test suite is executed with same host it will be run (also avoids docker
|
| |
+ # installer_test issue).
|
| |
+ export VAGRANT_DETECTED_OS="$(uname -s 2>/dev/null)"
|
| |
+
|
| |
# Put gem load path on top of the load path, so they are loaded earlier then
|
| |
# their StdLib symlinks.
|
| |
%{!?buildtime_libdir:%global buildtime_libdir $(ruby -rrbconfig -e 'puts RbConfig::CONFIG["libdir"]')}
|
| |
@@ -287,6 +302,13 @@
|
| |
# Rake solves the requires issues for tests
|
| |
rake -f tasks/test.rake test:unit
|
| |
|
| |
+ %if %{with help2man}
|
| |
+ # Check `--help` output, using which man page is created
|
| |
+ export GEM_PATH="%{gem_dir}:%{buildroot}/usr/share/vagrant/gems"
|
| |
+ export VAGRANT_INSTALLER_ENV=1
|
| |
+ %{buildroot}/usr/share/%{name}/gems/gems/%{name}-%{version}/bin/%{name} --help 2>/dev/null \
|
| |
+ | grep -q '^Usage: vagrant '
|
| |
+ %endif
|
| |
|
| |
%post -p %{_bindir}/ruby
|
| |
begin
|
| |
@@ -398,6 +420,12 @@
|
| |
%{vagrant_plugin_instdir}/vagrant-spec.config.example.rb
|
| |
|
| |
%changelog
|
| |
+ * Mon May 11 2020 Pavel Valena <pvalena@redhat.com> - 2.2.9-1
|
| |
+ - Update to Vagrant 2.2.9.
|
| |
+ Resolves: rhbz#1795460
|
| |
+ - Added support for podman via docker podman-docker wrapper
|
| |
+ (https://github.com/hashicorp/vagrant/pull/11356).
|
| |
+
|
| |
* Tue Apr 21 2020 Vít Ondruch <vondruch@redhat.com> - 2.2.6-4
|
| |
- Relax rubygem-net-ssh dependency.
|
| |
Resolves: rhbz#1805240
|
| |
also fixup man page and add
--help
check.Up-to-date
Scratch-build: https://koji.fedoraproject.org/koji/taskinfo?taskID=44392601
Copr build: https://copr.fedorainfracloud.org/coprs/build/1380290
Smoke test: https://paste.centos.org/view/9228b9c2
Man page: OK (view).