Remove rubygem(minitest-reporters) dependency.

This does not provide any value for Fedora, but it bloats dependency
chain. Less dependencies is also advantage for ELN.

Related: rhbz#1952842
This commit is contained in:
Vít Ondruch 2021-05-07 14:29:57 +02:00
parent df8da8398e
commit 9515fadf5d

View File

@ -1,7 +1,7 @@
%global mainver 1.11.2
#%%global prever .rc4
%global mainrel 1
%global mainrel 2
%global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g')
%global gem_name nokogiri
@ -12,7 +12,7 @@
Summary: An HTML, XML, SAX, and Reader parser
Name: rubygem-%{gem_name}
Version: %{mainver}
Release: %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?dist}.1
Release: %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?dist}
License: MIT
URL: http://nokogiri.rubyforge.org/nokogiri/
Source0: https://rubygems.org/gems/%{gem_name}-%{mainver}%{?prever}.gem
@ -29,7 +29,6 @@ BuildRequires: ruby(rubygems)
##
## For %%check
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(minitest-reporters)
BuildRequires: rubygems-devel
Obsoletes: ruby-%{gem_name} <= 1.5.2-2
#BuildRequires: ruby(racc)
@ -188,6 +187,11 @@ pushd ./%{gem_instdir}
sed -i test/helper.rb \
-e '\@require.*simplecov@,\@^end$@d'
# Remove minitest-reporters. It does not provide any additional value while
# it blows up the dependency chain.
sed -i '/require..minitest.reporters./ s/^/#/' test/helper.rb
sed -i '/Minitest::Reporters/ s/^/#/' test/helper.rb
# Need investigation. For now anyway build
env \
RUBYLIB=".:lib:test:ext" \
@ -232,6 +236,9 @@ popd
%{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/
%changelog
* Fri May 07 2021 Vít Ondruch <vondruch@redhat.com> - 1.11.2-2
- Remove rubygem(minitest-reporters) dependency.
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.11.2-1.1
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937