Support MiniTest 5.19+

This commit is contained in:
Mamoru TASAKA 2023-08-04 14:55:58 +09:00
parent b38035cdd0
commit 373e0fdada

View File

@ -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 <mtasaka@fedoraproject.org> - 1.15.3-3
- Support MiniTest 5.19+
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.15.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild