Accepting request 926803 from home:dimstar:Factory

- Use unconditional load: the %{?load…} construct does not work
  with RPM 4.17, and not being able to load would give completely
  different result anyway.
- Fix the construct to block invalid ruby versions. The syntax
  %{ruby:3 < 3.1} 'worked', but essentially just translated to
  %{ruby} in older RPM versions.

OBS-URL: https://build.opensuse.org/request/show/926803
OBS-URL: https://build.opensuse.org/package/show/Virtualization:vagrant/vagrant?expand=0&rev=61
This commit is contained in:
Dan Čermák 2021-10-22 06:35:26 +00:00 committed by Git OBS Bridge
parent a024bbcf3e
commit 3764c13739
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Oct 14 08:32:24 UTC 2021 - Dominique Leuenberger <dimstar@opensuse.org>
- Use unconditional load: the %{?load…} construct does not work
with RPM 4.17, and not being able to load would give completely
different result anyway.
- Fix the construct to block invalid ruby versions. The syntax
%{ruby:3 < 3.1} 'worked', but essentially just translated to
%{ruby} in older RPM versions.
-------------------------------------------------------------------
Tue Aug 3 08:58:34 UTC 2021 - Dan Čermák <dcermak@suse.com>

View File

@ -75,7 +75,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
# we use the rpm macros in this spec
# need to load them *after* defining the rb_* macros
%{?load:%{SOURCE97}}
%{load:%{SOURCE97}}
%global vagrant_plugin_name vagrant
@ -86,9 +86,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
# s.required_ruby_version = ">= 2.5", "< 3.1"
%if 0%{?suse_version} > 1500
BuildRequires: %{ruby:3 < 3.1}
BuildRequires: %{ruby} < 3.1
%else
BuildRequires: %{ruby:2 >= 2.5}
BuildRequires: %{ruby} >= 2.5
%endif
#
#