This commit is contained in:
Mamoru TASAKA 2022-10-27 15:38:32 +09:00
parent e7531e5398
commit 81232177c0
2 changed files with 9 additions and 11 deletions

View File

@ -1,9 +1,9 @@
%global majorver 3.11.0
%global majorver 3.12.0
#%%global preminorver .rc6
%global rpmminorver .%(echo %preminorver | sed -e 's|^\\.\\.*||')
%global fullver %{majorver}%{?preminorver}
%global fedorarel 3
%global fedorarel 1
%global gem_name rspec-core
@ -11,7 +11,7 @@
# runtime part of rspec-mocks does not depend on rspec-core
# Disable test for now due to cucumber v.s. gherkin dependency issue
# pulled by aruba
%bcond_with bootstrap
%bcond_without bootstrap
%undefine __brp_mangle_shebangs
@ -83,11 +83,6 @@ 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
@ -129,7 +124,7 @@ done
%endif
# cucumber 7.0.0 does not support ~@
sed -i cucumber.yml -e "s|~@wip|'not @wip'|"
sed -i cucumber.yml -e 's|~@wip|"not @wip"|'
sed -i features/support/require_expect_syntax_in_aruba_specs.rb -e 's|~@|not @|g'
# Perhaps with cucumber 7.0.0 change? (along with diff-lcs updated to 1.5)
sed -i features/support/diff_lcs_versions.rb -e 's|scenario.title|scenario.name|'
@ -180,6 +175,9 @@ done
%{gem_docdir}
%changelog
* Thu Oct 27 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.12.0-1
- 3.12.0
* Thu Sep 29 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 3.11.0-3
- Backport upstream fix to eliminate Fixnum usage removed on Ruby 3.2

View File

@ -1,2 +1,2 @@
SHA512 (rspec-core-3.11.0.gem) = 2cec4af0ac69776a4846ef93e98f5459e346b22b9f118aa3fb65c71b8fcecd3d6d156ffba0a6509fb11c9d9e3d88badcece23055e4f3ea0f4ef6e867372fc9b9
SHA512 (rubygem-rspec-core-3.11.0-full.tar.gz) = b21894403df5bdb7a0456b490cf69c42ecdda54a3dcfd64f91d2ca7d63a339e1b08f595bfa8612ce49f718db526f63acda44bff11ae13a58ba8edfe0cacdcfdc
SHA512 (rspec-core-3.12.0.gem) = b6b990fb9663474b899423da113fc590c8de990c74852e9022b026f1ea97c93a31f207fbb67e756bc20e79b539a2324ffa8ebe277b27f902619501d00beae96b
SHA512 (rubygem-rspec-core-3.12.0-full.tar.gz) = 086f5e63e288a70c2d8cb8f10a5f71b02b9a5de1fe0157016c1744d28257f5b64b188058914e7986af791a494b3efa6afdf17d1d6132bddf03d3b525561ae516