SHA256
1
0
forked from pool/vagrant
Go to file
2019-04-15 09:06:01 +00:00
.gitattributes Accepting request 381084 from Virtualization 2016-04-12 17:31:48 +00:00
.gitignore Accepting request 381084 from Virtualization 2016-04-12 17:31:48 +00:00
0002-bin-vagrant-silence-warning-about-installer.patch Accepting request 687554 from home:rfrohl:branches:Virtualization:vagrant 2019-03-23 19:34:56 +00:00
0003-Use-a-private-temporary-dir.patch Accepting request 649966 from home:ojkastl_buildservice:Branch_Virtualization_vagrant 2018-11-17 20:34:14 +00:00
0004-linux-cap-halt-don-t-wait-for-shutdown-h-now-to-fini.patch Accepting request 649966 from home:ojkastl_buildservice:Branch_Virtualization_vagrant 2018-11-17 20:34:14 +00:00
0009-plugins-don-t-abuse-require_relative.patch Accepting request 649966 from home:ojkastl_buildservice:Branch_Virtualization_vagrant 2018-11-17 20:34:14 +00:00
0023-vbox-fix-package.patch Accepting request 649966 from home:ojkastl_buildservice:Branch_Virtualization_vagrant 2018-11-17 20:34:14 +00:00
0024-do-not-depend-on-wdm.patch Accepting request 649966 from home:ojkastl_buildservice:Branch_Virtualization_vagrant 2018-11-17 20:34:14 +00:00
0025-do-not-abuse-relative-paths-in-docker-plugin.patch Accepting request 649964 from home:ojkastl_buildservice:Branch_Virtualization_vagrant 2018-11-17 20:32:31 +00:00
0026-do-not-abuse-relative-paths-in-plugins.patch Accepting request 664720 from home:dancermak:branches:Virtualization:vagrant 2019-01-15 08:10:08 +00:00
0027-Fix-unit-tests-for-GuestLinux-Cap-Halt.patch Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +00:00
0028-Skip-failing-tests.patch Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +00:00
binstub Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +00:00
macros.vagrant Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +00:00
README.SUSE Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +00:00
vagrant_post.rb Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +00:00
vagrant_transfiletriggerin.rb Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +00:00
vagrant_transfiletriggerun.rb Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +00:00
vagrant-2.2.4.tar.gz Accepting request 687554 from home:rfrohl:branches:Virtualization:vagrant 2019-03-23 19:34:56 +00:00
vagrant.1 Accepting request 381084 from Virtualization 2016-04-12 17:31:48 +00:00
vagrant.changes Accepting request 693342 from home:dancermak:branches:Virtualization:vagrant 2019-04-15 09:06:01 +00:00
vagrant.spec Accepting request 690784 from home:dancermak:branches:Virtualization:vagrant 2019-04-11 18:03:08 +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.

An example specfile for a vagrant plugin looks like this:
``` spec
%global rb_build_versions %vagrant_rb_build_versions
%global rb_build_abi %vagrant_rb_build_abi
%global rb_default_ruby_suffix %vagrant_rb_default_ruby_suffix

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:        Vagrant provider for libvirt
License:        MIT
Group:          Development/Languages/Ruby

%description
$DESCRIPTION

%global vagrant_plugin_name %{name}

%prep
%gem_unpack

%build
%gem_build

%install
%vagrant_plugin_install -n %{mod_full_name}/%{vagrant_plugin_name}-%{version}.gem

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


%changelog

```