Set NOKOGIRI_TEST_GC_LEVEL to major on ppc64le as

ruby31 does not seem to support GC.compat on the platform
This commit is contained in:
Mamoru TASAKA 2022-01-27 01:01:48 +09:00
parent 5a706b2f2a
commit fd30bc656a

View File

@ -1,7 +1,7 @@
%global mainver 1.13.1 %global mainver 1.13.1
#%%global prever .rc4 #%%global prever .rc4
%global mainrel 1 %global mainrel 2
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g') %global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
%global gem_name nokogiri %global gem_name nokogiri
@ -12,7 +12,7 @@
Summary: An HTML, XML, SAX, and Reader parser Summary: An HTML, XML, SAX, and Reader parser
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: %{mainver} Version: %{mainver}
Release: %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?dist}.2 Release: %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?dist}
# MIT: see LICENSE.md # MIT: see LICENSE.md
# ASL 2.0 # ASL 2.0
@ -215,13 +215,18 @@ pushd ./%{gem_instdir}
# Remove unneeded simplecov coverage test # Remove unneeded simplecov coverage test
sed -i test/helper.rb \ sed -i test/helper.rb \
-e '\@require.*simplecov@,\@^end$@d' -e '\@require.*simplecov@,\@^end$@s|^|#|'
# Remove minitest-reporters. It does not provide any additional value while # Remove minitest-reporters. It does not provide any additional value while
# it blows up the dependency chain. # it blows up the dependency chain.
sed -i '/require..minitest.reporters./ s/^/#/' test/helper.rb sed -i '/require..minitest.reporters./ s/^/#/' test/helper.rb
sed -i '/Minitest::Reporters/ s/^/#/' test/helper.rb sed -i '/Minitest::Reporters/ s/^/#/' test/helper.rb
# PPC64LE with ruby3.1 does not seem to support GC.compact
%ifarch ppc64le x86_64
export NOKOGIRI_TEST_GC_LEVEL=major
%endif
# Need investigation. For now anyway build # Need investigation. For now anyway build
env \ env \
RUBYLIB=".:lib:test:ext" \ RUBYLIB=".:lib:test:ext" \
@ -260,6 +265,10 @@ popd
%{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/ %{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/
%changelog %changelog
* Wed Jan 26 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.13.1-2
- Set NOKOGIRI_TEST_GC_LEVEL to major on ppc64le as
ruby31 does not seem to support GC.compat on the platform
* Wed Jan 26 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.13.1-1.2 * Wed Jan 26 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.13.1-1.2
- F-36: rebuild against ruby31 - F-36: rebuild against ruby31