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:
parent
df8da8398e
commit
9515fadf5d
@ -1,7 +1,7 @@
|
|||||||
%global mainver 1.11.2
|
%global mainver 1.11.2
|
||||||
#%%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}.1
|
Release: %{?prever:0.}%{mainrel}%{?prever:.%{prerpmver}}%{?dist}
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://nokogiri.rubyforge.org/nokogiri/
|
URL: http://nokogiri.rubyforge.org/nokogiri/
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{mainver}%{?prever}.gem
|
Source0: https://rubygems.org/gems/%{gem_name}-%{mainver}%{?prever}.gem
|
||||||
@ -29,7 +29,6 @@ BuildRequires: ruby(rubygems)
|
|||||||
##
|
##
|
||||||
## For %%check
|
## For %%check
|
||||||
BuildRequires: rubygem(minitest)
|
BuildRequires: rubygem(minitest)
|
||||||
BuildRequires: rubygem(minitest-reporters)
|
|
||||||
BuildRequires: rubygems-devel
|
BuildRequires: rubygems-devel
|
||||||
Obsoletes: ruby-%{gem_name} <= 1.5.2-2
|
Obsoletes: ruby-%{gem_name} <= 1.5.2-2
|
||||||
#BuildRequires: ruby(racc)
|
#BuildRequires: ruby(racc)
|
||||||
@ -188,6 +187,11 @@ pushd ./%{gem_instdir}
|
|||||||
sed -i test/helper.rb \
|
sed -i test/helper.rb \
|
||||||
-e '\@require.*simplecov@,\@^end$@d'
|
-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
|
# Need investigation. For now anyway build
|
||||||
env \
|
env \
|
||||||
RUBYLIB=".:lib:test:ext" \
|
RUBYLIB=".:lib:test:ext" \
|
||||||
@ -232,6 +236,9 @@ popd
|
|||||||
%{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/
|
%{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user