%global vagrant_plugin_name vagrant-libvirt %global vagrant_spec_commit 9bba7e1228379c0a249a06ce76ba8ea7d276afbe Name: %{vagrant_plugin_name} Version: 0.0.40 Release: 2%{?dist} Summary: libvirt provider for Vagrant License: MIT URL: https://github.com/vagrant-libvirt/vagrant-libvirt Source0: https://rubygems.org/gems/%{vagrant_plugin_name}-%{version}.gem # The library has no official release yet. But since it is just test # 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 # Fix failing domain tests. # https://github.com/vagrant-libvirt/vagrant-libvirt/pull/783 Patch0: vagrant-libvirt-0.40.0-Fix-failing-domain-tests-due-to-missing-property.patch Requires: ruby(release) Requires: ruby(rubygems) Requires: rubygem(fog-libvirt) >= 0.3.0 Requires: rubygem(nokogiri) >= 1.6 Requires: rubygem(nokogiri) < 2 # Vagrant changed packaging scriptlets in version 1.9.1. Requires: vagrant >= 1.9.1 # Required by "vagrant package" command (rhbz#1292217). Recommends: %{_bindir}/virt-sysprep BuildRequires: vagrant >= 1.9.1 BuildRequires: rubygem(bundler) BuildRequires: rubygem(rdoc) BuildRequires: rubygem(rspec) < 3 BuildRequires: rubygem(fog-libvirt) BuildRequires: rubygem(thor) BuildArch: noarch Provides: vagrant(%{vagrant_plugin_name}) = %{version} %description libvirt provider for Vagrant. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep gem unpack %{SOURCE0} %setup -q -D -T -n %{vagrant_plugin_name}-%{version} -b2 gem spec %{SOURCE0} -l --ruby > %{vagrant_plugin_name}.gemspec %autopatch # Relax nokogiri dependency sed -i '\@nokogiri@s|~> 1\.6\.0|~> 1.6|' \ %{vagrant_plugin_name}.gemspec %build gem build %{vagrant_plugin_name}.gemspec %vagrant_plugin_install %install mkdir -p %{buildroot}%{vagrant_plugin_dir} cp -a .%{vagrant_plugin_dir}/* \ %{buildroot}%{vagrant_plugin_dir}/ %check # Remove the git reference, which is useless in our case. sed -i '/git/ s/^/#/' ../vagrant-spec-%{vagrant_spec_commit}/vagrant-spec.gemspec # Relax the thor dependency, since Fedora ships with newer version. sed -i '/thor/ s/~>/>=/' ../vagrant-spec-%{vagrant_spec_commit}/vagrant-spec.gemspec pushd .%{vagrant_plugin_instdir} # Fix compatibility with latest Bundler. # https://github.com/bundler/bundler/issues/5263 sed -i '/gem.*vagrant-libvirt/ s/^/#/' Gemfile sed -i "s|, :git => '.*'$||" Gemfile sed -i "s|:github => '.*',$|:path => '%{_builddir}/vagrant-spec-%{vagrant_spec_commit}',|" Gemfile sed -i '/pry/ s/^/#/' Gemfile # We don't care about code coverage. sed -i '/coveralls/ s/^/#/' Gemfile sed -i '/[cC]overalls/ s/^/#/' spec/spec_helper.rb GEM_PATH=%{vagrant_plugin_dir}:`ruby -e "print Gem.path.join(':')"` bundle exec rspec2 spec popd %files %dir %{vagrant_plugin_instdir} %exclude %{vagrant_plugin_instdir}/.* %license %{vagrant_plugin_instdir}/LICENSE %{vagrant_plugin_libdir} %{vagrant_plugin_instdir}/locales %{vagrant_plugin_instdir}/tools %exclude %{vagrant_plugin_cache} %{vagrant_plugin_spec} %files doc %doc %{vagrant_plugin_docdir} %doc %{vagrant_plugin_instdir}/example_box %doc %{vagrant_plugin_instdir}/CHANGELOG.md %{vagrant_plugin_instdir}/Gemfile %doc %{vagrant_plugin_instdir}/README.md %{vagrant_plugin_instdir}/Rakefile %{vagrant_plugin_instdir}/spec %{vagrant_plugin_instdir}/vagrant-libvirt.gemspec %changelog * Thu Jul 27 2017 Fedora Release Engineering - 0.0.40-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jun 19 2017 Vít Ondruch - 0.0.40-1 - Update to vagrant-libvirt 0.0.40. * Fri Feb 24 2017 Vít Ondruch - 0.0.37-4 - Fix Vagrant error when network is specified (rhbz#1426565). * Mon Feb 13 2017 Vít Ondruch - 0.0.37-3 - Fix compatiblity with Vagrant 1.9.1. * Mon Feb 06 2017 Vít Ondruch - 0.0.37-2 - Use file dependency rather then package dependency. * Wed Feb 01 2017 Vít Ondruch - 0.0.37-1 - Update to vagrant-libvirt 0.0.37. - Recommends libguestfs required by "vagrant package" (rhbz#1292217). * Thu Jan 05 2017 Vít Ondruch - 0.0.36-2 - Fix compatibility with latest Bundler (rhbz#1409381). * Sun Jan 1 2017 Mamoru TASAKA - 0.0.36-2 - Relax nokogiri dependency * Mon Oct 10 2016 Vít Ondruch - 0.0.36-1 - Update to vagrant-libvirt 0.0.36. * Tue Oct 04 2016 Vít Ondruch - 0.0.35-1 - Update to vagrant-libvirt 0.0.35. * Wed Aug 03 2016 Vít Ondruch - 0.0.33-1 - Update to vagrant-libvirt 0.0.33. - Drop the polkit rules. Use libvirt group instead. * Fri Feb 05 2016 Fedora Release Engineering - 0.0.32-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Oct 14 2015 Josef Stribny - 0.0.32-1 - Update to 0.0.32 * Mon Oct 05 2015 Josef Stribny - 0.0.31-1 - Update to 0.0.31 * Mon Sep 14 2015 Josef Stribny - 0.0.30-5 - Drop the rest of libvirt deps, they should be pulled via ruby-libvirt * Mon Sep 14 2015 Josef Stribny - 0.0.30-4 - Drop unnecessary explicit libvirt require * Fri Jul 10 2015 Dan Williams - 0.0.30-3 - Fix: pass MAC addresses to vagrant to configure interfaces correctly * Fri Jun 19 2015 Fedora Release Engineering - 0.0.30-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 08 2015 Michael Adam - 0.0.30-1 - Update to 0.0.30 (#1220194) * Tue Apr 21 2015 Josef Stribny - 0.0.26-2 - Fix: Wait for libvirt to shutdown the domain * Mon Apr 20 2015 Josef Stribny - 0.0.26-1 - Update to 0.0.26 * Tue Mar 10 2015 Josef Stribny - 0.0.25-1 - Update to 0.0.25 * Wed Jan 28 2015 Michael Adam - 0.0.24-3 - Ship the polkit rules file as example in the docs package. * Wed Jan 28 2015 Vít Ondruch - 0.0.24-2 - Do not ship polkit rules for now, since this might have security implications. * Fri Jan 23 2015 Michael Adam - 0.0.24-2 - Move README.md to main package as doc. - Rename 10-vagrant.rules to 10-vagrant-libvirt.rules. - Move LICENSE to main package as license file. - Remove shebang from non-executable Rakefile. * Thu Jan 22 2015 Michael Adam - 0.0.24-1 - Update to version 0.0.24. * Thu Jan 22 2015 Michael Adam - 0.0.23-4 - Fix rake dependency. - Rename patch file. - Improve description. * Thu Nov 27 2014 Vít Ondruch - 0.0.23-4 - Add vagrant(vagrant-libvirt) virtual provide. * Wed Nov 26 2014 Vít Ondruch - 0.0.23-3 - Enable test suite. - Update polkit rules. * Mon Nov 24 2014 Josef Stribny - 0.0.23-2 - Register and unregister the plugin using macros * Tue Oct 14 2014 Josef Stribny - 0.0.23-1 - Update to 0.0.23 - Use ruby-libvirt 0.5.x - Move the rest of the doc files to -doc * Tue Sep 16 2014 Josef Stribny - 0.0.20-2 - Register and unregister automatically * Wed Sep 10 2014 Josef Stribny - 0.0.20-1 - Update to 0.0.20 * Fri Jun 27 2014 Adam Miller - 0.0.16-1 - Initial package for Fedora