!8 修复ruby升级导致的rubygem-shoulda编译失败问题

From: @wu-leilei 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2023-01-29 00:48:28 +00:00 committed by Gitee
commit 733525e958
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,14 +1,14 @@
%global gem_name shoulda %global gem_name shoulda
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 3.6.0 Version: 3.6.0
Release: 3 Release: 4
Summary: Making tests easy on the fingers and eyes Summary: Making tests easy on the fingers and eyes
License: MIT License: MIT
URL: https://github.com/thoughtbot/shoulda URL: https://github.com/thoughtbot/shoulda
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel ruby rubygem(jbuilder) rubygem(minitest-reporters) BuildRequires: ruby(release) rubygems-devel ruby rubygem(jbuilder) rubygem(minitest-reporters)
BuildRequires: rubygem(rails) rubygem(shoulda-context) rubygem(shoulda-matchers) BuildRequires: rubygem(rails) rubygem(shoulda-context) rubygem(shoulda-matchers)
BuildRequires: rubygem(sqlite3) rubygem(did_you_mean) BuildRequires: rubygem(sqlite3) rubygem(did_you_mean) git rubygem-sprockets-rails rubygem-puma
BuildArch: noarch BuildArch: noarch
%description %description
Making tests easy on the fingers and eyes. Making tests easy on the fingers and eyes.
@ -23,7 +23,7 @@ Documentation for %{name}.
%prep %prep
%setup -q -n %{gem_name}-%{version} %setup -q -n %{gem_name}-%{version}
%gemspec_remove_dep -g shoulda-matchers '~> 3.0' %gemspec_remove_dep -g shoulda-matchers '~> 3.0'
%gemspec_add_dep -g shoulda-matchers ['>= 3.0', '< 5'] %gemspec_add_dep -g shoulda-matchers ['>= 3.0', '< 6']
%build %build
gem build ../%{gem_name}-%{version}.gemspec gem build ../%{gem_name}-%{version}.gemspec
@ -83,6 +83,9 @@ popd
%{gem_instdir}/test %{gem_instdir}/test
%changelog %changelog
* Tue Jan 17 2023 wulei <wulei80@h-partners.com> - 3.6.0-4
- Add buildrequires
* Wed Jun 29 2022 liyanan <liyanan32@h-partners.com> - 3.6.0-3 * Wed Jun 29 2022 liyanan <liyanan32@h-partners.com> - 3.6.0-3
- Relax shoulda-matchers dependency - Relax shoulda-matchers dependency