--- /dev/null
+--- libreoffice-7.5.1.2/jvmfwk/plugins/sunmajor/pluginlib/util.cxx.orig 2023-02-22 20:52:27.000000000 +0100
++++ libreoffice-7.5.1.2/jvmfwk/plugins/sunmajor/pluginlib/util.cxx 2023-03-11 21:48:38.572214374 +0100
+@@ -460,6 +460,11 @@
+ if(sHomeProperty.equals(sKey))
+ {
+ sVal = homePath + "/jre";
++ DirectoryItem jreDirItem;
++ if (DirectoryItem::get(homePath + "/jre", jreDirItem) == File::E_None)
++ sVal = homePath + "/jre";
++ else
++ sVal = homePath;
+ }
+ #endif
+
Source33: https://dev-www.libreoffice.org/src/libcmis-0.5.2.tar.xz
# Source33-md5: 3653bc54e1bcd17ae09a1a7086daa38b
Patch0: disable-failing-test.patch
+Patch1: jvm-path.patch
URL: https://www.documentfoundation.org/
BuildRequires: /usr/bin/getopt
%{?with_firebird:BuildRequires: Firebird-devel >= 3.0.0.0}
%prep
%setup -q -a1 -a2 -a3
%patch0 -p1
+%patch1 -p1
for dir in *-%{version}; do
[ -f $dir/ChangeLog ] && %{__mv} $dir/ChangeLog ChangeLog-$dir