From e7531e5398dc0d81fbcdcb9c7b26fb83e009a2e0 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 29 Sep 2022 23:06:37 +0900 Subject: [PATCH] Backport upstream fix to eliminate Fixnum usage removed on Ruby 3.2 --- rubygem-rspec-core.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/rubygem-rspec-core.spec b/rubygem-rspec-core.spec index b3d3ead..33c922d 100644 --- a/rubygem-rspec-core.spec +++ b/rubygem-rspec-core.spec @@ -3,7 +3,7 @@ %global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||') %global fullver %{majorver}%{?preminorver} -%global fedorarel 2 +%global fedorarel 3 %global gem_name rspec-core @@ -18,7 +18,7 @@ Summary: RSpec runner and formatters Name: rubygem-%{gem_name} Version: %{majorver} -Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist}.1 +Release: %{?preminorver:0.}%{fedorarel}%{?preminorver:%{rpmminorver}}%{?dist} License: MIT URL: http://github.com/rspec/rspec-mocks @@ -83,6 +83,11 @@ This package contains documentation for %{name}. %patch0 -p1 gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec +# https://github.com/ruby/ruby/blob/28840d74c26189f4e730b906c2383e32ea6165fe/NEWS.md?plain=1#L232 +# https://github.com/rspec/rspec-core/commit/bf49c78d7a92e253d557924a3f85fd6991e32ca3 +# Ruby 3.2 removes Fixnum +sed -i features/metadata/described_class.feature -e 's|Fixnum|Symbol|' + %build gem build %{gem_name}.gemspec %gem_install @@ -175,6 +180,9 @@ done %{gem_docdir} %changelog +* Thu Sep 29 2022 Mamoru TASAKA - 3.11.0-3 +- Backport upstream fix to eliminate Fixnum usage removed on Ruby 3.2 + * Sat Jul 23 2022 Fedora Release Engineering - 3.11.0-2.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild