Accepting request 1146277 from Virtualization:vagrant

- add patch 0014-Bump-vagrant_cloud_dependency.patch to allow newer
  vagrant_cloud versions

To Staging:F with rubygem-vagrant_cloud

OBS-URL: https://build.opensuse.org/request/show/1146277
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vagrant?expand=0&rev=56
This commit is contained in:
Ana Guerrero 2024-02-15 19:59:44 +00:00 committed by Git OBS Bridge
commit 65ef208a48
3 changed files with 71 additions and 40 deletions

View File

@ -0,0 +1,26 @@
From 430bd45e3df6a42c2b8a45bf43036e17a210f74d Mon Sep 17 00:00:00 2001
From: Johannes Kastl <git@johannes-kastl.de>
Date: Mon, 12 Feb 2024 06:40:48 +0100
Subject: [PATCH] vagrant.gemspec: vagrant_cloud ~> 3.0
Signed-off-by: Johannes Kastl <git@johannes-kastl.de>
---
vagrant.gemspec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vagrant.gemspec b/vagrant.gemspec
index ef388b699..82280c1fe 100644
--- a/vagrant.gemspec
+++ b/vagrant.gemspec
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
s.add_dependency "rexml", "~> 3.2"
s.add_dependency "rgl", "~> 0.6.6"
s.add_dependency "rubyzip", "~> 2.3.2"
- s.add_dependency "vagrant_cloud", "~> 3.0.5"
+ s.add_dependency "vagrant_cloud", "~> 3.0"
s.add_dependency "winrm", ">= 2.3.6", "< 3.0"
s.add_dependency "winrm-elevated", ">= 1.2.3", "< 2.0"
s.add_dependency "winrm-fs", ">= 1.3.5", "< 2.0"
--
2.43.0

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 12 05:43:13 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- add patch 0014-Bump-vagrant_cloud_dependency.patch to allow newer
vagrant_cloud versions
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jan 22 16:04:58 UTC 2024 - Илья Индиго <ilya@ilya.cf> Mon Jan 22 16:04:58 UTC 2024 - Илья Индиго <ilya@ilya.cf>

View File

