it appears lo uses java only for selected components and runs fine
without it. additionally java(ClassDataVersion) dependency mandates
installation of default jre that provides given java(ClassDataVersion)
meaning jre 8 cannot be installed cleanly as the default jre since lo
requires jre >= 9. lo however does not rely on default jre and scans
%{_libdir}/jvm for all available installations and is perfectly fine
with just *-jre-base package.
therefore disable java(ClassDataVersion) dependency and suggest jre used
during build instead.
%define _noautostrip .*%{_datadir}/.*
%define _noautochrpath .*%{_datadir}/.*
+%define _noautoreq_java ClassDataVersion
+
%description
LibreOffice is an open-source project sponsored by Sun Microsystems
and hosted by CollabNet. In October of 2000, Sun released the source
Summary: UNO Runtime Environment
Summary(pl.UTF-8): Środowisko uruchomieniowe UNO
Group: Libraries
+%if %{with java}
+%{?use_jdk:Suggests: jre(%use_jdk)}
+%endif
Obsoletes: openoffice.org-ure < 1:4
%description ure