]> git.pld-linux.org Git - packages/libreoffice.git/commitdiff
make java runtime dependency optional
authorJan Palus <atler@pld-linux.org>
Sat, 11 Mar 2023 12:08:00 +0000 (13:08 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 11 Mar 2023 12:08:00 +0000 (13:08 +0100)
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.

libreoffice.spec

index 4094c9444a8c2b270715ba77ddf9d180b3eab404..35895fef12fcbbeb3cd7a9ea571ce206b7710905 100644 (file)
@@ -333,6 +333,8 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %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
@@ -808,6 +810,9 @@ wymagane jest bardziej złożone, nieliniowe programowanie.
 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
This page took 0.076493 seconds and 4 git commands to generate.