@ -16,7 +16,7 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
# disable tests if you want to just run a quick build
%{bcond_without tests} %{bcond_without tests}
%global rb_build_versions %rb_default_ruby %global rb_build_versions %rb_default_ruby
@ -27,7 +27,6 @@
%global mod_full_name %{mod_name}-%{version} %global mod_full_name %{mod_name}-%{version}
%global vim_data_dir %{_datadir}/vim/site/plugin/ %global vim_data_dir %{_datadir}/vim/site/plugin/
Name: vagrant Name: vagrant
Version: 2.3.7 Version: 2.3.7
Release: 0 Release: 0
@ -65,6 +64,7 @@ Patch10: 0010-Remove-dependency-on-grpc-tools.patch
Patch11: 0011-Remove-vagrant-ssl-extension.patch Patch11: 0011-Remove-vagrant-ssl-extension.patch
Patch12: 0012-Bump-rgl-dependency-to-0.6.6.patch Patch12: 0012-Bump-rgl-dependency-to-0.6.6.patch
Patch13: 0013-Bump-webrick-dependency-to-1.8.0.patch Patch13: 0013-Bump-webrick-dependency-to-1.8.0.patch
Patch14: 0014-Bump-vagrant_cloud_dependency.patch
# force only one ruby version # force only one ruby version
# CAUTION: if you change this, then you *must* also change the sed calls which # CAUTION: if you change this, then you *must* also change the sed calls which
@ -79,13 +79,12 @@ Patch13: 0013-Bump-webrick-dependency-to-1.8.0.patch
%global vagrant_plugin_name vagrant %global vagrant_plugin_name vagrant
#=============================================================================== #===============================================================================
# Build dependencies # Build dependencies
#=============================================================================== #===============================================================================
BuildRequires: %{ruby} < 3.4
BuildRequires: %{rubygem bundler} BuildRequires: %{rubygem bundler}
BuildRequires: %{ruby} < 3.4
# s.add_dependency "bcrypt_pbkdf", "~> 1.1" # s.add_dependency "bcrypt_pbkdf", "~> 1.1"
BuildRequires: %{rubygem bcrypt_pbkdf:1 >= 1.1 } BuildRequires: %{rubygem bcrypt_pbkdf:1 >= 1.1 }
# s.add_dependency "childprocess", "~> 4.1.0" # s.add_dependency "childprocess", "~> 4.1.0"
@ -134,8 +133,9 @@ BuildRequires: %{rubygem winrm:2 >= 2.3.4 }
BuildRequires: %{rubygem winrm-fs:1 >= 1.3.4 } BuildRequires: %{rubygem winrm-fs:1 >= 1.3.4 }
# s.add_dependency "winrm-elevated", ">= 1.2.1", "< 2.0" # s.add_dependency "winrm-elevated", ">= 1.2.1", "< 2.0"
BuildRequires: %{rubygem winrm-elevated:1 >= 1.2.1 } BuildRequires: %{rubygem winrm-elevated:1 >= 1.2.1 }
# s.add_dependency "vagrant_cloud", "~> 3.0.5" # Patched in 0014-Bump-vagrant_cloud_dependency.patch
BuildRequires: %{rubygem vagrant_cloud:3.0 >= 3.0.5 } # s.add_dependency "vagrant_cloud", "~> 3.0"
BuildRequires: %{rubygem vagrant_cloud:3 >= 3.0.5 }
# PATCHED -> removed # PATCHED -> removed
# s.add_development_dependency "grpc-tools", "~> 1.41.1" # s.add_development_dependency "grpc-tools", "~> 1.41.1"
@ -170,10 +170,10 @@ BuildRequires: ruby-macros >= 5
# for the test # for the test
%if %{with tests} %if %{with tests}
BuildRequires: openssh
BuildRequires: curl
BuildRequires: bsdtar
BuildRequires: %{rubygem vagrant-spec} BuildRequires: %{rubygem vagrant-spec}
BuildRequires: bsdtar
BuildRequires: curl
BuildRequires: openssh
%endif %endif
BuildRequires: fdupes BuildRequires: fdupes
@ -230,8 +230,9 @@ Requires: %{rubygem winrm:2 >= 2.3.4}
Requires: %{rubygem winrm-fs:1 >= 1.3.4} Requires: %{rubygem winrm-fs:1 >= 1.3.4}
# s.add_dependency "winrm-elevated", ">= 1.2.1", "< 2.0" # s.add_dependency "winrm-elevated", ">= 1.2.1", "< 2.0"
Requires: %{rubygem winrm-elevated:1 >= 1.2.1} Requires: %{rubygem winrm-elevated:1 >= 1.2.1}
# Patched in 0014-Bump-vagrant_cloud_dependency.patch
# s.add_dependency "vagrant_cloud", "~> 3.0.5" # s.add_dependency "vagrant_cloud", "~> 3.0.5"
Requires: %{rubygem vagrant_cloud:3.0 >= 3.0.5} Requires: %{rubygem vagrant_cloud:3 >= 3.0.5}
Requires: bsdtar Requires: bsdtar
@ -368,7 +369,6 @@ mkdir -p %{buildroot}%{dirname:%{vagrant_plugin_cache}}
mkdir -p %{buildroot}%{dirname:%{vagrant_plugin_spec}} mkdir -p %{buildroot}%{dirname:%{vagrant_plugin_spec}}
mkdir -p %{buildroot}%{dirname:%{vagrant_plugin_docdir}} mkdir -p %{buildroot}%{dirname:%{vagrant_plugin_docdir}}
# fix shebang in %%{vagrant_dir}/bin/%%{name} # fix shebang in %%{vagrant_dir}/bin/%%{name}
sed -i 's|^\#\!/usr/bin/env.*|\#\!/usr/bin/ruby\.%{rb_ruby_suffix}|' \ sed -i 's|^\#\!/usr/bin/env.*|\#\!/usr/bin/ruby\.%{rb_ruby_suffix}|' \
%{buildroot}%{vagrant_dir}/bin/%{name} %{buildroot}%{vagrant_dir}/bin/%{name}
@ -378,7 +378,6 @@ sed -i 's|^\#\!/usr/bin/env.*|\#\!/usr/bin/ruby\.%{rb_ruby_suffix}|' \
mv %{buildroot}%{vagrant_plugin_dir}/bin/%{name}.%{rb_ruby_suffix} \ mv %{buildroot}%{vagrant_plugin_dir}/bin/%{name}.%{rb_ruby_suffix} \
%{buildroot}%{vagrant_plugin_dir}/bin/%{name} %{buildroot}%{vagrant_plugin_dir}/bin/%{name}
# Garbage collection # Garbage collection
rm -f %{buildroot}%{vagrant_dir}/test/vagrant-spec/boxes/.keep rm -f %{buildroot}%{vagrant_dir}/test/vagrant-spec/boxes/.keep
rm -f %{buildroot}%{vagrant_dir}/bin/vagrant.orig rm -f %{buildroot}%{vagrant_dir}/bin/vagrant.orig