From 9515fadf5da42051b3c44b291c3dac8ed4acdec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Fri, 7 May 2021 14:29:57 +0200 Subject: [PATCH] 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 --- rubygem-nokogiri.spec | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/rubygem-nokogiri.spec b/rubygem-nokogiri.spec index 56f5f51..1f59083 100644 --- a/rubygem-nokogiri.spec +++ b/rubygem-nokogiri.spec @@ -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 - 1.11.2-2 +- Remove rubygem(minitest-reporters) dependency. + * Fri Apr 16 2021 Mohan Boddu - 1.11.2-1.1 - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937