--- /dev/null
+From b7d63694985bbb1cf86eb71769feadb28ce68c17 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Fri, 2 Sep 2022 04:31:18 +0100
+Subject: Fix build with Poppler 22.09.0
+
+With Poppler 22.09.0, LO fails to build with:
+```
+/var/tmp/portage/app-office/libreoffice-7.3.5.2/work/libreoffice-7.3.5.2/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx:682:36: error: too many arguments to function call, expected single argument 'start', have 3 arguments
+ state->getLineDash(&dashArray, &arrayLen, &startOffset);
+ ~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
+/usr/include/poppler/GfxState.h:1506:32: note: 'getLineDash' declared here
+ const std::vector<double> &getLineDash(double *start)
+ ^
+1 error generated.
+```
+
+Poppler changed the getLineDash interface:
+```
+- void getLineDash(double **dash, int *length, double *start)
++ const std::vector<double> &getLineDash(double *start)
+```
+
+Signed-off-by: Sam James <sam@gentoo.org>
+Change-Id: I29e18f20d7650a7fcac1bc8ab4aaa04aaa2ab8fb
+Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139249
+Tested-by: Jenkins
+Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
+---
+ sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+index f12478cb2f4d..3ad139b65fa3 100644
+--- a/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
++++ b/sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.cxx
+@@ -678,8 +678,15 @@ void PDFOutDev::updateLineDash(GfxState *state)
+ return;
+ assert(state);
+
+- double* dashArray; int arrayLen; double startOffset;
++ int arrayLen; double startOffset;
++#if POPPLER_CHECK_VERSION(22, 9, 0)
++ const std::vector<double> &dash = state->getLineDash(&startOffset);
++ const double* dashArray = dash.data();
++ arrayLen = dash.size();
++#else
++ double* dashArray;
+ state->getLineDash(&dashArray, &arrayLen, &startOffset);
++#endif
+
+ printf( "updateLineDash" );
+ if( arrayLen && dashArray )
+--
+cgit v1.2.1
+
%define with_qt5 1
%endif
-%define major_ver 7.2.6
+%define major_ver 7.2.7
%define qt5_ver 5.6
%define use_jdk openjdk11
Summary(pl.UTF-8): LibreOffice - potężny pakiet biurowy
Name: libreoffice
Version: %{major_ver}.2
-Release: 3
+Release: 1
License: GPL/LGPL
Group: X11/Applications
Source0: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-%{version}.tar.xz
-# Source0-md5: 9e8f5362f6296b4760353f4402640316
+# Source0-md5: 47caa06bcfe227f9e53ab12f1c383124
Source1: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-dictionaries-%{version}.tar.xz
-# Source1-md5: 7d30cd012a80d825bdf6b5c1fcb5dde3
+# Source1-md5: 428940307203786085448757f900af37
Source2: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-help-%{version}.tar.xz
-# Source2-md5: 1661e10d0a866a6f6ba4d6b33958dbe1
+# Source2-md5: 0c34e4ca58c32626cb1cd9f42ff66762
Source3: http://download.documentfoundation.org/libreoffice/src/%{major_ver}/%{name}-translations-%{version}.tar.xz
-# Source3-md5: 87f5abe3030562e93e6bee392c36656f
+# Source3-md5: e05999e7ffce14b4aee7129fad25f4b2
# make (download|fetch) DO_FETCH_TARBALLS=1 WGET=wget
# but not sure if all are needed?
Patch3: boost1.81.patch
Patch4: gpgme1.18.patch
Patch5: zxing1.4.patch
+# https://cgit.freedesktop.org/libreoffice/core/patch/?id=b7d63694985bbb1cf86eb71769feadb28ce68c17
+Patch6: %{name}-poppler-22.09.0.patch
URL: https://www.documentfoundation.org/
BuildRequires: /usr/bin/getopt
%{?with_firebird:BuildRequires: Firebird-devel >= 3.0.0.0}
BuildRequires: lcms2-devel >= 2
BuildRequires: libabw-devel >= 0.1.0
BuildRequires: libcdr-devel >= 0.1
-BuildRequires: libcmis-devel >= 0.5.2
+%{?with_system_cmis:BuildRequires: libcmis-devel >= 0.5.2}
BuildRequires: libe-book-devel >= 0.1
%{?with_eot:BuildRequires: libeot-devel >= 0.01}
BuildRequires: libepoxy-devel >= 1.2
Requires: hicolor-icon-theme
%{?with_system_beanshell:Requires: java-beanshell}
%{?with_system_hsqldb:Requires: java-hsqldb}
-Requires: libcmis >= 0.5.2
+%{?with_system_cmis:Requires: libcmis >= 0.5.2}
Requires: libepoxy >= 1.2
Requires: libexttextcat >= 3.4.1
Requires: liblangtag >= 0.4.0
%patch3 -p1
%patch4 -p1
%patch5 -p1
+%patch6 -p1
for dir in *-%{version}; do
[ -f $dir/ChangeLog ] && %{__mv} $dir/ChangeLog ChangeLog-$dir