| |
@@ -3,8 +3,8 @@
|
| |
%global vagrant_spec_commit 94a9d31ba18b4130b14da12a2f7b4001c3d2ff12
|
| |
|
| |
Name: %{vagrant_plugin_name}
|
| |
- Version: 0.0.43
|
| |
- Release: 2%{?dist}
|
| |
+ Version: 0.0.45
|
| |
+ Release: 1%{?dist}
|
| |
Summary: libvirt provider for Vagrant
|
| |
License: MIT
|
| |
URL: https://github.com/vagrant-libvirt/vagrant-libvirt
|
| |
@@ -13,6 +13,9 @@
|
| |
# dependency, it should be fine to include the source right here.
|
| |
# wget https://github.com/mitchellh/vagrant-spec/archive/9bba7e1228379c0a249a06ce76ba8ea7d276afb/vagrant-spec-f1a18fd3e5387328ca83e016e48373aadb67112a.tar.gz
|
| |
Source2: https://github.com/mitchellh/vagrant-spec/archive/%{vagrant_spec_commit}/vagrant-spec-%{vagrant_spec_commit}.tar.gz
|
| |
+ # Enable QEMU Session by default
|
| |
+ # https://github.com/vagrant-libvirt/vagrant-libvirt/pull/969
|
| |
+ Patch0: vagrant-libvirt-0.0.45-enable-qemu-session-by-default.patch
|
| |
|
| |
Requires: ruby(release)
|
| |
Requires: ruby(rubygems)
|
| |
@@ -47,6 +50,8 @@
|
| |
%prep
|
| |
%setup -q -n %{vagrant_plugin_name}-%{version} -b2
|
| |
|
| |
+ %patch0 -p1
|
| |
+
|
| |
# Relax fog-core dependency to work with recently rebased one
|
| |
%gemspec_remove_dep -s ../%{vagrant_plugin_name}-%{version}.gemspec -g fog-core '~> 1.43.0'
|
| |
%gemspec_add_dep -s ../%{vagrant_plugin_name}-%{version}.gemspec -g fog-core '>= 1.43.0'
|
| |
@@ -61,17 +66,20 @@
|
| |
%{buildroot}%{vagrant_plugin_dir}/
|
| |
|
| |
%check
|
| |
+ # Edit gemspec of vagrant-spec
|
| |
+ pushd ../vagrant-spec-%{vagrant_spec_commit}
|
| |
# Remove the git reference, which is useless in our case.
|
| |
- sed -i '/git/ s/^/#/' ../vagrant-spec-%{vagrant_spec_commit}/vagrant-spec.gemspec
|
| |
+ sed -i '/git/ s/^/#/' vagrant-spec.gemspec
|
| |
|
| |
# Relax the Childprocess dependency, since Fedora currently ships with different version
|
| |
# https://src.fedoraproject.org/rpms/rubygem-childprocess/pull-request/1
|
| |
- %gemspec_remove_dep -s ../vagrant-spec-%{vagrant_spec_commit}/vagrant-spec.gemspec -g childprocess '~> 0.6.0'
|
| |
- %gemspec_add_dep -s ../vagrant-spec-%{vagrant_spec_commit}/vagrant-spec.gemspec -g childprocess '>= 0.5.0'
|
| |
+ %gemspec_remove_dep -s vagrant-spec.gemspec -g childprocess '~> 0.6.0'
|
| |
+ %gemspec_add_dep -s vagrant-spec.gemspec -g childprocess '>= 0.5.0'
|
| |
|
| |
# Relax the dependencies, since Fedora ships with newer versions.
|
| |
- sed -i '/thor/ s/~>/>=/' ../vagrant-spec-%{vagrant_spec_commit}/vagrant-spec.gemspec
|
| |
- sed -i '/rspec/ s/~>/>=/' ../vagrant-spec-%{vagrant_spec_commit}/vagrant-spec.gemspec
|
| |
+ sed -i '/thor/ s/~>/>=/' vagrant-spec.gemspec
|
| |
+ sed -i '/rspec/ s/~>/>=/' vagrant-spec.gemspec
|
| |
+ popd
|
| |
|
| |
# Use actual gemspec for tests
|
| |
cp ../%{vagrant_plugin_name}-%{version}.gemspec .%{vagrant_plugin_instdir}/%{vagrant_plugin_name}.gemspec
|
| |
@@ -79,6 +87,7 @@
|
| |
pushd .%{vagrant_plugin_instdir}
|
| |
# Create dummy Gemfile and load dependencies via gemspec file
|
| |
echo "gem 'vagrant'" > Gemfile
|
| |
+ echo "gem 'rdoc'" >> Gemfile
|
| |
echo "gem 'vagrant-spec', :path => '%{_builddir}/vagrant-spec-%{vagrant_spec_commit}'" >> Gemfile
|
| |
echo "gemspec" >> Gemfile
|
| |
|
| |
@@ -111,6 +120,10 @@
|
| |
%{vagrant_plugin_instdir}/vagrant-libvirt.gemspec
|
| |
|
| |
%changelog
|
| |
+ * Wed Nov 28 2018 Pavel Valena <pvalena@redhat.com> - 0.0.45-1
|
| |
+ - Update to vagrant-libvirt 0.0.45.
|
| |
+ - Enable QEMU Session by default
|
| |
+
|
| |
* Fri Nov 02 2018 Pavel Valena <pvalena@redhat.com> - 0.0.43-2
|
| |
- Relax fog-core dependency to work with recently rebased one.
|
| |
|
| |
Up-to-date Copr build:
https://copr.fedorainfracloud.org/coprs/build/855607/
DONE:
https://github.com/vagrant-libvirt/vagrant-libvirt/pull/969
Checks:
Smoke-test env: