SHA256
1
0
forked from pool/vagrant
Go to file
Ana Guerrero 4aa1ffb25c Accepting request 1198961 from Virtualization:vagrant
- Changed dependency.patch for rexml 3.3 support.
- Combined dependency patches into a common dependency.patch:
  * 0005-do-not-depend-on-wdm.patch
  * 0010-Remove-dependency-on-grpc-tools.patch
  * 0011-Remove-vagrant-ssl-extension.patch
  * 0012-Bump-rgl-dependency-to-0.6.6.patch
  * 0013-Bump-webrick-dependency-to-1.8.0.patch
  * 0014-Bump-vagrant_cloud_dependency.patch
  * childprocess-5.0.patch

OBS-URL: https://build.opensuse.org/request/show/1198961
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vagrant?expand=0&rev=59
2024-09-05 13:46:02 +00:00
.gitattributes - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
.gitignore - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
0001-bin-vagrant-silence-warning-about-installer.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
0002-Use-a-private-temporary-dir.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
0003-plugins-don-t-abuse-require_relative.patch.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
0004-fix-vbox-package-boo-1044087-added-by-robert.muntean.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
0006-do-not-abuse-relative-paths-in-docker-plugin-to-make.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
0007-Don-t-abuse-relative-paths-in-plugins.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
0008-Skip-failing-tests.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
0009-Disable-Subprocess-unit-test.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
binstub - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
dependency.patch - Changed dependency.patch for rexml 3.3 support. 2024-09-05 11:02:59 +00:00
macros.vagrant - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
README.SUSE - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
ruby-3.3.patch - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
vagrant_post.rb - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
vagrant_transfiletriggerin.rb - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
vagrant_transfiletriggerun.rb - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
vagrant-2.3.7.tar.gz - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
vagrant.1 - Combined dependency patches into a common dependency.patch: 2024-09-04 17:43:36 +00:00
vagrant.changes - Changed dependency.patch for rexml 3.3 support. 2024-09-05 11:02:59 +00:00
vagrant.spec - Changed dependency.patch for rexml 3.3 support. 2024-09-05 11:02:59 +00:00

Packaging Vagrant plugins
-------------------------

This convention is based on the Fedora vagrant package.

Vagrant plugins are ordinary rubygems, but they should not be packaged as
these. First off all, we don't need to build the plugin with a ruby version
other then the ruby version with which vagrant was built. Furthermore, vagrant
will _only_ recognize gems inside its own directory structure as plugins and not
arbitrary rubygems.

Note that we *must* explicitly specify the macros `rb_build_versions` and
`rb_build_abi` (and cannot use macros here!). Usually we can simply use the
default ruby here, but in case vagrant is incompatible with the default ruby, we
must override this in each plugin.

An example specfile for a vagrant plugin looks like this:
``` spec
%global rb_build_versions ruby26
%global rb_build_abi ruby:2.6.0
%global rb_ruby_suffix ruby2.6

Name:           vagrant-MYPLUGIN
Version:        $VERSION
Release:        0
%define mod_name %{name}
%define mod_full_name %{mod_name}-%{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  %{rubygem gem2rpm}
BuildRequires:  %{ruby}
BuildRequires:  ruby-macros >= 5

BuildRequires:  vagrant
BuildArch:      noarch
Url:            $URL
Source:         $SRC
Source1:        gem2rpm.yml
Summary:        $SUMMARY
License:        $LICENSE

%description
$DESCRIPTION

%global vagrant_plugin_name %{name}

%prep
%gem_unpack

%build
%gem_build

%install
%vagrant_plugin_install

%files
%{vagrant_plugin_instdir}
%{vagrant_plugin_cache}
%{vagrant_plugin_spec}


%changelog

```