public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rubygem-nokogiri] f43: Execute gumbo testsuite
@ 2026-06-20  5:16 Mamoru TASAKA
  0 siblings, 0 replies; only message in thread
From: Mamoru TASAKA @ 2026-06-20  5:16 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rubygem-nokogiri
Branch : f43
Commit : c27e8fa727cfe0a47a7bf357863cf24ed5ea3944
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date   : 2026-06-03T13:53:09+09:00
Stats  : +22/-1 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/rubygem-nokogiri/c/c27e8fa727cfe0a47a7bf357863cf24ed5ea3944?branch=f43

Log:
Execute gumbo testsuite

---
diff --git a/rubygem-nokogiri.spec b/rubygem-nokogiri.spec
index e095fe1..b5ace26 100644
--- a/rubygem-nokogiri.spec
+++ b/rubygem-nokogiri.spec
@@ -1,7 +1,7 @@
 %global	mainver		1.19.3
 #%%global	prever		.rc4
 
-%global	baserelease		1
+%global	baserelease		2
 %global	prerpmver		%(echo "%{?prever}" | sed -e 's|\\.||g')
 
 %global	gem_name	nokogiri
@@ -51,6 +51,9 @@ BuildRequires:	gcc
 BuildRequires:	libxml2-devel
 BuildRequires:	libxslt-devel
 BuildRequires:	ruby-devel
+# gumbo:test
+BuildRequires:	gcc-c++
+BuildRequires:	gtest-devel
 # ruby27 needs this explicitly
 BuildRequires:	rubygem(racc)
 
@@ -120,6 +123,15 @@ sed -i \
 	gumbo-parser/src/Makefile \
 	-e 's|^\(CFLAGS.*=.*\)$|\1 -fPIC|'
 
+# gumbo:test related
+sed -i \
+	gumbo-parser/Makefile \
+	-e '\@CFLAGS.*:=@s|^\(.*\)$|\1 %build_cflags|' \
+	-e '\@CXXFLAGS.*:=@s|^\(.*\)$|\1 %build_cflags|' \
+	-e 's|-std=c++11|-std=c++17|' \
+	-e '\@gtest_lib.*:=@s|googletest/make/gtest_main.a|%{_libdir}/libgtest_main.so %{_libdir}/libgtest.so|' \
+	%{nil}
+
 %build
 # Ummm...
 env LANG=C.UTF-8 gem build %{gem_name}-%{version}.gemspec
@@ -202,6 +214,12 @@ popd
 rm -f %{buildroot}%{gem_cache}
 
 %check
+# gumbo:test
+cd gumbo-parser
+make build/run_tests %{?_smp_mflags}
+make check
+cd ..
+
 # Ah....
 # test_exslt(TestXsltTransforms) [./test/test_xslt_transforms.rb:93]
 # fails without TZ on sparc
@@ -276,6 +294,9 @@ popd
 %doc	%{gem_dir}/doc/%{gem_name}-%{mainver}%{?prever}/
 
 %changelog
+* Wed Jun 03 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.19.3-2
+- Execute gumbo testsuite
+
 * Tue Apr 28 2026 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.19.3-1
 - 1.19.3
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-20  5:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-20  5:16 [rpms/rubygem-nokogiri] f43: Execute gumbo testsuite Mamoru TASAKA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox