diff --git a/latex2html.changes b/latex2html.changes
index 1d8c17f..9abeef3 100644
--- a/latex2html.changes
+++ b/latex2html.changes
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Fri Jul 19 03:30:32 UTC 2024 - Bernhard Wiedemann
+
+- cleanup after test to not modify the install result (boo#1227364)
+
-------------------------------------------------------------------
Thu Feb 29 14:00:54 UTC 2024 - pgajdos@suse.com
diff --git a/latex2html.spec b/latex2html.spec
index 976c47d..c73eb7f 100644
--- a/latex2html.spec
+++ b/latex2html.spec
@@ -88,7 +88,9 @@ chmod 755 %{buildroot}%{_datadir}/%{name}/{cweb2html/makemake.pl,cweb2html/cweb2
%check
%make_build test
+# cleanup after test to not modify the install result (boo#1227364)
find docs/manual tests \( -name \*.log -o -name \*.aux -o -name WARNINGS \) -delete
+rm -rf tests/l2htest
%files
%doc Changes FAQ README.md TODO dot.latex2html-init