From 373e0fdadabca2e1a2f5363f72f3f4fe6a737d77 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 4 Aug 2023 14:55:58 +0900 Subject: [PATCH] Support MiniTest 5.19+ --- rubygem-nokogiri.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rubygem-nokogiri.spec b/rubygem-nokogiri.spec index 7b3294f..b7073f0 100644 --- a/rubygem-nokogiri.spec +++ b/rubygem-nokogiri.spec @@ -1,7 +1,7 @@ %global mainver 1.15.3 #%%global prever .rc4 -%global baserelease 2 +%global baserelease 3 %global prerpmver %(echo "%{?prever}" | sed -e 's|\\.||g') %global gem_name nokogiri @@ -109,6 +109,11 @@ sed -i \ gumbo-parser/src/Makefile \ -e 's|^\(CFLAGS.*=.*\)$|\1 -fPIC|' +# MiniTest 5.19+ +%if 0%{?fedora} >= 39 +grep -rl MiniTest nokogiri-*/test/ | xargs sed -i 's|MiniTest::|Minitest::|' +%endif + %build # Ummm... env LANG=C.UTF-8 gem build %{gem_name}-%{version}.gemspec @@ -271,6 +276,9 @@ popd %doc %{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/ %changelog +* Fri Aug 4 2023 Mamoru TASAKA - 1.15.3-3 +- Support MiniTest 5.19+ + * Fri Jul 21 2023 Fedora Release Engineering - 1.15.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild