Initial commit.
This commit is contained in:
parent
ba2178ffe7
commit
cc0888f067
119
vagrant-libvirt.spec
Normal file
119
vagrant-libvirt.spec
Normal file
@ -0,0 +1,119 @@
|
||||
%global bashcompletion_dir %(pkg-config --variable=completionsdir bash-completion 2> /dev/null || :)
|
||||
|
||||
%global vagrant_plugin_name vagrant-libvirt
|
||||
|
||||
Name: %{vagrant_plugin_name}
|
||||
Version: 0.0.23
|
||||
Release: 2%{?dist}
|
||||
Summary: Vagrant provider for libvirt
|
||||
Group: Development/Languages
|
||||
License: MIT
|
||||
URL: https://github.com/pradels/vagrant-libvirt
|
||||
Source0: https://rubygems.org/gems/%{vagrant_plugin_name}-%{version}.gem
|
||||
# /etc/polkit-1/rules.d/10-vagrant.rules
|
||||
Source1: 10-vagrant.rules
|
||||
# Use fog with ruby-libvirt 0.5.x
|
||||
Patch0: vagrant-libvirt-use-ruby-libvirt-0.5.x.patch
|
||||
Requires(pre): shadow-utils
|
||||
Requires(posttrans): vagrant
|
||||
Requires(preun): vagrant
|
||||
Requires: ruby(release)
|
||||
Requires: ruby(rubygems)
|
||||
Requires: rubygem(fog) => 1.23
|
||||
Requires: rubygem(fog) < 2
|
||||
Requires: rubygem(ruby-libvirt)
|
||||
#Requires: rubygem(ruby-libvirt) => 0.5.0
|
||||
#Requires: rubygem(ruby-libvirt) < 0.6
|
||||
Requires: rubygem(nokogiri) => 1.6.0
|
||||
Requires: rubygem(nokogiri) < 1.7
|
||||
Requires: rubygem(multi_json)
|
||||
Requires: libvirt
|
||||
Requires: libvirt-daemon-kvm
|
||||
Requires: polkit
|
||||
Requires: vagrant
|
||||
BuildRequires: vagrant
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Vagrant provider for libvirt.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
gem unpack %{SOURCE0}
|
||||
|
||||
%setup -q -D -T -n %{vagrant_plugin_name}-%{version}
|
||||
|
||||
gem spec %{SOURCE0} -l --ruby > %{vagrant_plugin_name}.gemspec
|
||||
|
||||
%patch0 -p1
|
||||
|
||||
%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}/
|
||||
|
||||
# polkit rule for vagrant group.
|
||||
mkdir -p %{buildroot}%{_datadir}/polkit-1/rules.d
|
||||
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/rules.d/
|
||||
|
||||
%pre
|
||||
getent group vagrant >/dev/null || groupadd -r vagrant
|
||||
|
||||
%posttrans
|
||||
%vagrant_plugin_register %{vagrant_plugin_name}
|
||||
|
||||
%preun
|
||||
%vagrant_plugin_unregister %{vagrant_plugin_name}
|
||||
|
||||
%files
|
||||
%dir %{vagrant_plugin_instdir}
|
||||
%{vagrant_plugin_libdir}
|
||||
%{vagrant_plugin_instdir}/locales
|
||||
%{vagrant_plugin_instdir}/tools
|
||||
%exclude %{vagrant_plugin_cache}
|
||||
%exclude %{vagrant_plugin_instdir}/.gitignore
|
||||
%{vagrant_plugin_spec}
|
||||
# polkit
|
||||
%{_datadir}/polkit-1/rules.d/10-vagrant.rules
|
||||
|
||||
%files doc
|
||||
%doc %{vagrant_plugin_docdir}
|
||||
%doc %{vagrant_plugin_instdir}/example_box
|
||||
%doc %{vagrant_plugin_instdir}/CHANGELOG.md
|
||||
%doc %{vagrant_plugin_instdir}/LICENSE
|
||||
%doc %{vagrant_plugin_instdir}/README.md
|
||||
%{vagrant_plugin_instdir}/Rakefile
|
||||
%{vagrant_plugin_instdir}/Gemfile
|
||||
%{vagrant_plugin_instdir}/vagrant-libvirt.gemspec
|
||||
%{vagrant_plugin_instdir}/spec
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 24 2014 Josef Stribny <jstribny@redhat.com> - 0.0.23-2
|
||||
- Register and unregister the plugin using macros
|
||||
|
||||
* Tue Oct 14 2014 Josef Stribny <jstribny@redhat.com> - 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 <jstribny@redhat.com> - 0.0.20-2
|
||||
- Register and unregister automatically
|
||||
|
||||
* Wed Sep 10 2014 Josef Stribny <jstribny@redhat.com> - 0.0.20-1
|
||||
- Update to 0.0.20
|
||||
|
||||
* Fri Jun 27 2014 Adam Miller <maxamillion@fedoraproject.org> - 0.0.16-1
|
||||
- Initial package for Fedora
|
||||
Loading…
Reference in New Issue
Block a user