Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c1793eed6 |
@ -2,6 +2,14 @@
|
||||
|
||||
%global vagrant_spec_commit 259c55e204674f2b006700c6d351d04250d13b04
|
||||
|
||||
# Vagrant plugin macros (not provided by vagrant on EL)
|
||||
%global vagrant_plugin_dir %{_datadir}/vagrant/gems
|
||||
%global vagrant_plugin_instdir %{vagrant_plugin_dir}/gems/%{vagrant_plugin_name}-%{version}
|
||||
%global vagrant_plugin_libdir %{vagrant_plugin_instdir}/lib
|
||||
%global vagrant_plugin_cache %{vagrant_plugin_dir}/cache/%{vagrant_plugin_name}-%{version}.gem
|
||||
%global vagrant_plugin_spec %{vagrant_plugin_dir}/specifications/%{vagrant_plugin_name}-%{version}.gemspec
|
||||
%global vagrant_plugin_docdir %{vagrant_plugin_dir}/doc/%{vagrant_plugin_name}-%{version}
|
||||
|
||||
Name: %{vagrant_plugin_name}
|
||||
Version: 0.11.2
|
||||
Release: 8%{?dist}
|
||||
@ -48,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)
|
||||
@ -79,16 +88,28 @@ 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
|
||||
%vagrant_plugin_install
|
||||
|
||||
mkdir -p .%{vagrant_plugin_dir}
|
||||
gem install \
|
||||
-V \
|
||||
--local \
|
||||
--no-user-install \
|
||||
--install-dir .%{vagrant_plugin_dir} \
|
||||
--bindir .%{_bindir} \
|
||||
--ignore-dependencies \
|
||||
--force \
|
||||
--document=ri,rdoc \
|
||||
--backtrace \
|
||||
%{vagrant_plugin_name}-%{version}.gem
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{vagrant_plugin_dir}
|
||||
@ -101,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
|
||||
@ -153,6 +174,12 @@ popd
|
||||
%{vagrant_plugin_instdir}/spec
|
||||
|
||||
%changelog
|
||||
* Sat Mar 08 2026 Ryosuke Nakayama <ryosuke.nakayama@ryskn.com> - 0.11.2-8.el8
|
||||
- Port to AlmaLinux 8
|
||||
- Define vagrant plugin macros inline
|
||||
- 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+
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user