Compare commits

..

1 Commits
el10 ... el8

Author SHA1 Message Date
ryskn
8c1793eed6 Port vagrant-libvirt to AlmaLinux 8
- Define vagrant plugin macros inline (not available on EL)
- Inline gem install instead of %vagrant_plugin_install macro
- Use old-style %patch0 syntax for RPM 4.14 compatibility
- Replace Recommends with Suggests
2026-03-08 01:54:50 +09:00

View File

@ -56,7 +56,8 @@ Requires: rubygem(xml-simple)
# 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
# EL8 supports weak deps but use Suggests for broader compat
Suggests: %{_bindir}/virt-sysprep
BuildRequires: vagrant >= 1.9.1
BuildRequires: rubygem(bundler)
BuildRequires: rubygem(diffy)
@ -87,12 +88,12 @@ Documentation for %{name}.
%prep
%setup -q -n %{vagrant_plugin_name}-%{version} -b 1
%patch 0 -p1
%patch 1 -p1
%patch 2 -p1
%patch 3 -p1
%patch 4 -p1
%patch 100 -p1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch100 -p1
%build
gem build ../%{vagrant_plugin_name}-%{version}.gemspec
@ -121,7 +122,7 @@ pushd ../vagrant-spec-%{vagrant_spec_commit}
# Remove the git reference, which is useless in our case.
sed -i '/git / s/^/#/' vagrant-spec.gemspec
# Relax the dependencies, since Fedora ships with newer versions.
# Relax the dependencies, since we may ship with newer versions.
sed -i '/thor/ s/~>/>=/' vagrant-spec.gemspec
sed -i '/rspec/ s/~>/>=/' vagrant-spec.gemspec
popd
@ -173,10 +174,11 @@ popd
%{vagrant_plugin_instdir}/spec
%changelog
* Sat Mar 08 2026 Ryosuke Nakayama <ryosuke.nakayama@ryskn.com> - 0.11.2-8.el10
- Port to AlmaLinux 10
* Sat Mar 08 2026 Ryosuke Nakayama <ryosuke.nakayama@ryskn.com> - 0.11.2-8.el8
- Port to AlmaLinux 8
- Define vagrant plugin macros inline
- Inline gem install instead of %%vagrant_plugin_install macro
- Use old-style %%patch syntax for RPM 4.14 compatibility
- Replace Recommends with Suggests
* Mon Nov 03 2025 Vít Ondruch <vondruch@redhat.com> - 0.11.2-8
- Fix compatibility with REXML 3.4.2+