summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore16
-rw-r--r--0001-Adapt-test-code-to-cURL-8.2.0.patch83
-rw-r--r--0001-Only-pass-I.-arguments-to-g-ir-scanner-by-using-pkg-.patch36
-rw-r--r--0001-Resolves-rhbz-1432468-disable-opencl-by-default.patch26
-rw-r--r--0001-Revert-tdf-101630-gdrive-support-w-oAuth-and-Drive-A.patch1250
-rw-r--r--0001-aarch64-failing-here.patch33
-rw-r--r--0001-default-to-sifr-for-gnome-light-mode.patch58
-rw-r--r--0001-disable-libe-book-support.patch145
-rw-r--r--0001-disble-tip-of-the-day-dialog-by-default.patch26
-rw-r--r--0001-don-t-suppress-crashes.patch37
-rw-r--r--0001-fix-testSignDocument_PEM_PDF.patch61
-rw-r--r--0001-include-filename-if-the-test-fails.patch28
-rw-r--r--gpgkey-C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3.gpg.asc51
-rw-r--r--libreoffice-7.5.5.2.tar.xz.asc16
-rw-r--r--libreoffice-base-symbolic.svg27
-rw-r--r--libreoffice-calc-symbolic.svg27
-rw-r--r--libreoffice-draw-symbolic.svg26
-rw-r--r--libreoffice-help-7.5.5.2.tar.xz.asc16
-rw-r--r--libreoffice-impress-symbolic.svg25
-rw-r--r--libreoffice-main-symbolic.svg24
-rw-r--r--libreoffice-math-symbolic.svg25
-rw-r--r--libreoffice-multiliblauncher.sh16
-rw-r--r--libreoffice-translations-7.5.5.2.tar.xz.asc16
-rw-r--r--libreoffice-writer-symbolic.svg28
-rw-r--r--libreoffice.spec1988
-rw-r--r--sources16
26 files changed, 4100 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8aa4e07 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,16 @@
+/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
+/185d60944ea767075d27247c3162b3bc-unowinreg.dll
+/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
+/dragonbox-1.1.3.tar.gz
+/dtoa-20180411.tgz
+/f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140-opens___.ttf
+/libreoffice-7.5.5.2.tar.xz
+/libreoffice-7.5.5.2.tar.xz.00
+/libreoffice-7.5.5.2.tar.xz.01
+/libreoffice-7.5.5.2.tar.xz.02
+/libreoffice-help-7.5.5.2.tar.xz
+/libreoffice-help-7.5.5.2.tar.xz.00
+/libreoffice-help-7.5.5.2.tar.xz.01
+/libreoffice-translations-7.5.5.2.tar.xz
+/libreoffice-translations-7.5.5.2.tar.xz.00
+/libreoffice-translations-7.5.5.2.tar.xz.01
diff --git a/0001-Adapt-test-code-to-cURL-8.2.0.patch b/0001-Adapt-test-code-to-cURL-8.2.0.patch
new file mode 100644
index 0000000..bfe94fc
--- /dev/null
+++ b/0001-Adapt-test-code-to-cURL-8.2.0.patch
@@ -0,0 +1,83 @@
+From 2a68dc02bd19a717d3c86873206fabed1098f228 Mon Sep 17 00:00:00 2001
+From: Stephan Bergmann <sbergman@redhat.com>
+Date: Mon, 31 Jul 2023 17:09:32 +0200
+Subject: [PATCH] Adapt test code to cURL 8.2.0
+
+...for which CppunitTest_ucb_webdav_core would fail with
+
+> ucb/qa/cppunit/webdav/webdav_local_neon.cxx:60:(anonymous namespace)::webdav_local_test::WebdavUriTest
+> equality assertion failed
+> - Expected: ?query#fragment
+> - Actual : /?query#fragment
+
+and
+
+> ucb/qa/cppunit/webdav/webdav_local_neon.cxx:89:(anonymous namespace)::webdav_local_test::WebdavUriTest2
+> equality assertion failed
+> - Expected: ?query
+> - Actual : /?query
+
+because of
+<https://github.com/bch/curl/commit/5752e71080cb3aafa8b24c3261419345b832bc92>
+"urlapi: have *set(PATH) prepend a slash if one is missing".
+
+All that test code had been added with b03e070420606d407df2ec5e9dfa7043ecc46177
+"ucb: webdav-curl: fix CurlUri::CloneWithRelativeRefPathAbsolute()", and it
+looks harmless for our use cases that cURL started to behave differently there
+now. So instead of accepting either of the outcomes depending on what cURL
+version is being used, just change the test code to not leave out the
+path-absolute in the calls to CloneWithRelativeRefPathAbsolute (which is
+documented in ucb/source/ucp/webdav-curl/CurlUri.hxx to take
+
+> /// @param matches: relative-ref = path-absolute [ "?" query ] [ "#" fragment ]
+
+and path-absolute cannot be empty as per RFC 3986 "Uniform Resource Identifier
+(URI): Generic Syntax").
+
+Change-Id: If07a28598dfa047ebe89d8bcda19e8fcaa36aed0
+Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155099
+Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
+Tested-by: Jenkins
+Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
+---
+ ucb/qa/cppunit/webdav/webdav_local_neon.cxx | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/ucb/qa/cppunit/webdav/webdav_local_neon.cxx b/ucb/qa/cppunit/webdav/webdav_local_neon.cxx
+index bde7652b9ffa..a457bc6d2b28 100644
+--- a/ucb/qa/cppunit/webdav/webdav_local_neon.cxx
++++ b/ucb/qa/cppunit/webdav/webdav_local_neon.cxx
+@@ -52,12 +52,12 @@ namespace
+ CPPUNIT_ASSERT_EQUAL( OUString("/foo/bar"), uri2.GetRelativeReference() );
+ CPPUNIT_ASSERT_EQUAL( OUString("http://user%40anothername@server.biz:8040/foo/bar"), uri2.GetURI() );
+
+- CurlUri uri3(aURI.CloneWithRelativeRefPathAbsolute(u"?query#fragment"));
++ CurlUri uri3(aURI.CloneWithRelativeRefPathAbsolute(u"/?query#fragment"));
+ CPPUNIT_ASSERT_EQUAL( OUString("http"), uri3.GetScheme() );
+ CPPUNIT_ASSERT_EQUAL( OUString("server.biz"), uri3.GetHost() );
+ CPPUNIT_ASSERT_EQUAL( OUString("user%40anothername"), uri3.GetUser() );
+ CPPUNIT_ASSERT_EQUAL( sal_uInt16(8040), uri3.GetPort() );
+- CPPUNIT_ASSERT_EQUAL( OUString("?query#fragment"), uri3.GetRelativeReference() );
++ CPPUNIT_ASSERT_EQUAL( OUString("/?query#fragment"), uri3.GetRelativeReference() );
+ CPPUNIT_ASSERT_EQUAL( OUString("http://user%40anothername@server.biz:8040/?query#fragment"), uri3.GetURI() );
+ }
+
+@@ -80,13 +80,13 @@ namespace
+ CPPUNIT_ASSERT_EQUAL( OUString("/foo/bar"), uri2.GetRelativeReference() );
+ CPPUNIT_ASSERT_EQUAL( OUString("https://foo:bar@server.biz:8040/foo/bar"), uri2.GetURI() );
+
+- CurlUri uri3(aURI.CloneWithRelativeRefPathAbsolute(u"?query"));
++ CurlUri uri3(aURI.CloneWithRelativeRefPathAbsolute(u"/?query"));
+ CPPUNIT_ASSERT_EQUAL( OUString("https"), uri3.GetScheme() );
+ CPPUNIT_ASSERT_EQUAL( OUString("server.biz"), uri3.GetHost() );
+ CPPUNIT_ASSERT_EQUAL( OUString("foo"), uri3.GetUser() );
+ CPPUNIT_ASSERT_EQUAL( OUString("bar"), uri3.GetPassword() );
+ CPPUNIT_ASSERT_EQUAL( sal_uInt16(8040), uri3.GetPort() );
+- CPPUNIT_ASSERT_EQUAL( OUString("?query"), uri3.GetRelativeReference() );
++ CPPUNIT_ASSERT_EQUAL( OUString("/?query"), uri3.GetRelativeReference() );
+ CPPUNIT_ASSERT_EQUAL( OUString("https://foo:bar@server.biz:8040/?query"), uri3.GetURI() );
+ }
+
+--
+2.41.0
+
diff --git a/0001-Only-pass-I.-arguments-to-g-ir-scanner-by-using-pkg-.patch b/0001-Only-pass-I.-arguments-to-g-ir-scanner-by-using-pkg-.patch
new file mode 100644
index 0000000..917dd6a
--- /dev/null
+++ b/0001-Only-pass-I.-arguments-to-g-ir-scanner-by-using-pkg-.patch
@@ -0,0 +1,36 @@
+From caddaaa6afd2709f72dfb6160a485d405ac03966 Mon Sep 17 00:00:00 2001
+From: Rico Tzschichholz <ricotz@ubuntu.com>
+Date: Tue, 11 Jul 2023 20:21:15 +0200
+Subject: [PATCH] Only pass -I... arguments to g-ir-scanner by using
+ pkg-config's --cflags-only-I
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Otherwise it is possible that e.g. -Wl,--export-dynamic is passed which is fatal.
+
+Change-Id: I1735641e3149c86456e1164b67509a719e09d446
+Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154340
+Reviewed-by: René Engelhard <rene@debian.org>
+Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
+Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
+---
+ sysui/CustomTarget_share.mk | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sysui/CustomTarget_share.mk b/sysui/CustomTarget_share.mk
+index b86521a3a80f..912048b2ad66 100644
+--- a/sysui/CustomTarget_share.mk
++++ b/sysui/CustomTarget_share.mk
+@@ -167,7 +167,7 @@ $(share_WORKDIR)/%/LOKDocView-0.1.gir: \
+ mkdir -p $(dir $@)
+ PYTHONWARNINGS=default g-ir-scanner "${SRCDIR}/include/LibreOfficeKit/LibreOfficeKitGtk.h" \
+ "${SRCDIR}/libreofficekit/source/gtk/lokdocview.cxx" \
+- `${PKG_CONFIG} --cflags gobject-introspection-1.0 gtk+-3.0` \
++ `${PKG_CONFIG} --cflags-only-I gobject-introspection-1.0 gtk+-3.0` \
+ -I"${SRCDIR}/include/" \
+ --include=GLib-2.0 --include=GObject-2.0 --include=Gio-2.0 \
+ --library=libreofficekitgtk --library-path="${INSTDIR}/program" \
+--
+2.41.0
+
diff --git a/0001-Resolves-rhbz-1432468-disable-opencl-by-default.patch b/0001-Resolves-rhbz-1432468-disable-opencl-by-default.patch
new file mode 100644
index 0000000..a974295
--- /dev/null
+++ b/0001-Resolves-rhbz-1432468-disable-opencl-by-default.patch
@@ -0,0 +1,26 @@
+From 87b90b6fbf010effd44ef0e2bd3d75b27562a82b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
+Date: Mon, 27 Mar 2017 11:47:01 +0100
+Subject: [PATCH] Resolves: rhbz#1432468 disable opencl by default
+
+Change-Id: Ie037fcabdd219f195425979dd721501fb5527573
+---
+ officecfg/registry/schema/org/openoffice/Office/Common.xcs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+index 99b4104f6499..ef7ada84c2f3 100644
+--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
++++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+@@ -5652,7 +5652,7 @@
+ <desc>Determines whether OpenCL can be used, when available, to speed up
+ some operations.</desc>
+ </info>
+- <value>true</value>
++ <value>false</value>
+ </prop>
+ <prop oor:name="OpenCLDenyList" oor:type="oor:string-list" oor:nillable="false">
+ <!-- UIHints: Tools - Options General OpenCL -->
+--
+2.29.2
+
diff --git a/0001-Revert-tdf-101630-gdrive-support-w-oAuth-and-Drive-A.patch b/0001-Revert-tdf-101630-gdrive-support-w-oAuth-and-Drive-A.patch
new file mode 100644
index 0000000..6e8c641
--- /dev/null
+++ b/0001-Revert-tdf-101630-gdrive-support-w-oAuth-and-Drive-A.patch
@@ -0,0 +1,1250 @@
+From 2bf7bb98f7ed854ea382ab8340baad797787d984 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
+Date: Sat, 14 Aug 2021 21:43:19 +0100
+Subject: [PATCH] Revert "tdf#101630 - gdrive support w/oAuth and Drive API v3"
+
+This reverts commit b8b66a26f8f519a30b8e6b860a9247a8ffbb71cc.
+---
+ config_host/config_oauth2.h.in | 8 +-
+ external/libcmis/UnpackedTarball_libcmis.mk | 2 -
+ external/libcmis/libcmis_gdrive.patch.1 | 702 ------------------
+ .../libcmis_oauth_pw_as_refreshtoken.patch.1 | 185 -----
+ .../data/org/openoffice/Office/Common.xcu | 2 +-
+ ucb/source/ucp/cmis/auth_provider.cxx | 130 +---
+ ucb/source/ucp/cmis/auth_provider.hxx | 8 +-
+ ucb/source/ucp/cmis/cmis_content.cxx | 23 +-
+ ucb/source/ucp/cmis/cmis_repo_content.cxx | 4 +-
+ 9 files changed, 55 insertions(+), 1009 deletions(-)
+ delete mode 100644 external/libcmis/libcmis_gdrive.patch.1
+ delete mode 100644 external/libcmis/libcmis_oauth_pw_as_refreshtoken.patch.1
+
+diff --git a/config_host/config_oauth2.h.in b/config_host/config_oauth2.h.in
+index 9945dda3dda5..a95015b41f3e 100644
+--- a/config_host/config_oauth2.h.in
++++ b/config_host/config_oauth2.h.in
+@@ -15,13 +15,13 @@
+
+
+ /* Google Drive settings */
+-#define GDRIVE_BASE_URL "https://www.googleapis.com/drive/v3"
++#define GDRIVE_BASE_URL "https://www.googleapis.com/drive/v2"
+ #define GDRIVE_CLIENT_ID ""
+ #define GDRIVE_CLIENT_SECRET ""
+-#define GDRIVE_AUTH_URL "https://accounts.google.com/o/oauth2/v2/auth"
+-#define GDRIVE_TOKEN_URL "https://oauth2.googleapis.com/token"
++#define GDRIVE_AUTH_URL "https://accounts.google.com/o/oauth2/auth"
++#define GDRIVE_TOKEN_URL "https://accounts.google.com/o/oauth2/token"
+ #define GDRIVE_REDIRECT_URI "urn:ietf:wg:oauth:2.0:oob"
+-#define GDRIVE_SCOPE "https://www.googleapis.com/auth/drive.file"
++#define GDRIVE_SCOPE "https://www.googleapis.com/auth/drive"
+
+
+ /* Alfresco Cloud */
+diff --git a/external/libcmis/UnpackedTarball_libcmis.mk b/external/libcmis/UnpackedTarball_libcmis.mk
+index f48201d319d0..64d4af395f44 100644
+--- a/external/libcmis/UnpackedTarball_libcmis.mk
++++ b/external/libcmis/UnpackedTarball_libcmis.mk
+@@ -17,8 +17,6 @@ $(eval $(call gb_UnpackedTarball_add_patches,libcmis, \
+ external/libcmis/libcmis-libxml2_compatibility.patch \
+ external/libcmis/0001-rename-class-GetObject-to-avoid-name-clash-on-Window.patch \
+ external/libcmis/libcmis_onedrive.patch \
+- external/libcmis/libcmis_oauth_pw_as_refreshtoken.patch.1 \
+- external/libcmis/libcmis_gdrive.patch.1 \
+ external/libcmis/libcmis-boost-string.patch \
+ ))
+
+diff --git a/external/libcmis/libcmis_gdrive.patch.1 b/external/libcmis/libcmis_gdrive.patch.1
+deleted file mode 100644
+index 24ff65d1ef15..000000000000
+--- a/external/libcmis/libcmis_gdrive.patch.1
++++ /dev/null
+@@ -1,702 +0,0 @@
+-diff -ur libcmis.org/src/libcmis/gdrive-document.cxx libcmis/src/libcmis/gdrive-document.cxx
+---- libcmis.org/src/libcmis/gdrive-document.cxx 2021-07-27 19:11:02.679247008 +0200
+-+++ libcmis/src/libcmis/gdrive-document.cxx 2021-07-27 19:11:18.873246420 +0200
+-@@ -145,23 +145,17 @@
+- {
+- if ( !os.get( ) )
+- throw libcmis::Exception( "Missing stream" );
+-- if ( !isImmutable( ) )
+-- throw libcmis::Exception( string ( "Document " + getId( )+
+-- " is not editable" ) );
+-- string putUrl = getUploadUrl( ) + getId( );
+-- putUrl += "?uploadType=media";
+--
+-- // If it's a Google document, convert it
+-- if ( isGoogleDoc( ) )
+-- putUrl += "&convert=true";
+-+
+-+ string putUrl = GDRIVE_UPLOAD_LINK + getId( ) + "?uploadType=media";
+-
+- // Upload stream
+- boost::shared_ptr< istream> is ( new istream ( os->rdbuf( ) ) );
+- vector <string> headers;
+- headers.push_back( string( "Content-Type: " ) + contentType );
+-+ string res;
+- try
+- {
+-- getSession()->httpPutRequest( putUrl, *is, headers );
+-+ res = getSession()->httpPatchRequest( putUrl, *is, headers )->getStream()->str();
+- }
+- catch ( const CurlException& e )
+- {
+-@@ -181,35 +175,10 @@
+- {
+- if ( !os.get( ) )
+- throw libcmis::Exception( "Missing stream" );
+--
+-- if ( !isImmutable( ) )
+-- throw libcmis::Exception( string ( "Document " + getId( )+
+-- " is not editable" ) );
+-- string metaUrl = getUrl( );
+--
+-- // If it's a Google document, convert it
+-- if ( isGoogleDoc( ) )
+-- metaUrl += "?convert=true";
+--
+-- // Update file name meta information
+-- if ( !fileName.empty( ) && fileName != getContentFilename( ) )
+-- {
+-- Json metaJson;
+-- Json fileJson( fileName.c_str( ) );
+-- metaJson.add("title", fileJson );
+--
+-- std::istringstream is( metaJson.toString( ) );
+-- vector<string> headers;
+-- headers.push_back( "Content-Type: application/json" );
+-- try
+-- {
+-- getSession()->httpPutRequest( metaUrl, is, headers );
+-- }
+-- catch ( const CurlException& e )
+-- {
+-- throw e.getCmisException( );
+-- }
+-- }
+-+
+-+ // TODO: when would the filename need an update?
+-+ if (!fileName.empty() && fileName != getContentFilename())
+-+ std::cout << "filename change is not implemented in setContentStream" << std::endl;
+-
+- // Upload stream
+- uploadStream( os, contentType );
+-@@ -251,7 +220,7 @@
+- vector< libcmis::DocumentPtr > GDriveDocument::getAllVersions( )
+- {
+- vector< libcmis::DocumentPtr > revisions;
+-- string versionUrl = getUrl( ) + "/revisions";
+-+ string versionUrl = GDRIVE_METADATA_LINK + getId( ) + "/revisions";
+- // Run the http request to get the properties definition
+- string res;
+- try
+-@@ -263,7 +232,7 @@
+- throw e.getCmisException( );
+- }
+- Json jsonRes = Json::parse( res );
+-- Json::JsonVector objs = jsonRes["items"].getList( );
+-+ Json::JsonVector objs = jsonRes["revisions"].getList( );
+-
+- string parentId = getStringProperty( "cmis:parentId" );
+-
+-diff -ur libcmis.org/src/libcmis/gdrive-folder.cxx libcmis/src/libcmis/gdrive-folder.cxx
+---- libcmis.org/src/libcmis/gdrive-folder.cxx 2021-07-27 19:11:02.678247008 +0200
+-+++ libcmis/src/libcmis/gdrive-folder.cxx 2021-07-27 19:11:18.874246420 +0200
+-@@ -62,8 +62,8 @@
+- // Instead of sending multiple queries for children,
+- // we send a single query to search for objects where parents
+- // include the folderID.
+-- string query = getSession( )->getBindingUrl( ) +
+-- "/files?q=\"" + getId( ) + "\"+in+parents+and+trashed+=+false";
+-+ string query = GDRIVE_METADATA_LINK + "?q=\"" + getId( ) + "\"+in+parents+and+trashed+=+false" +
+-+ "&fields=files(kind,id,name,parents,mimeType,createdTime,modifiedTime,thumbnailLink,size)";
+-
+- string res;
+- try
+-@@ -76,7 +76,7 @@
+- }
+-
+- Json jsonRes = Json::parse( res );
+-- Json::JsonVector objs = jsonRes["items"].getList( );
+-+ Json::JsonVector objs = jsonRes["files"].getList( );
+-
+- // Create children objects from Json objects
+- for(unsigned int i = 0; i < objs.size(); i++)
+-@@ -95,7 +95,7 @@
+- string GDriveFolder::uploadProperties( Json properties )
+- {
+- // URL for uploading meta data
+-- string metaUrl = getSession()->getBindingUrl() + "/files/";
+-+ string metaUrl = GDRIVE_METADATA_LINK + "?fields=kind,id,name,parents,mimeType,createdTime,modifiedTime";
+-
+- // add parents to the properties
+- properties.add( "parents", GdriveUtils::createJsonFromParentId( getId( ) ) );
+-@@ -147,9 +147,15 @@
+-
+- Json propsJson = GdriveUtils::toGdriveJson( properties );
+-
+-- // Add filename to properties
+-- Json jsonFilename( fileName.c_str( ) );
+-- propsJson.add( "title", jsonFilename );
+-+ if(!fileName.empty()) {
+-+ // use provided filename
+-+ Json jsonFilename( fileName.c_str( ) );
+-+
+-+ propsJson.add( "name", jsonFilename );
+-+ }
+-+ if(!contentType.empty()) {
+-+ propsJson.add( "mimeType", Json(contentType.c_str()));
+-+ }
+-
+- // Upload meta-datas
+- string res = uploadProperties( propsJson);
+-@@ -171,12 +177,9 @@
+- libcmis::UnfileObjects::Type /*unfile*/,
+- bool /*continueOnError*/ )
+- {
+-- // Object remove doesn't work with folder
+-- // Using trash instead
+- try
+- {
+-- istringstream is( "" );
+-- getSession( )->httpPostRequest( getUrl( ) + "/trash", is, "" );
+-+ getSession( )->httpDeleteRequest( GDRIVE_METADATA_LINK + getId( ) );
+- }
+- catch ( const CurlException& e )
+- {
+-diff -ur libcmis.org/src/libcmis/gdrive-object.cxx libcmis/src/libcmis/gdrive-object.cxx
+---- libcmis.org/src/libcmis/gdrive-object.cxx 2021-07-27 19:11:02.675247009 +0200
+-+++ libcmis/src/libcmis/gdrive-object.cxx 2021-07-27 19:11:18.874246420 +0200
+-@@ -89,8 +89,8 @@
+- property.reset( new GDriveProperty( it->first, it->second ) );
+- m_properties[ property->getPropertyType( )->getId()] = property;
+-
+-- // we map "title" to both "cmis:name" and "cmis:getContentStreamFileName"
+-- if ( it->first == "title" )
+-+ // we map "name" to both "cmis:name" and "cmis:getContentStreamFileName"
+-+ if ( it->first == "name" )
+- {
+- property.reset( new GDriveProperty( "cmis:name", it->second) );
+- m_properties[ property->getPropertyType( )->getId()] = property;
+-@@ -142,16 +142,13 @@
+- {
+- if ( m_renditions.empty( ) )
+- {
+-- string downloadUrl = getStringProperty( "downloadUrl" );
+-- if ( !downloadUrl.empty( ) )
+-- {
+-- string mimeType = getStringProperty( "cmis:contentStreamMimeType" );
+-- if ( !mimeType.empty( ) )
+-- {
+-- RenditionPtr rendition(
+-- new Rendition( mimeType, mimeType, mimeType, downloadUrl ));
+-- m_renditions.push_back( rendition );
+-- }
+-+ string downloadUrl = GDRIVE_METADATA_LINK + getId( ) + "?alt=media";
+-+ string mimeType = getStringProperty( "cmis:contentStreamMimeType" );
+-+ if ( !mimeType.empty( ) )
+-+ {
+-+ RenditionPtr rendition(
+-+ new Rendition( mimeType, mimeType, mimeType, downloadUrl ));
+-+ m_renditions.push_back( rendition );
+- }
+-
+- vector< string > exportLinks = getMultiStringProperty( "exportLinks" );
+-@@ -192,7 +189,7 @@
+- {
+- vector< string > headers;
+- headers.push_back( "Content-Type: application/json" );
+-- response = getSession( )->httpPutRequest( getUrl( ), is, headers );
+-+ response = getSession( )->httpPatchRequest( getUrl( ), is, headers );
+- }
+- catch ( const CurlException& e )
+- {
+-@@ -228,7 +225,7 @@
+- {
+- try
+- {
+-- getSession( )->httpDeleteRequest( getUrl( ) );
+-+ getSession( )->httpDeleteRequest( GDRIVE_METADATA_LINK + getId( ) );
+- }
+- catch ( const CurlException& e )
+- {
+-@@ -239,8 +236,8 @@
+- void GDriveObject::move( FolderPtr /*source*/, FolderPtr destination )
+- {
+- Json parentsJson;
+-- Json parentsValue = GdriveUtils::createJsonFromParentId( destination->getId( ) );
+-- parentsJson.add( "parents", parentsValue );
+-+ parentsJson.add( "addParents", Json(destination->getId( ).c_str()) );
+-+ parentsJson.add( "removeParents", Json(getStringProperty( "cmis:parentId" ).c_str()) );
+-
+- istringstream is( parentsJson.toString( ) );
+- libcmis::HttpResponsePtr response;
+-@@ -248,7 +245,7 @@
+- {
+- vector< string > headers;
+- headers.push_back( "Content-Type: application/json" );
+-- response = getSession( )->httpPutRequest( getUrl( ), is, headers );
+-+ response = getSession( )->httpPatchRequest( getUrl( ), is, headers );
+- }
+- catch ( const CurlException& e )
+- {
+-@@ -262,12 +259,10 @@
+-
+- string GDriveObject::getUrl( )
+- {
+-- return getSession( )->getBindingUrl( ) + "/files/" + getId( );
+--}
+--
+--string GDriveObject::getUploadUrl( )
+--{
+-- return GDRIVE_UPLOAD_LINKS;
+-+ // thumbnailLink causes some operations to fail with internal server error,
+-+ // see https://issuetracker.google.com/issues/36760667
+-+ return GDRIVE_METADATA_LINK + getId( ) +
+-+ "?fields=kind,id,name,parents,mimeType,createdTime,modifiedTime,size";
+- }
+-
+- vector< string> GDriveObject::getMultiStringProperty( const string& propertyName )
+-diff -ur libcmis.org/src/libcmis/gdrive-repository.cxx libcmis/src/libcmis/gdrive-repository.cxx
+---- libcmis.org/src/libcmis/gdrive-repository.cxx 2021-07-27 19:11:02.676247009 +0200
+-+++ libcmis/src/libcmis/gdrive-repository.cxx 2021-07-27 19:11:18.874246420 +0200
+-@@ -35,7 +35,7 @@
+- m_name = "Google Drive";
+- m_description = "Google Drive repository";
+- m_productName = "Google Drive";
+-- m_productVersion = "v2";
+-+ m_productVersion = "v3";
+- m_rootId = "root";
+-
+- m_capabilities[ ACL ] = "discover";
+-diff -ur libcmis.org/src/libcmis/gdrive-session.cxx libcmis/src/libcmis/gdrive-session.cxx
+---- libcmis.org/src/libcmis/gdrive-session.cxx 2021-07-27 19:11:02.675247009 +0200
+-+++ libcmis/src/libcmis/gdrive-session.cxx 2021-07-27 19:11:18.874246420 +0200
+-@@ -124,9 +124,13 @@
+-
+- libcmis::ObjectPtr GDriveSession::getObject( string objectId )
+- {
+-+ if(objectId == "root") {
+-+ return getRootFolder();
+-+ }
+- // Run the http request to get the properties definition
+- string res;
+-- string objectLink = m_bindingUrl + "/files/" + objectId;
+-+ string objectLink = GDRIVE_METADATA_LINK + objectId +
+-+ "?fields=kind,id,name,parents,mimeType,createdTime,modifiedTime,thumbnailLink,size";
+- try
+- {
+- res = httpGetRequest( objectLink )->getStream()->str();
+-@@ -188,9 +192,10 @@
+- {
+- // Normal child case
+- // Ask for the ID of the child if there is any
+-- string childIdUrl = m_bindingUrl + "/files/" + objectId +
+-- "/children/?q=title+=+'" + segment +
+-- "'&fields=items:id";
+-+ // somewhat flawed as names are not necessarily unique in GDrive...
+-+ string query = libcmis::escape("'" + objectId + "' in parents and trashed = false and name='" + segment + "'");
+-+
+-+ string childIdUrl = m_bindingUrl + "/files/?q=" + query + "&fields=files(id)";
+-
+- string res;
+- try
+-@@ -204,7 +209,7 @@
+- Json jsonRes = Json::parse( res );
+-
+- // Did we get an id?
+-- Json::JsonVector items = jsonRes["items"].getList();
+-+ Json::JsonVector items = jsonRes["files"].getList();
+- if ( items.empty( ) )
+- throw libcmis::Exception( "Object not found: " + path, "objectNotFound" );
+-
+-@@ -219,6 +224,27 @@
+- return getObject( objectId );
+- }
+-
+-+libcmis::FolderPtr GDriveSession::getRootFolder()
+-+{
+-+ // permissions/scope with just drive.file don't allow to get it with the "root" alias/by its actual object-ID
+-+ Json propsJson;
+-+
+-+ // GDrive folder is a file with a different mime type.
+-+ string mimeType = GDRIVE_FOLDER_MIME_TYPE;
+-+
+-+ // Add mimetype to the propsJson
+-+ Json jsonMimeType( mimeType.c_str( ) );
+-+ propsJson.add( "mimeType", jsonMimeType );
+-+ propsJson.add( "id", "root" );
+-+
+-+ // Upload meta-datas
+-+ propsJson.add("cmis:name", "VirtualRoot");
+-+
+-+ libcmis::FolderPtr folderPtr( new GDriveFolder( this, propsJson ) );
+-+
+-+ return folderPtr;
+-+}
+-+
+- libcmis::ObjectTypePtr GDriveSession::getType( string id )
+- {
+- libcmis::ObjectTypePtr type( new GdriveObjectType( id ) );
+-diff -ur libcmis.org/src/libcmis/gdrive-session.hxx libcmis/src/libcmis/gdrive-session.hxx
+---- libcmis.org/src/libcmis/gdrive-session.hxx 2021-07-27 19:11:02.675247009 +0200
+-+++ libcmis/src/libcmis/gdrive-session.hxx 2021-07-27 19:11:18.875246420 +0200
+-@@ -57,6 +57,8 @@
+-
+- virtual std::vector< libcmis::ObjectTypePtr > getBaseTypes( );
+-
+-+ virtual libcmis::FolderPtr getRootFolder();
+-+
+- virtual std::string getRefreshToken();
+-
+- private:
+-diff -ur libcmis.org/src/libcmis/gdrive-utils.cxx libcmis/src/libcmis/gdrive-utils.cxx
+---- libcmis.org/src/libcmis/gdrive-utils.cxx 2021-07-27 19:11:02.677247008 +0200
+-+++ libcmis/src/libcmis/gdrive-utils.cxx 2021-07-27 19:11:18.875246420 +0200
+-@@ -44,17 +44,17 @@
+- convertedKey = "cmis:createdBy";
+- else if ( key == "description" )
+- convertedKey = "cmis:description";
+-- else if ( key == "createdDate" )
+-+ else if ( key == "createdTime" )
+- convertedKey = "cmis:creationDate";
+- else if ( key == "lastModifyingUserName" )
+- convertedKey = "cmis:lastModifiedBy";
+-- else if ( key == "modifiedDate" )
+-+ else if ( key == "modifiedTime" )
+- convertedKey = "cmis:lastModificationDate";
+-- else if ( key == "title" )
+-+ else if ( key == "name" )
+- convertedKey = "cmis:contentStreamFileName";
+- else if ( key == "mimeType" )
+- convertedKey = "cmis:contentStreamMimeType";
+-- else if ( key == "fileSize" )
+-+ else if ( key == "size" )
+- convertedKey = "cmis:contentStreamLength";
+- else if ( key == "editable" )
+- convertedKey = "cmis:isImmutable";
+-@@ -72,21 +72,21 @@
+- else if ( key == "cmis:createdBy" )
+- convertedKey = "ownerNames";
+- else if ( key == "cmis:creationDate" )
+-- convertedKey = "createdDate";
+-+ convertedKey = "createdTime";
+- else if ( key == "cmis:description" )
+- convertedKey = "description";
+- else if ( key == "cmis:lastModifiedBy" )
+- convertedKey = "lastModifyingUserName";
+- else if ( key == "cmis:lastModificationDate" )
+-- convertedKey = "modifiedDate";
+-+ convertedKey = "modifiedTime";
+- else if ( key == "cmis:contentStreamFileName" )
+-- convertedKey = "title";
+-+ convertedKey = "name";
+- else if ( key == "cmis:name" )
+-- convertedKey = "title";
+-+ convertedKey = "name";
+- else if ( key == "cmis:contentStreamMimeType" )
+- convertedKey = "mimeType";
+- else if ( key == "cmis:contentStreamLength" )
+-- convertedKey = "fileSize";
+-+ convertedKey = "size";
+- else if ( key == "cmis:isImmutable" )
+- convertedKey = "editable";
+- else if ( key == "cmis:parentId" )
+-@@ -124,9 +124,9 @@
+- bool GdriveUtils::checkUpdatable( const string& key )
+- {
+- // taken from https://developers.google.com/drive/v2/reference/files
+-- bool updatable = ( key == "title" ||
+-+ bool updatable = ( key == "name" ||
+- key == "description" ||
+-- key == "modifiedDate" ||
+-+ key == "modifiedTime" ||
+- key == "lastViewedByMeDate" );
+- return updatable;
+- }
+-@@ -143,18 +143,11 @@
+-
+- Json GdriveUtils::createJsonFromParentId( const string& parentId )
+- {
+-- Json parentValue( parentId.c_str( ) );
+--
+- // parents is a Json array
+- Json firstParent;
+-- firstParent.add( "id", parentValue );
+--
+-- Json::JsonVector parents;
+-- parents.insert( parents.begin( ), firstParent );
+-+ firstParent.add( Json( parentId.c_str() ) );
+-
+-- Json parentsValue( parents );
+--
+-- return parentsValue;
+-+ return firstParent;
+- }
+-
+- vector< string > GdriveUtils::parseGdriveProperty( string key, Json json )
+-diff -ur libcmis.org/src/libcmis/gdrive-utils.hxx libcmis/src/libcmis/gdrive-utils.hxx
+---- libcmis.org/src/libcmis/gdrive-utils.hxx 2021-07-27 19:11:02.677247008 +0200
+-+++ libcmis/src/libcmis/gdrive-utils.hxx 2021-07-27 19:11:18.875246420 +0200
+-@@ -35,7 +35,8 @@
+- #include "json-utils.hxx"
+-
+- static const std::string GDRIVE_FOLDER_MIME_TYPE = "application/vnd.google-apps.folder" ;
+--static const std::string GDRIVE_UPLOAD_LINKS = "https://www.googleapis.com/upload/drive/v2/files/";
+-+static const std::string GDRIVE_UPLOAD_LINK = "https://www.googleapis.com/upload/drive/v3/files/";
+-+static const std::string GDRIVE_METADATA_LINK = "https://www.googleapis.com/drive/v3/files/";
+-
+- class GdriveUtils
+- {
+-diff -ur libcmis.org/src/libcmis/oauth2-handler.cxx libcmis/src/libcmis/oauth2-handler.cxx
+---- libcmis.org/src/libcmis/oauth2-handler.cxx 2021-07-27 19:11:02.676247009 +0200
+-+++ libcmis/src/libcmis/oauth2-handler.cxx 2021-07-27 19:11:18.875246420 +0200
+-@@ -92,8 +92,11 @@
+- "code=" + authCode +
+- "&client_id=" + m_data->getClientId() +
+- "&redirect_uri=" + m_data->getRedirectUri() +
+-- "&scope=" + libcmis::escape( m_data->getScope() ) +
+- "&grant_type=authorization_code" ;
+-+ if(boost::starts_with(m_data->getTokenUrl(), "https://oauth2.googleapis.com/"))
+-+ post += "&client_secret=" + m_data->getClientSecret();
+-+ else
+-+ post += "&scope=" + libcmis::escape( m_data->getScope() );
+-
+- istringstream is( post );
+-
+-@@ -104,7 +107,7 @@
+- resp = m_session->httpPostRequest ( m_data->getTokenUrl(), is,
+- "application/x-www-form-urlencoded" );
+- }
+-- catch ( const CurlException& )
+-+ catch ( const CurlException& e)
+- {
+- throw libcmis::Exception(
+- "Couldn't get tokens from the authorization code ");
+-@@ -122,6 +125,8 @@
+- "refresh_token=" + m_refresh +
+- "&client_id=" + m_data->getClientId() +
+- "&grant_type=refresh_token" ;
+-+ if(boost::starts_with(m_data->getTokenUrl(), "https://oauth2.googleapis.com/"))
+-+ post += "&client_secret=" + m_data->getClientSecret();
+-
+- istringstream is( post );
+- libcmis::HttpResponsePtr resp;
+-@@ -130,7 +135,7 @@
+- resp = m_session->httpPostRequest( m_data->getTokenUrl( ), is,
+- "application/x-www-form-urlencoded" );
+- }
+-- catch (const CurlException& )
+-+ catch (const CurlException& e )
+- {
+- throw libcmis::Exception( "Couldn't refresh token ");
+- }
+-diff -ur libcmis.org/src/libcmis/oauth2-providers.cxx libcmis/src/libcmis/oauth2-providers.cxx
+---- libcmis.org/src/libcmis/oauth2-providers.cxx 2021-07-27 19:11:02.679247008 +0200
+-+++ libcmis/src/libcmis/oauth2-providers.cxx 2021-07-27 19:11:18.886246420 +0200
+-@@ -80,172 +80,8 @@
+-
+- }
+-
+--string OAuth2Providers::OAuth2Gdrive( HttpSession* session, const string& authUrl,
+-- const string& username, const string& password )
+--{
+-- /* This member function implements 'Google OAuth 2.0'
+-- *
+-- * The interaction is carried out by libcmis, with no web browser involved.
+-- *
+-- * Normal sequence (without 2FA) is:
+-- * 1) a get to activate login page
+-- * receive first login page, html format
+-- * 2) subsequent post to sent email
+-- * receive html page for password input
+-- * 3) subsequent post to send password
+-- * receive html page for application consent
+-- * 4) subsequent post to send a consent for the application
+-- * receive a single-use authorization code
+-- * this code is returned as a string
+-- *
+-- * Sequence with 2FA is:
+-- * 1) a get to activate login page
+-- * receive first login page, html format
+-- * 2) subsequent post to sent email
+-- * receive html page for password input
+-- * 3) subsequent post to send password
+-- * receive html page for pin input
+-- * 3b) subsequent post to send pin number
+-- * receive html page for application consent
+-- * 4) subsequent post to send a consent for the application
+-- * receive a single-use authorization code
+-- * this code is returned as a string
+-- */
+--
+-- static const string CONTENT_TYPE( "application/x-www-form-urlencoded" );
+-- // STEP 1: get login page
+-- string res;
+-- try
+-- {
+-- // send the first get, receive the html login page
+-- res = session->httpGetRequest( authUrl )->getStream( )->str( );
+-- }
+-- catch ( const CurlException& )
+-- {
+-- return string( );
+-- }
+--
+-- // STEP 2: send email
+--
+-- string loginEmailPost, loginEmailLink;
+-- if ( !parseResponse( res.c_str( ), loginEmailPost, loginEmailLink ) )
+-- return string( );
+--
+-- loginEmailPost += "Email=";
+-- loginEmailPost += escapeForm( username );
+--
+-- istringstream loginEmailIs( loginEmailPost );
+-- string loginEmailRes;
+-- try
+-- {
+-- // send a post with user email, receive the html page for password input
+-- loginEmailRes = session->httpPostRequest ( loginEmailLink, loginEmailIs, CONTENT_TYPE )
+-- ->getStream( )->str( );
+-- }
+-- catch ( const CurlException& )
+-- {
+-- return string( );
+-- }
+--
+-- // STEP 3: password page
+--
+-- string loginPasswdPost, loginPasswdLink;
+-- if ( !parseResponse( loginEmailRes.c_str( ), loginPasswdPost, loginPasswdLink ) )
+-- return string( );
+--
+-- loginPasswdPost += "Passwd=";
+-- loginPasswdPost += escapeForm( password );
+--
+-- istringstream loginPasswdIs( loginPasswdPost );
+-- string loginPasswdRes;
+-- try
+-- {
+-- // send a post with user password, receive the application consent page
+-- loginPasswdRes = session->httpPostRequest ( loginPasswdLink, loginPasswdIs, CONTENT_TYPE )
+-- ->getStream( )->str( );
+-- }
+-- catch ( const CurlException& )
+-- {
+-- return string( );
+-- }
+--
+-- string approvalPost, approvalLink;
+-- if ( !parseResponse( loginPasswdRes. c_str( ), approvalPost, approvalLink) )
+-- return string( );
+--
+-- // when 2FA is enabled, link doesn't start with 'http'
+-- if ( approvalLink.compare(0, 4, "http") != 0 )
+-- {
+-- // STEP 3b: 2 Factor Authentication, pin code request
+--
+-- string loginChallengePost( approvalPost );
+-- string loginChallengeLink( approvalLink );
+--
+-- libcmis::OAuth2AuthCodeProvider fallbackProvider = libcmis::SessionFactory::getOAuth2AuthCodeProvider( );
+-- unique_ptr< char, void (*)( void * ) > pin{ fallbackProvider( "", "", "" ), free };
+--
+-- if( !pin )
+-- {
+-- // unset OAuth2AuthCode Provider to avoid showing pin request again in the HttpSession::oauth2Authenticate
+-- libcmis::SessionFactory::setOAuth2AuthCodeProvider( NULL );
+-- return string( );
+-- }
+--
+-- loginChallengeLink = "https://accounts.google.com" + loginChallengeLink;
+-- loginChallengePost += string( PIN_INPUT_NAME ) + "=";
+-- loginChallengePost += string( pin.get() );
+--
+-- istringstream loginChallengeIs( loginChallengePost );
+-- string loginChallengeRes;
+-- try
+-- {
+-- // send a post with pin, receive the application consent page
+-- loginChallengeRes = session->httpPostRequest ( loginChallengeLink, loginChallengeIs, CONTENT_TYPE )
+-- ->getStream( )->str( );
+-- }
+-- catch ( const CurlException& )
+-- {
+-- return string( );
+-- }
+--
+-- approvalPost = string();
+-- approvalLink = string();
+--
+-- if ( !parseResponse( loginChallengeRes. c_str( ), approvalPost, approvalLink) )
+-- return string( );
+-- }
+-- else if( approvalLink.compare( "https://accounts.google.com/ServiceLoginAuth" ) == 0 )
+-- {
+-- // wrong password,
+-- // unset OAuth2AuthCode Provider to avoid showing pin request again in the HttpSession::oauth2Authenticate
+-- libcmis::SessionFactory::setOAuth2AuthCodeProvider( NULL );
+-- return string( );
+-- }
+--
+-- // STEP 4: allow libcmis to access google drive
+-- approvalPost += "submit_access=true";
+--
+-- istringstream approvalIs( approvalPost );
+-- string approvalRes;
+-- try
+-- {
+-- // send a post with application consent
+-- approvalRes = session->httpPostRequest ( approvalLink, approvalIs,
+-- CONTENT_TYPE) ->getStream( )->str( );
+-- }
+-- catch ( const CurlException& e )
+-- {
+-- throw e.getCmisException( );
+-- }
+--
+-- // Take the authentication code from the text bar
+-- string code = parseCode( approvalRes.c_str( ) );
+--
+-- return code;
+--}
+--
+--string OAuth2Providers::OAuth2Onedrive( HttpSession* /*session*/, const string& /*authUrl*/,
+-- const string& /*username*/, const string& /*password*/ )
+-+string OAuth2Providers::OAuth2Dummy( HttpSession* /*session*/, const string& /*authUrl*/,
+-+ const string& /*username*/, const string& /*password*/ )
+- {
+- return string( );
+- }
+-@@ -314,12 +150,8 @@
+- // For Alfresco in the cloud, only match the hostname as there can be several
+- // binding URLs created with it.
+- return OAuth2Alfresco;
+-- else if ( boost::starts_with( url, "https://www.googleapis.com/drive/v2" ) )
+-- return OAuth2Gdrive;
+-- else if ( boost::starts_with( url, "https://graph.microsoft.com/v1.0" ) )
+-- return OAuth2Onedrive;
+-
+-- return OAuth2Gdrive;
+-+ return OAuth2Dummy;
+- }
+-
+- int OAuth2Providers::parseResponse ( const char* response, string& post, string& link )
+-diff -ur libcmis.org/src/libcmis/oauth2-providers.hxx libcmis/src/libcmis/oauth2-providers.hxx
+---- libcmis.org/src/libcmis/oauth2-providers.hxx 2021-07-27 19:11:02.678247008 +0200
+-+++ libcmis/src/libcmis/oauth2-providers.hxx 2021-07-27 19:11:18.886246420 +0200
+-@@ -39,12 +39,8 @@
+- class OAuth2Providers
+- {
+- public :
+-- static std::string OAuth2Gdrive( HttpSession* session, const std::string& authUrl,
+-+ static std::string OAuth2Dummy( HttpSession* session, const std::string& authUrl,
+- const std::string& username, const std::string& password );
+--
+-- static std::string OAuth2Onedrive( HttpSession* session, const std::string& authUrl,
+-- const std::string& username, const std::string& password );
+--
+- static std::string OAuth2Alfresco( HttpSession* session, const std::string& authUrl,
+- const std::string& username, const std::string& password );
+-
+-diff -ur libcmis.org/src/libcmis/session-factory.cxx libcmis/src/libcmis/session-factory.cxx
+---- libcmis.org/src/libcmis/session-factory.cxx 2021-07-27 19:11:02.679247008 +0200
+-+++ libcmis/src/libcmis/session-factory.cxx 2021-07-27 19:11:18.886246420 +0200
+-@@ -66,7 +66,7 @@
+- if ( !bindingUrl.empty( ) )
+- {
+- // Try the special cases based on the binding URL
+-- if ( bindingUrl == "https://www.googleapis.com/drive/v2" )
+-+ if ( bindingUrl == "https://www.googleapis.com/drive/v3" )
+- {
+- session = new GDriveSession( bindingUrl, username, password,
+- oauth2, verbose );
+diff --git a/external/libcmis/libcmis_oauth_pw_as_refreshtoken.patch.1 b/external/libcmis/libcmis_oauth_pw_as_refreshtoken.patch.1
+deleted file mode 100644
+index a8cb06509421..000000000000
+--- a/external/libcmis/libcmis_oauth_pw_as_refreshtoken.patch.1
++++ /dev/null
+@@ -1,185 +0,0 @@
+-diff -ur libcmis.org/inc/libcmis/session.hxx libcmis/inc/libcmis/session.hxx
+---- libcmis.org/inc/libcmis/session.hxx 2021-07-27 19:09:42.580249917 +0200
+-+++ libcmis/inc/libcmis/session.hxx 2021-07-27 19:10:02.368249199 +0200
+-@@ -95,6 +95,8 @@
+- certificate exception feature available on common web browser.
+- */
+- virtual void setNoSSLCertificateCheck( bool noCheck ) = 0;
+-+
+-+ virtual std::string getRefreshToken() { return ""; };
+- };
+- }
+-
+-diff -ur libcmis.org/src/libcmis/gdrive-session.cxx libcmis/src/libcmis/gdrive-session.cxx
+---- libcmis.org/src/libcmis/gdrive-session.cxx 2021-07-27 19:09:42.581249917 +0200
+-+++ libcmis/src/libcmis/gdrive-session.cxx 2021-07-27 19:10:02.369249198 +0200
+-@@ -70,6 +70,46 @@
+- {
+- }
+-
+-+
+-+void GDriveSession::setOAuth2Data( libcmis::OAuth2DataPtr oauth2 )
+-+{
+-+ m_oauth2Handler = new OAuth2Handler( this, oauth2 );
+-+ m_oauth2Handler->setOAuth2Parser( OAuth2Providers::getOAuth2Parser( getBindingUrl( ) ) );
+-+
+-+ oauth2Authenticate( );
+-+}
+-+
+-+void GDriveSession::oauth2Authenticate()
+-+{
+-+ // treat the supplied password as refresh token
+-+ if (!m_password.empty())
+-+ {
+-+ try
+-+ {
+-+ m_inOAuth2Authentication = true;
+-+
+-+ m_oauth2Handler->setRefreshToken(m_password);
+-+ // Try to get new access tokens using the stored refreshtoken
+-+ m_oauth2Handler->refresh();
+-+ m_inOAuth2Authentication = false;
+-+ }
+-+ catch (const CurlException &e)
+-+ {
+-+ m_inOAuth2Authentication = false;
+-+ // refresh token expired or invalid, trigger initial auth (that in turn will hit the fallback with copy'n'paste method)
+-+ BaseSession::oauth2Authenticate();
+-+ }
+-+ }
+-+ else
+-+ {
+-+ BaseSession::oauth2Authenticate();
+-+ }
+-+}
+-+
+-+string GDriveSession::getRefreshToken() {
+-+ return HttpSession::getRefreshToken();
+-+}
+-+
+- libcmis::RepositoryPtr GDriveSession::getRepository( )
+- {
+- // Return a dummy repository since GDrive doesn't have that notion
+-diff -ur libcmis.org/src/libcmis/gdrive-session.hxx libcmis/src/libcmis/gdrive-session.hxx
+---- libcmis.org/src/libcmis/gdrive-session.hxx 2021-07-27 19:09:42.583249917 +0200
+-+++ libcmis/src/libcmis/gdrive-session.hxx 2021-07-27 19:10:02.369249198 +0200
+-@@ -57,8 +57,14 @@
+-
+- virtual std::vector< libcmis::ObjectTypePtr > getBaseTypes( );
+-
+-+ virtual std::string getRefreshToken();
+-+
+- private:
+- GDriveSession( );
+-+
+-+ virtual void setOAuth2Data( libcmis::OAuth2DataPtr oauth2 );
+-+
+-+ void oauth2Authenticate( );
+- };
+-
+- #endif /* _GDRIVE_SESSION_HXX_ */
+-diff -ur libcmis.org/src/libcmis/http-session.hxx libcmis/src/libcmis/http-session.hxx
+---- libcmis.org/src/libcmis/http-session.hxx 2021-07-27 19:09:42.582249917 +0200
+-+++ libcmis/src/libcmis/http-session.hxx 2021-07-27 19:10:02.369249198 +0200
+-@@ -148,7 +148,7 @@
+-
+- void setNoSSLCertificateCheck( bool noCheck );
+-
+-- std::string getRefreshToken( );
+-+ virtual std::string getRefreshToken( );
+-
+- protected:
+- HttpSession( );
+-diff -ur libcmis.org/src/libcmis/oauth2-handler.cxx libcmis/src/libcmis/oauth2-handler.cxx
+---- libcmis.org/src/libcmis/oauth2-handler.cxx 2021-07-27 19:09:42.582249917 +0200
+-+++ libcmis/src/libcmis/oauth2-handler.cxx 2021-07-27 19:10:02.369249198 +0200
+-@@ -158,6 +158,11 @@
+- return m_refresh;
+- }
+-
+-+void OAuth2Handler::setRefreshToken( string refreshToken )
+-+{
+-+ m_refresh = refreshToken;
+-+}
+-+
+- string OAuth2Handler::getHttpHeader( )
+- {
+- string header;
+-diff -ur libcmis.org/src/libcmis/oauth2-handler.hxx libcmis/src/libcmis/oauth2-handler.hxx
+---- libcmis.org/src/libcmis/oauth2-handler.hxx 2021-07-27 19:09:42.582249917 +0200
+-+++ libcmis/src/libcmis/oauth2-handler.hxx 2021-07-27 19:10:02.370249198 +0200
+-@@ -61,6 +61,7 @@
+-
+- std::string getAccessToken( ) ;
+- std::string getRefreshToken( ) ;
+-+ void setRefreshToken( std::string refreshToken ) ;
+-
+- // adding HTTP auth header
+- std::string getHttpHeader( ) ;
+-diff -ur libcmis.org/src/libcmis/onedrive-session.cxx libcmis/src/libcmis/onedrive-session.cxx
+---- libcmis.org/src/libcmis/onedrive-session.cxx 2021-07-27 19:09:42.583249917 +0200
+-+++ libcmis/src/libcmis/onedrive-session.cxx 2021-07-27 19:10:02.370249198 +0200
+-@@ -68,6 +68,45 @@
+- {
+- }
+-
+-+void OneDriveSession::setOAuth2Data( libcmis::OAuth2DataPtr oauth2 )
+-+{
+-+ m_oauth2Handler = new OAuth2Handler( this, oauth2 );
+-+ m_oauth2Handler->setOAuth2Parser( OAuth2Providers::getOAuth2Parser( getBindingUrl( ) ) );
+-+
+-+ oauth2Authenticate( );
+-+}
+-+
+-+void OneDriveSession::oauth2Authenticate()
+-+{
+-+ // treat the supplied password as refresh token
+-+ if (!m_password.empty())
+-+ {
+-+ try
+-+ {
+-+ m_inOAuth2Authentication = true;
+-+
+-+ m_oauth2Handler->setRefreshToken(m_password);
+-+ // Try to get new access tokens using the stored refreshtoken
+-+ m_oauth2Handler->refresh();
+-+ m_inOAuth2Authentication = false;
+-+ }
+-+ catch (const CurlException &e)
+-+ {
+-+ m_inOAuth2Authentication = false;
+-+ // refresh token expired or invalid, trigger initial auth (that in turn will hit the fallback with copy'n'paste method)
+-+ BaseSession::oauth2Authenticate();
+-+ }
+-+ }
+-+ else
+-+ {
+-+ BaseSession::oauth2Authenticate();
+-+ }
+-+}
+-+
+-+string OneDriveSession::getRefreshToken() {
+-+ return HttpSession::getRefreshToken();
+-+}
+-+
+- libcmis::RepositoryPtr OneDriveSession::getRepository( )
+- {
+- // Return a dummy repository since OneDrive doesn't have that notion
+-diff -ur libcmis.org/src/libcmis/onedrive-session.hxx libcmis/src/libcmis/onedrive-session.hxx
+---- libcmis.org/src/libcmis/onedrive-session.hxx 2021-07-27 19:09:42.583249917 +0200
+-+++ libcmis/src/libcmis/onedrive-session.hxx 2021-07-27 19:10:02.370249198 +0200
+-@@ -62,8 +62,14 @@
+-
+- bool isAPathMatch( Json objectJson, std::string path );
+-
+-+ virtual std::string getRefreshToken();
+-+
+- private:
+- OneDriveSession( );
+-+
+-+ virtual void setOAuth2Data( libcmis::OAuth2DataPtr oauth2 );
+-+
+-+ void oauth2Authenticate( );
+- };
+-
+- #endif /* _ONEDRIVE_SESSION_HXX_ */
+diff --git a/officecfg/registry/data/org/openoffice/Office/Common.xcu b/officecfg/registry/data/org/openoffice/Office/Common.xcu
+index f543b6ebb3c9..24be0a7f2830 100644
+--- a/officecfg/registry/data/org/openoffice/Office/Common.xcu
++++ b/officecfg/registry/data/org/openoffice/Office/Common.xcu
+@@ -434,7 +434,7 @@
+ </prop>
+ <prop oor:name="CmisServersUrls">
+ <value>
+- <it>https://www.googleapis.com/drive/v3</it>
++ <it>https://www.googleapis.com/drive/v2</it>
+ <it>https://graph.microsoft.com/v1.0</it>
+ <it>https://api.alfresco.com/cmis/versions/1.0/atom/</it>
+ <it></it>
+diff --git a/ucb/source/ucp/cmis/auth_provider.cxx b/ucb/source/ucp/cmis/auth_provider.cxx
+index c3f99f5f3de5..0f5f45596adc 100644
+--- a/ucb/source/ucp/cmis/auth_provider.cxx
++++ b/ucb/source/ucp/cmis/auth_provider.cxx
+@@ -11,10 +11,7 @@
+ #define STD_TO_OUSTR( str ) OUString( str.c_str(), str.length( ), RTL_TEXTENCODING_UTF8 )
+
+ #include <com/sun/star/task/XInteractionHandler.hpp>
+-#include <com/sun/star/task/PasswordContainer.hpp>
+-#include <com/sun/star/task/XPasswordContainer2.hpp>
+
+-#include <comphelper/processfactory.hxx>
+ #include <ucbhelper/simpleauthenticationrequest.hxx>
+ #include <ucbhelper/authenticationfallback.hxx>
+
+@@ -66,91 +63,6 @@ namespace cmis
+ return false;
+ }
+
+- std::string AuthProvider::getRefreshToken(std::string& rUsername)
+- {
+- std::string refreshToken;
+- const css::uno::Reference<css::ucb::XCommandEnvironment> xEnv = getXEnv();
+- if (xEnv.is())
+- {
+- uno::Reference<task::XInteractionHandler> xIH = xEnv->getInteractionHandler();
+-
+- if (rUsername.empty())
+- {
+- rtl::Reference<ucbhelper::SimpleAuthenticationRequest> xRequest
+- = new ucbhelper::SimpleAuthenticationRequest(
+- m_sUrl, m_sBindingUrl,
+- ucbhelper::SimpleAuthenticationRequest::EntityType::ENTITY_NA, OUString(),
+- ucbhelper::SimpleAuthenticationRequest::EntityType::ENTITY_MODIFY,
+- STD_TO_OUSTR(rUsername),
+- ucbhelper::SimpleAuthenticationRequest::EntityType::ENTITY_NA, OUString());
+- xIH->handle(xRequest);
+-
+- rtl::Reference<ucbhelper::InteractionContinuation> xSelection
+- = xRequest->getSelection();
+-
+- if (xSelection.is())
+- {
+- // Handler handled the request.
+- uno::Reference<task::XInteractionAbort> xAbort(xSelection.get(),
+- uno::UNO_QUERY);
+- if (!xAbort.is())
+- {
+- const rtl::Reference<ucbhelper::InteractionSupplyAuthentication>& xSupp
+- = xRequest->getAuthenticationSupplier();
+-
+- rUsername = OUSTR_TO_STDSTR(xSupp->getUserName());
+- }
+- }
+- }
+-
+- uno::Reference<uno::XComponentContext> xContext
+- = ::comphelper::getProcessComponentContext();
+- uno::Reference<task::XPasswordContainer2> xMasterPasswd
+- = task::PasswordContainer::create(xContext);
+- if (xMasterPasswd->hasMasterPassword())
+- {
+- xMasterPasswd->authorizateWithMasterPassword(xIH);
+- }
+- if (xMasterPasswd->isPersistentStoringAllowed())
+- {
+- task::UrlRecord aRec
+- = xMasterPasswd->findForName(m_sBindingUrl, STD_TO_OUSTR(rUsername), xIH);
+- if (aRec.UserList.hasElements() && aRec.UserList[0].Passwords.hasElements())
+- refreshToken = OUSTR_TO_STDSTR(aRec.UserList[0].Passwords[0]);
+- }
+- }
+- return refreshToken;
+- }
+-
+- bool AuthProvider::storeRefreshToken(const std::string& username, const std::string& password,
+- const std::string& refreshToken)
+- {
+- if (refreshToken.empty())
+- return false;
+- if (password == refreshToken)
+- return true;
+- const css::uno::Reference<css::ucb::XCommandEnvironment> xEnv = getXEnv();
+- if (xEnv.is())
+- {
+- uno::Reference<task::XInteractionHandler> xIH = xEnv->getInteractionHandler();
+- uno::Reference<uno::XComponentContext> xContext
+- = ::comphelper::getProcessComponentContext();
+- uno::Reference<task::XPasswordContainer2> xMasterPasswd
+- = task::PasswordContainer::create(xContext);
+- uno::Sequence<OUString> aPasswd{ STD_TO_OUSTR(refreshToken) };
+- if (xMasterPasswd->isPersistentStoringAllowed())
+- {
+- if (xMasterPasswd->hasMasterPassword())
+- {
+- xMasterPasswd->authorizateWithMasterPassword(xIH);
+- }
+- xMasterPasswd->addPersistent(m_sBindingUrl, STD_TO_OUSTR(username), aPasswd, xIH);
+- return true;
+- }
+- }
+- return false;
+- }
+-
+ css::uno::WeakReference< css::ucb::XCommandEnvironment> AuthProvider::sm_xEnv;
+
+ void AuthProvider::setXEnv(const css::uno::Reference< css::ucb::XCommandEnvironment>& xEnv )
+@@ -163,7 +75,7 @@ namespace cmis
+ return sm_xEnv;
+ }
+
+- char* AuthProvider::copyWebAuthCodeFallback( const char* url,
++ char* AuthProvider::onedriveAuthCodeFallback( const char* url,
+ const char* /*username*/,
+ const char* /*password*/ )
+ {
+@@ -207,6 +119,46 @@ namespace cmis
+
+ return strdup( "" );
+ }
++
++ char* AuthProvider::gdriveAuthCodeFallback( const char* /*url*/,
++ const char* /*username*/,
++ const char* /*password*/ )
++ {
++ const css::uno::Reference<
++ css::ucb::XCommandEnvironment> xEnv = getXEnv( );
++
++ if ( xEnv.is() )
++ {
++ uno::Reference< task::XInteractionHandler > xIH
++ = xEnv->getInteractionHandler();
++
++ if ( xIH.is() )
++ {
++ rtl::Reference< ucbhelper::AuthenticationFallbackRequest > xRequest
++ = new ucbhelper::AuthenticationFallbackRequest (
++ "PIN:", "" );
++
++ xIH->handle( xRequest );
++
++ rtl::Reference< ucbhelper::InteractionContinuation > xSelection
++ = xRequest->getSelection();
++
++ if ( xSelection.is() )
++ {
++ // Handler handled the request.
++ const rtl::Reference< ucbhelper::InteractionAuthFallback >&
++ xAuthFallback = xRequest->getAuthFallbackInter( );
++ if ( xAuthFallback.is() )
++ {
++ OUString code = xAuthFallback->getCode( );
++ return strdup( OUSTR_TO_STDSTR( code ).c_str( ) );
++ }
++ }
++ }
++ }
++
++ return strdup( "" );
++ }
+ }
+
+ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
+diff --git a/ucb/source/ucp/cmis/auth_provider.hxx b/ucb/source/ucp/cmis/auth_provider.hxx
+index 9092f3c6bd25..d9864c45b230 100644
+--- a/ucb/source/ucp/cmis/auth_provider.hxx
++++ b/ucb/source/ucp/cmis/auth_provider.hxx
+@@ -38,11 +38,11 @@ namespace cmis
+
+ bool authenticationQuery( std::string& username, std::string& password ) override;
+
+- std::string getRefreshToken( std::string& username );
+- bool storeRefreshToken(const std::string& username, const std::string& password,
+- const std::string& refreshToken);
++ static char* onedriveAuthCodeFallback( const char* url,
++ const char* /*username*/,
++ const char* /*password*/ );
+
+- static char* copyWebAuthCodeFallback( const char* url,
++ static char* gdriveAuthCodeFallback( const char* /*url*/,
+ const char* /*username*/,
+ const char* /*password*/ );
+
+diff --git a/ucb/source/ucp/cmis/cmis_content.cxx b/ucb/source/ucp/cmis/cmis_content.cxx
+index 7980a1821bba..93f43f4540a6 100644
+--- a/ucb/source/ucp/cmis/cmis_content.cxx
++++ b/ucb/source/ucp/cmis/cmis_content.cxx
+@@ -343,15 +343,12 @@ namespace cmis
+ auto rPassword = OUSTR_TO_STDSTR( m_aURL.getPassword( ) );
+
+ bool bSkipInitialPWAuth = false;
+- if (m_aURL.getBindingUrl() == ONEDRIVE_BASE_URL
+- || m_aURL.getBindingUrl() == GDRIVE_BASE_URL)
+- {
++ if ( m_aURL.getBindingUrl( ) == ONEDRIVE_BASE_URL ) {
+ // skip the initial username and pw-auth prompt, the only supported method is the
+ // auth-code-fallback one (login with your browser, copy code into the dialog)
+ // TODO: if LO were to listen on localhost for the request, it would be much nicer
+ // user experience
+ bSkipInitialPWAuth = true;
+- rPassword = aAuthProvider.getRefreshToken(rUsername);
+ }
+
+ bool bIsDone = false;
+@@ -364,9 +361,7 @@ namespace cmis
+ libcmis::OAuth2DataPtr oauth2Data;
+ if ( m_aURL.getBindingUrl( ) == GDRIVE_BASE_URL )
+ {
+- // reset the skip, so user gets a chance to cancel
+- bSkipInitialPWAuth = false;
+- libcmis::SessionFactory::setOAuth2AuthCodeProvider(AuthProvider::copyWebAuthCodeFallback);
++ libcmis::SessionFactory::setOAuth2AuthCodeProvider(AuthProvider::gdriveAuthCodeFallback);
+ oauth2Data = boost::make_shared<libcmis::OAuth2Data>(
+ GDRIVE_AUTH_URL, GDRIVE_TOKEN_URL,
+ GDRIVE_SCOPE, GDRIVE_REDIRECT_URI,
+@@ -379,9 +374,7 @@ namespace cmis
+ ALFRESCO_CLOUD_CLIENT_ID, ALFRESCO_CLOUD_CLIENT_SECRET );
+ if ( m_aURL.getBindingUrl( ) == ONEDRIVE_BASE_URL )
+ {
+- // reset the skip, so user gets a chance to cancel
+- bSkipInitialPWAuth = false;
+- libcmis::SessionFactory::setOAuth2AuthCodeProvider(AuthProvider::copyWebAuthCodeFallback);
++ libcmis::SessionFactory::setOAuth2AuthCodeProvider(AuthProvider::onedriveAuthCodeFallback);
+ oauth2Data = boost::make_shared<libcmis::OAuth2Data>(
+ ONEDRIVE_AUTH_URL, ONEDRIVE_TOKEN_URL,
+ ONEDRIVE_SCOPE, ONEDRIVE_REDIRECT_URI,
+@@ -413,12 +406,6 @@ namespace cmis
+ else
+ {
+ m_pProvider->registerSession(sSessionId, m_aURL.getUsername( ), m_pSession);
+- if (m_aURL.getBindingUrl() == ONEDRIVE_BASE_URL
+- || m_aURL.getBindingUrl() == GDRIVE_BASE_URL)
+- {
+- aAuthProvider.storeRefreshToken(rUsername, rPassword,
+- m_pSession->getRefreshToken());
+- }
+ }
+
+ bIsDone = true;
+@@ -426,10 +413,7 @@ namespace cmis
+ catch( const libcmis::Exception & e )
+ {
+ if ( e.getType() != "permissionDenied" )
+- {
+- SAL_INFO("ucb.ucp.cmis", "Unexpected libcmis exception: " << e.what());
+ throw;
+- }
+ }
+ }
+ else
+@@ -521,7 +505,6 @@ namespace cmis
+ }
+ catch ( const libcmis::Exception& )
+ {
+- SAL_INFO( "ucb.ucp.cmis", "object: " << OUSTR_TO_STDSTR(m_sObjectId));
+ throw libcmis::Exception( "Object not found" );
+ }
+ }
+diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
+index c55b670526b8..d2945ddeb8f5 100644
+--- a/ucb/source/ucp/cmis/cmis_repo_content.cxx
++++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx
+@@ -168,7 +168,7 @@ namespace cmis
+ libcmis::OAuth2DataPtr oauth2Data;
+ if ( m_aURL.getBindingUrl( ) == GDRIVE_BASE_URL )
+ {
+- libcmis::SessionFactory::setOAuth2AuthCodeProvider( AuthProvider::copyWebAuthCodeFallback );
++ libcmis::SessionFactory::setOAuth2AuthCodeProvider( AuthProvider::gdriveAuthCodeFallback );
+ oauth2Data = boost::make_shared<libcmis::OAuth2Data>(
+ GDRIVE_AUTH_URL, GDRIVE_TOKEN_URL,
+ GDRIVE_SCOPE, GDRIVE_REDIRECT_URI,
+@@ -181,7 +181,7 @@ namespace cmis
+ ALFRESCO_CLOUD_CLIENT_ID, ALFRESCO_CLOUD_CLIENT_SECRET );
+ if ( m_aURL.getBindingUrl( ) == ONEDRIVE_BASE_URL )
+ {
+- libcmis::SessionFactory::setOAuth2AuthCodeProvider( AuthProvider::copyWebAuthCodeFallback );
++ libcmis::SessionFactory::setOAuth2AuthCodeProvider( AuthProvider::onedriveAuthCodeFallback );
+ oauth2Data = boost::make_shared<libcmis::OAuth2Data>(
+ ONEDRIVE_AUTH_URL, ONEDRIVE_TOKEN_URL,
+ ONEDRIVE_SCOPE, ONEDRIVE_REDIRECT_URI,
+--
+2.33.1
+
diff --git a/0001-aarch64-failing-here.patch b/0001-aarch64-failing-here.patch
new file mode 100644
index 0000000..a2e22de
--- /dev/null
+++ b/0001-aarch64-failing-here.patch
@@ -0,0 +1,33 @@
+From 52792b066bc98ae2a0813f5713756aff47a17910 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
+Date: Thu, 19 Jan 2023 19:50:35 +0000
+Subject: [PATCH] aarch64 failing here
+
+Change-Id: I5f9b28814424cb3c490308875182ea675ec73866
+---
+ sw/qa/extras/htmlimport/htmlimport.cxx | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/sw/qa/extras/htmlimport/htmlimport.cxx b/sw/qa/extras/htmlimport/htmlimport.cxx
+index c97d4e4cbde4..7ff74bd32d02 100644
+--- a/sw/qa/extras/htmlimport/htmlimport.cxx
++++ b/sw/qa/extras/htmlimport/htmlimport.cxx
+@@ -299,6 +299,7 @@ CPPUNIT_TEST_FIXTURE(HtmlImportTest, testTableBorder1px)
+ CPPUNIT_ASSERT_MESSAGE("Missing cell right border", aBorder.InnerLineWidth > 0);
+ }
+
++#if 0
+ CPPUNIT_TEST_FIXTURE(HtmlImportTest, testOutlineLevel)
+ {
+ createSwWebDoc("outline-level.html");
+@@ -307,6 +308,7 @@ CPPUNIT_TEST_FIXTURE(HtmlImportTest, testOutlineLevel)
+ CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(1),
+ getProperty<sal_Int32>(getParagraph(1), "OutlineLevel"));
+ }
++#endif
+
+ CPPUNIT_TEST_FIXTURE(HtmlImportTest, testReqIfBr)
+ {
+--
+2.39.0
+
diff --git a/0001-default-to-sifr-for-gnome-light-mode.patch b/0001-default-to-sifr-for-gnome-light-mode.patch
new file mode 100644
index 0000000..01617ff
--- /dev/null
+++ b/0001-default-to-sifr-for-gnome-light-mode.patch
@@ -0,0 +1,58 @@
+From ffceb48dd576ababe346c9548b12ca18f31d3293 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
+Date: Fri, 10 Mar 2023 11:41:45 +0000
+Subject: [PATCH] default to sifr for gnome light mode
+
+https://pagure.io/fedora-workstation/issue/361
+
+"Fedora Workstation currently uses the rather outdated-looking
+Elementary icon theme for LibreOffice, instead of the Sifr icon theme
+which was designed to fit in with GNOME's icons. The Sifr theme saw a
+nice update with LibreOffice 7.5, the version being shipped in Fedora
+Linux 38, which makes the icons fit better with the current GNOME design
+language."
+
+Change-Id: Ic37bbe8e7ad754ab070ead06dc0b006c6ccf3adb
+---
+ vcl/qa/cppunit/app/test_IconThemeSelector.cxx | 4 ++--
+ vcl/source/app/IconThemeSelector.cxx | 2 +-
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/vcl/qa/cppunit/app/test_IconThemeSelector.cxx b/vcl/qa/cppunit/app/test_IconThemeSelector.cxx
+index 72ee344b1437..8d1aea0c3889 100644
+--- a/vcl/qa/cppunit/app/test_IconThemeSelector.cxx
++++ b/vcl/qa/cppunit/app/test_IconThemeSelector.cxx
+@@ -85,7 +85,7 @@ IconThemeSelectorTest::ElementaryIsReturnedForGnomeDesktop()
+ std::vector<vcl::IconThemeInfo> themes = GetFakeInstalledThemes();
+ vcl::IconThemeSelector s;
+ OUString r = s.SelectIconThemeForDesktopEnvironment(themes, "gnome");
+- CPPUNIT_ASSERT_EQUAL_MESSAGE("'elementary' theme is returned for gnome desktop", OUString("elementary"), r);
++ CPPUNIT_ASSERT_EQUAL_MESSAGE("'sifr' theme is returned for gnome desktop", OUString("sifr"), r);
+ }
+
+ void
+@@ -96,7 +96,7 @@ IconThemeSelectorTest::ThemeIsOverriddenByPreferredTheme()
+ s.SetPreferredIconTheme(preferred, false);
+ std::vector<vcl::IconThemeInfo> themes = GetFakeInstalledThemes();
+ OUString selected = s.SelectIconThemeForDesktopEnvironment(themes, "gnome");
+- CPPUNIT_ASSERT_EQUAL_MESSAGE("'elementary' theme is overridden by breeze", preferred, selected);
++ CPPUNIT_ASSERT_EQUAL_MESSAGE("'sifr' theme is overridden by breeze", preferred, selected);
+ }
+
+ void
+diff --git a/vcl/source/app/IconThemeSelector.cxx b/vcl/source/app/IconThemeSelector.cxx
+index 6b8dfc0f42c7..ee30e577f3f5 100644
+--- a/vcl/source/app/IconThemeSelector.cxx
++++ b/vcl/source/app/IconThemeSelector.cxx
+@@ -86,7 +86,7 @@ IconThemeSelector::GetIconThemeForDesktopEnvironment(const OUString& desktopEnvi
+ desktopEnvironment.equalsIgnoreAsciiCase("mate") ||
+ desktopEnvironment.equalsIgnoreAsciiCase("unity") ) {
+ if (!bPreferDarkIconTheme)
+- r = "elementary";
++ r = "sifr";
+ else
+ r = "sifr_dark";
+ } else
+--
+2.40.1
+
diff --git a/0001-disable-libe-book-support.patch b/0001-disable-libe-book-support.patch
new file mode 100644
index 0000000..2142734
--- /dev/null
+++ b/0001-disable-libe-book-support.patch
@@ -0,0 +1,145 @@
+From 0b613b941c3ffbe432934269f8865bc1f9e59cde Mon Sep 17 00:00:00 2001
+From: rpm-build <rpm-build>
+Date: Tue, 27 Sep 2022 15:13:59 -0700
+Subject: [PATCH] disable libe-book support
+
+---
+ configure.ac | 3 ---
+ external/Module_external.mk | 1 -
+ filter/Configuration_filter.mk | 8 --------
+ writerperfect/Library_wpftwriter.mk | 2 --
+ writerperfect/qa/unit/WpftFilterFixture.hxx | 4 ----
+ writerperfect/qa/unit/WpftWriterFilterTest.cxx | 5 -----
+ writerperfect/source/writer/wpftwriter.component | 6 ------
+ 7 files changed, 29 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 8babc85..e7733de 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -9606,9 +9606,6 @@ libo_PKG_VERSION([ETONYEK], [libetonyek-0.1], [0.1.10])
+
+ libo_CHECK_SYSTEM_MODULE([libfreehand],[FREEHAND],[libfreehand-0.1])
+
+-libo_CHECK_SYSTEM_MODULE([libebook],[EBOOK],[libe-book-0.1])
+-libo_PKG_VERSION([EBOOK], [libe-book-0.1], [0.1.2])
+-
+ libo_CHECK_SYSTEM_MODULE([libabw],[ABW],[libabw-0.1])
+
+ libo_CHECK_SYSTEM_MODULE([libpagemaker],[PAGEMAKER],[libpagemaker-0.0])
+diff --git a/external/Module_external.mk b/external/Module_external.mk
+index 366fff2..bc987d1 100644
+--- a/external/Module_external.mk
++++ b/external/Module_external.mk
+@@ -31,7 +31,6 @@ $(eval $(call gb_Module_add_moduledirs,external,\
+ $(call gb_Helper_optional,CURL,curl) \
+ $(call gb_Helper_optional,DRAGONBOX,dragonbox) \
+ dtoa \
+- $(call gb_Helper_optional,EBOOK,libebook) \
+ $(call gb_Helper_optional,EPM,epm) \
+ $(call gb_Helper_optional,EPOXY,epoxy) \
+ $(call gb_Helper_optional,EPUBGEN,libepubgen) \
+diff --git a/filter/Configuration_filter.mk b/filter/Configuration_filter.mk
+index a58b839..526b447 100644
+--- a/filter/Configuration_filter.mk
++++ b/filter/Configuration_filter.mk
+@@ -359,10 +359,6 @@ $(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_writer_types.xcu
+ writer_OOXML_Template \
+ writer_layout_dump_xml \
+ writer_indexing_export_xml \
+- writer_BroadBand_eBook \
+- writer_FictionBook_2 \
+- writer_PalmDoc \
+- writer_Plucker_eBook \
+ writer_ApplePages \
+ MWAW_Text_Document \
+ Palm_Text_Document \
+@@ -409,10 +405,6 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writer_filters
+ OOXML_Text_Template \
+ writer_layout_dump \
+ writer_indexing_export \
+- BroadBand_eBook \
+- FictionBook_2 \
+- PalmDoc \
+- Plucker_eBook \
+ ApplePages \
+ MWAW_Text_Document \
+ Palm_Text_Document \
+diff --git a/writerperfect/Library_wpftwriter.mk b/writerperfect/Library_wpftwriter.mk
+index 840a86f..70a8933 100644
+--- a/writerperfect/Library_wpftwriter.mk
++++ b/writerperfect/Library_wpftwriter.mk
+@@ -64,7 +64,6 @@ endif
+ $(eval $(call gb_Library_use_externals,wpftwriter,\
+ abw \
+ boost_headers \
+- ebook \
+ $(if $(ENABLE_WASM_STRIP_SWEXPORTS),,etonyek) \
+ icu_headers \
+ icui18n \
+@@ -93,7 +92,6 @@ endif
+ ifneq ($(ENABLE_WASM_STRIP_SWEXPORTS),TRUE)
+ $(eval $(call gb_Library_add_exception_objects,wpftwriter,\
+ writerperfect/source/writer/AbiWordImportFilter \
+- writerperfect/source/writer/EBookImportFilter \
+ writerperfect/source/writer/MSWorksImportFilter \
+ writerperfect/source/writer/MWAWImportFilter \
+ writerperfect/source/writer/PagesImportFilter \
+diff --git a/writerperfect/qa/unit/WpftFilterFixture.hxx b/writerperfect/qa/unit/WpftFilterFixture.hxx
+index 2fdd6a2..dbdd672 100644
+--- a/writerperfect/qa/unit/WpftFilterFixture.hxx
++++ b/writerperfect/qa/unit/WpftFilterFixture.hxx
+@@ -25,10 +25,6 @@
+ || ((major) == (req_major) \
+ && ((minor) > (req_minor) || ((minor) == (req_minor) && ((micro) >= (req_micro)))))
+
+-#define REQUIRE_EBOOK_VERSION(major, minor, micro) \
+- REQUIRE_VERSION(EBOOK_VERSION_MAJOR, EBOOK_VERSION_MINOR, EBOOK_VERSION_MICRO, major, minor, \
+- micro)
+-
+ #define REQUIRE_ETONYEK_VERSION(major, minor, micro) \
+ REQUIRE_VERSION(ETONYEK_VERSION_MAJOR, ETONYEK_VERSION_MINOR, ETONYEK_VERSION_MICRO, major, \
+ minor, micro)
+diff --git a/writerperfect/qa/unit/WpftWriterFilterTest.cxx b/writerperfect/qa/unit/WpftWriterFilterTest.cxx
+index 78d24dc..39924f9 100644
+--- a/writerperfect/qa/unit/WpftWriterFilterTest.cxx
++++ b/writerperfect/qa/unit/WpftWriterFilterTest.cxx
+@@ -30,9 +30,6 @@ WpftWriterFilterTest::WpftWriterFilterTest()
+
+ void WpftWriterFilterTest::test()
+ {
+- const writerperfect::test::WpftOptionalMap_t aEBookOptional{
+- { "FictionBook2.fb2.zip", REQUIRE_EBOOK_VERSION(0, 1, 1) },
+- };
+ const writerperfect::test::WpftOptionalMap_t aEtonyekOptional{
+ { "Pages_4.pages", REQUIRE_ETONYEK_VERSION(0, 1, 2) },
+ { "Pages_5.pages", REQUIRE_ETONYEK_VERSION(0, 1, 8) },
+@@ -59,8 +56,6 @@ void WpftWriterFilterTest::test()
+
+ doTest("com.sun.star.comp.Writer.AbiWordImportFilter",
+ u"/writerperfect/qa/unit/data/writer/libabw/");
+- doTest("org.libreoffice.comp.Writer.EBookImportFilter",
+- u"/writerperfect/qa/unit/data/writer/libe-book/", aEBookOptional);
+ doTest("com.sun.star.comp.Writer.MSWorksImportFilter",
+ u"/writerperfect/qa/unit/data/writer/libwps/", aWpsOptional);
+ doTest("com.sun.star.comp.Writer.MWAWImportFilter",
+diff --git a/writerperfect/source/writer/wpftwriter.component b/writerperfect/source/writer/wpftwriter.component
+index 176d487..0c89217 100644
+--- a/writerperfect/source/writer/wpftwriter.component
++++ b/writerperfect/source/writer/wpftwriter.component
+@@ -42,12 +42,6 @@
+ <service name="com.sun.star.document.ImportFilter"/>
+ <optional/>
+ </implementation>
+- <implementation name="org.libreoffice.comp.Writer.EBookImportFilter"
+- constructor="org_libreoffice_comp_Writer_EBookImportFilter_get_implementation">
+- <service name="com.sun.star.document.ExtendedTypeDetection"/>
+- <service name="com.sun.star.document.ImportFilter"/>
+- <optional/>
+- </implementation>
+ <implementation name="org.libreoffice.comp.Writer.PagesImportFilter"
+ constructor="org_libreoffice_comp_Writer_PagesImportFilter_get_implementation">
+ <service name="com.sun.star.document.ExtendedTypeDetection"/>
+--
+2.31.1
+
diff --git a/0001-disble-tip-of-the-day-dialog-by-default.patch b/0001-disble-tip-of-the-day-dialog-by-default.patch
new file mode 100644
index 0000000..7233a4e
--- /dev/null
+++ b/0001-disble-tip-of-the-day-dialog-by-default.patch
@@ -0,0 +1,26 @@
+From d6e2cdb0023e422546e3ece5bf9915f7c490ced8 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
+Date: Fri, 20 Mar 2020 14:24:05 +0000
+Subject: [PATCH] disble tip-of-the-day dialog by default
+
+Change-Id: Ie7f0e3fe3dda12c2ec88c376d2b57419253ae5cf
+---
+ officecfg/registry/schema/org/openoffice/Office/Common.xcs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+index e7c339e2e22e..9aa88ef1aa02 100644
+--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
++++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+@@ -5570,7 +5570,7 @@
+ <info>
+ <desc>Determines whether the Tip-of-the-Day dialog is shown on startup.</desc>
+ </info>
+- <value>true</value>
++ <value>false</value>
+ </prop>
+ <prop oor:name="LastTipOfTheDayShown" oor:type="xs:int" oor:nillable="false">
+ <info>
+--
+2.24.1
+
diff --git a/0001-don-t-suppress-crashes.patch b/0001-don-t-suppress-crashes.patch
new file mode 100644
index 0000000..596534d
--- /dev/null
+++ b/0001-don-t-suppress-crashes.patch
@@ -0,0 +1,37 @@
+From a6f2cba43d79347b6975b3b8069b423c94a7dba6 Mon Sep 17 00:00:00 2001
+From: David Tardon <dtardon@redhat.com>
+Date: Tue, 8 Nov 2016 11:50:06 +0100
+Subject: [PATCH] don't suppress crashes
+
+An automatic restart after a crash makes the crash invisible to abrt.
+
+Change-Id: I3854e619356049b144b08575879d289a3c12e4c9
+---
+ desktop/source/app/app.cxx | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
+index c54aea9dd4f7..a613fe12cef2 100644
+--- a/desktop/source/app/app.cxx
++++ b/desktop/source/app/app.cxx
+@@ -1165,8 +1165,6 @@
+ if( bRestart )
+ {
+ RequestHandler::Disable();
+- if( pSignalHandler )
+- osl_removeSignalHandler( pSignalHandler );
+
+ restartOnMac(false);
+ #if !ENABLE_WASM_STRIP_SPLASH
+@@ -1174,7 +1172,7 @@
+ m_rSplashScreen->reset();
+ #endif
+
+- _exit( EXITHELPER_CRASH_WITH_RESTART );
++ return;
+ }
+ else
+ {
+--
+2.29.2
+
diff --git a/0001-fix-testSignDocument_PEM_PDF.patch b/0001-fix-testSignDocument_PEM_PDF.patch
new file mode 100644
index 0000000..32c7395
--- /dev/null
+++ b/0001-fix-testSignDocument_PEM_PDF.patch
@@ -0,0 +1,61 @@
+From 599722cf77310429a9b9bd2a348486a08b60de0d Mon Sep 17 00:00:00 2001
+From: Miklos Vajna <vmiklos@collabora.com>
+Date: Mon, 13 Mar 2023 20:04:17 +0100
+Subject: svl: fix CppunitTest_desktop_lib's
+ DesktopLOKTest::testSignDocument_PEM_PDF
+
+The problem was that this test passed when the entire suite was running,
+but not as an individual test.
+
+Digging deeper, this didn't pass in isolation because the test loads a
+private key into memory (which is not in the NSS DB) and since commit
+5592ee094ca9f09bfcc16537d931518d4e6b2231 (svl: fix
+testSignDocument_PEM_PDF with "dbm:" NSS DB, 2022-04-28) we delete that
+in-memory key as a workaround for the NSS dbm -> sqlite transition.
+
+Fix the problem by not deleting the in-memory private key in the LOK
+case: this makes the test (operating in a stateless mode, with in-memory
+keys) pass again and keeps the desktop signing (working with the NSS DB)
+working.
+
+I noticed this test failure as a local test update of libxmlsec to 1.3
+RC started to fail here even when the whole suite was running, but looks
+like this was working by accident before anyway, and the fix doesn't
+hurt for libxmlsec 1.2, either.
+
+Change-Id: Id365ddc5c5d04d538609f444c0e3c4ab4b32a6fd
+Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148817
+Tested-by: Jenkins
+Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
+---
+ svl/source/crypto/cryptosign.cxx | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
+index 1d6337845569..e68ccb8aafda 100644
+--- a/svl/source/crypto/cryptosign.cxx
++++ b/svl/source/crypto/cryptosign.cxx
+@@ -26,6 +26,7 @@
+ #include <comphelper/processfactory.hxx>
+ #include <comphelper/random.hxx>
+ #include <comphelper/scopeguard.hxx>
++#include <comphelper/lok.hxx>
+ #include <com/sun/star/security/XCertificate.hpp>
+ #include <com/sun/star/uno/Sequence.hxx>
+ #include <o3tl/char16_t2wchar_t.hxx>
+@@ -640,7 +641,11 @@ NSSCMSMessage *CreateCMSMessage(const PRTime* time,
+ // if it works, and fallback if it doesn't.
+ if (SECKEYPrivateKey * pPrivateKey = PK11_FindKeyByAnyCert(cert, nullptr))
+ {
+- SECKEY_DestroyPrivateKey(pPrivateKey);
++ if (!comphelper::LibreOfficeKit::isActive())
++ {
++ // pPrivateKey only exists in the memory in the LOK case, don't delete it.
++ SECKEY_DestroyPrivateKey(pPrivateKey);
++ }
+ *cms_signer = NSS_CMSSignerInfo_Create(result, cert, SEC_OID_SHA256);
+ }
+ else
+--
+cgit v1.2.1
+
diff --git a/0001-include-filename-if-the-test-fails.patch b/0001-include-filename-if-the-test-fails.patch
new file mode 100644
index 0000000..2f58fe0
--- /dev/null
+++ b/0001-include-filename-if-the-test-fails.patch
@@ -0,0 +1,28 @@
+From d362de6dee0949704c917d65d06d2bf1bc0892c1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
+Date: Thu, 26 Jan 2023 09:59:47 +0000
+Subject: [PATCH] include filename if the test fails
+
+which it does for me with fedora 38 s390x
+
+Change-Id: I32ad30061717287e785a395afc893db1a5764bcd
+---
+ sw/qa/core/macros-test.cxx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/sw/qa/core/macros-test.cxx b/sw/qa/core/macros-test.cxx
+index 72ed9b5a9612..a8c76bef1883 100644
+--- a/sw/qa/core/macros-test.cxx
++++ b/sw/qa/core/macros-test.cxx
+@@ -142,7 +142,7 @@ void SwMacrosTest::testVba()
+
+ uno::Any aRet = executeMacro(testInfo[i].sMacroUrl);
+ OUString aStringRes;
+- CPPUNIT_ASSERT(aRet >>= aStringRes);
++ CPPUNIT_ASSERT_MESSAGE(sFileName.toUtf8().getStr(), aRet >>= aStringRes);
+ CPPUNIT_ASSERT_EQUAL(OUString("OK"), aStringRes);
+ }
+ }
+--
+2.39.1
+
diff --git a/gpgkey-C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3.gpg.asc b/gpgkey-C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3.gpg.asc
new file mode 100644
index 0000000..5f4f64d
--- /dev/null
+++ b/gpgkey-C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3.gpg.asc
@@ -0,0 +1,51 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBEyzEr0BEADT441wUITsTwDA2nM3kmUhGrzTdxZB5xv/E1ZJCw63qWdmdTdW
+NZDfNDuLs4r2VjlEoA3xGK6jgnQvyAoNj0yiEbW/JedHHgOiVdXDlkgkY58myafT
+FXqDLzTXVrsNnay0GS8XrNjptZJPhEPBvNUdkqpA9B7RTkfaXj779Pf/AeFMZVLl
+UAci5RA0NNF910GHwoXT6SEv2PGoawsphnfmMVdKh9wz7asbtKXEmotCwX3k045x
+LsIVK5ANOi+BI9C3LkrrFJWw2XHqDW2ulwCJ0L5QNSjOuY/v8REODwIXamvvdZOz
+XBKSIzDOalJqFCHls3YlGyFw1knr6BAOmVOm32YtNTCLbVA/iK55fZWnUCjD3a4G
+xz4qpQYWfpxhOmlHpk5JkraSNHzCc7SB43DwcHF5ecXHttMhO8MoN/bAZBgCuLGF
+EwNvwFbDwIWo07mlv7wD8i1rtUCvLywJc5YL2PbjCLfB1Q4YzDX1EWnjKdnAsxxK
+ftrx1DFlxzUF+TaHbLTPttUcsWQaL8wITznoWIwdIWlo2woPgWIpUXMOYwYV31Oo
+fgmroHa3V4NOvkke09uhaZawg5yZCoRFohhfKPqT1ZrJ9SnRbW/WR3VTVY76ht5k
+RuV3eb2VWBmPU9zn56Tbe6dvFkBuzHH1JdECAqy1BzFcmQQFBebFzf1XAQARAQAB
+tEhMaWJyZU9mZmljZSBCdWlsZCBUZWFtIChDT0RFIFNJR05JTkcgS0VZKSA8YnVp
+bGRAZG9jdW1lbnRmb3VuZGF0aW9uLm9yZz6JAjcEEwEKACEFAkyzEr0CGwMFCwkI
+BwMFFQoJCAsFFgIDAQACHgECF4AACgkQ9DSh76/urqOc4w//X+74QlyRalcuLNw3
+oJKB1+1z6xxhhpwg1kw5cMMrGu0w0YoPvLDKaiS02DdkIaXDECcQTOoEh7/bYbZq
+6OtE1WyxqHYYOPK5yul5FRwZ5k5HZ7pDFcKCQ72UgWhz+QznRhgZ0jwEWl5Ln3rw
+JpSynIvTXHmQogId0xmcrNQPyckzzugGx4qZFinSOmDGwTgG14NU3vat2iek37Ph
+BLh5V8ohlEoccwwPejtKEWQudg0Q8K7uBuqLUhnJoZodEytqpOvtysuPtGxGXnmD
+7oXtBVEF3X6eFRXDIp81cx2isHK4Krf4z4T9KUimNLHjWRa+ZQtp2pZLHQlblfsn
+CUf6TYZ0Yi909EhcM/hxAgBZXellOCQ/8U2cJsTUyN5Dp1wbf6X0uK4uaed1/037
+EGLAO6PP6WQz6jWd1/hhsQ5oAmdjkzlMFEfKNeIIDuKMOjXcTvM8/KRXhufwICvS
+FBlSIveHfDFWCvOVgq0VjAY7NFMFKRUnRHB58qBamtyhOyscRIvT5QH8HYfUA/YN
+l9FguczYUIQi3t+H1hoHIywdtmRuhYx5WlIUe8FO9QD5RMPbBjVbkCYgdHdxgnJD
+KCoRGsoKlLB7UZc4Ak9j6plZbYtFRonm2MjU4zxblCFNuEqVQ0V/y6/OIGpBYF9Y
+aEAtTgEJd9OmmDCM3d8O0zZHYma5Ag0ETLMSvQEQAMDp0HxSDWd+2Od/aJutCMFe
+8tfw7+nP9gfHOCUqesb88QvRMJgVY6z1aNdMllxTKlsxUiuA6uNcrUAkzDp/qRWR
+58rWIO642PLifng3urJ1cDbSKC+K4RHpQC+hXllMKLqq8dwNy1LO4fPo9SdtUF4B
+ev6enKmo4yCiOGv2tvztPh9gMGYoDncaOsS0t2UPr2MMQIVUmmIzfJBkdOxbZiWO
+doeNbWsYJHQaO+Ahal6SjPHKzhdjeXhZzHl1vqeDkV4MXHprrOwXNXwPiEpkZe2O
+dc7yaMkQc0k8WRrfKHApbnwDx6Mi8HYaf+LvRq7P0eMO9osD1q44wQQvVzk199zp
+MMHS5/kAv7RBNmDOSJQIZ4zT4lzRDODjMf01Ljn02zon12GfJo0WbbpmLulta7uj
+HgMrUU54by8WPFGW0fljXiDX0EpkHhxUsUsfaNfBsFnE+sRxQjNF/ljvofkyApI2
+1OjtEa9krwvgDqaXsL+a2076OsoFpORlTZ30REb0eRS6rEt8M+7s4xTaA7GFxlY/
+N+bnaM8m+ItygfFHHW4H0wLbbgajDeooSTgaheVNF5V9HS0EkN4MNVvtJH7J6drd
+iR1QVhX87n7+JtQzTtCOyfeKjaB+kcbAm/2VOFOeHdig5+BygpXt3IixVq72xmGz
+h0jhY565MjXrqg5O3pvLABEBAAGJAh8EGAEKAAkFAkyzEr0CGwwACgkQ9DSh76/u
+rqPaeg//avI2/a94XlSYtSZb2hVdW3qa9AEypQurqtVrKJfEKFV+ZQBPXbPRy8Mz
+5LMEH1sfD6B4SVGIGJ8opSyieJkcKIke+GMekTWvSqDpFOgY2rw7eHNn/33ZJs3O
+zQOyWz8smE/AIM/5lyiVGuSlU7RjYncf1V9bIBc91q9Edqk4IYUo/7W+yafC0VW/
+8oHUFYjHNaujiOsEoLiXsh9Y0R/6Jxs6fvE4XbCANV/ecN5UX+9BBrNZNN/9GbNr
+6CYGZ57M2f1Pgywy/XvOnEPnJ8aWXUyGLqq34KvMPFPSOeAmFbkFEsB4mdDMFaDw
+rzziiZE/zS8/nKiH4X2JgmLgFsadEihdfYxeDcGbhREK/qA1f3bGnr1j05V07yko
+2FFZdiOr4OgiT5ymgwVUXQ2Aiz+J/C8URjfpcPxetmuDQT9AYfgmMKPNVXPFWuNQ
+dzN5GZbI+E1/cb5+uLNknvjngw2G4PR/4uPHX1HCSftlNawBqWzyun1k+B7/u3Oe
+FebWXcdqSmZuLQ7l0Pkuz/Nlp6M6cKpceL+9zCgaiR5+v9h94VvtXKd/mw9ZLACc
+VcOANiwCtsJP3lt7jRSHtkuUe6vUm5tLS582RfXxoI1BlPjNtG9xAQ3JKBHIXbal
+T18pAFO3t74cxg3h0iI1G51F3oL0DwILP2MBBmardVEp5CMnB/M=
+=1iQB
+-----END PGP PUBLIC KEY BLOCK-----
diff --git a/libreoffice-7.5.5.2.tar.xz.asc b/libreoffice-7.5.5.2.tar.xz.asc
new file mode 100644
index 0000000..384bc19
--- /dev/null
+++ b/libreoffice-7.5.5.2.tar.xz.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCAAdFiEEwoOeytlAj76VMcPp9DSh76/urqMFAmSu5kIACgkQ9DSh76/u
+rqMf7hAAtddSuVUfauzLv/uIysg4382DZxfXkMbEkqhJXzUsKBLPpNQf8AU0NeEg
+fcsZ8PAlGNsCKu5hDA436k4uunXID7AabkFacHn6nhPmDq96v4437FK2MMaNtFpD
+/7nz+PsFjJL5It45hJ0ZoJ0l8oP2Ooyej9zMRCF7PlfPYTNwm8ZqoO+RKOJlHwlH
+ImQLos+1JHHKiZABNAeRGq9UQmREYUB1Z92wqthljd9CwHTX23De9zjN/gmf9f2c
+ZxVQvit/pPtJMOfNdYodcAmCQSo3nUBvN6fk2h8uRUW1gTLbc4TrikGlnhZqt1Sc
+2s4alt6X5p20bcXbtFAaN5JcrXbN2yukVTh2OUIDBSfc1uwn15HdKvxvw1M886eB
+uf9f+UjNcgYih0qwSRT8OEk9bHKBDidk+vNnK72MMhflL55hbDTRKRtKqHJiNLOU
+Ib+qsp3Pqe7Kqik2UclntHf4zBSXuqmd0862T9obnL48S876D+pP35X4I6iezN0w
+c2pciQABdPanMmGKJ7EETBDXrJa14oFzkuXhXLh7kZM6B9e7rOZW4a5XSM9Cho+o
+CzvYGyCo46EzRd/Fha9ne60SSFrBtPJ0UnqLSR0f47giKdoL8an64oGtlEqMk357
+hMXvSqCVXYZRVLbEX28PGxCchxPf7Bjq+j8VUq25mFgqAcMsmW0=
+=dXuq
+-----END PGP SIGNATURE-----
diff --git a/libreoffice-base-symbolic.svg b/libreoffice-base-symbolic.svg
new file mode 100644
index 0000000..16f3cef
--- /dev/null
+++ b/libreoffice-base-symbolic.svg
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='libreoffice-base-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.2 r9819' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
+ <metadata id='metadata90'>
+ <rdf:RDF>
+ <cc:Work rdf:about=''>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='-65.007495' inkscape:cy='2.627089' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='false' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1381' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='1600' inkscape:window-y='27' inkscape:zoom='22.627417'>
+ <inkscape:grid empspacing='2' enabled='true' id='grid4866' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
+ </sodipodi:namedview>
+ <title id='title9167'>Gnome Symbolic Icon Theme</title>
+ <defs id='defs7386'/>
+ <g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-143.00018,-195)'>
+
+ <path inkscape:connector-curvature='0' d='m 154.28125,195.00525 c -0.27821,0.0752 -0.37465,0.49932 -0.15625,0.68727 l 3.1875,3.18646 c 0.21982,0.23021 0.69212,0.0371 0.6875,-0.28116 l 0,-3.21769 c -0.0122,-0.20318 -0.20269,-0.37897 -0.40625,-0.37488 l -3.1875,0 c -0.0413,-0.007 -0.0837,-0.007 -0.125,0 z' id='path18821' sodipodi:nodetypes='cccccccc' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:0.79782361px;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans'/>
+ <path inkscape:connector-curvature='0' d='m 144.84395,195.00525 c -0.4813,0.0874 -0.85238,0.53322 -0.84375,0.99967 l 0,13.99541 c 6e-5,0.52341 0.51276,0.99962 1.0625,0.99967 l 11.875,0 c 0.54975,-5e-5 1.06245,-0.47626 1.0625,-0.99967 l -0.0312,-7.59126 c 0.006,-0.26397 -0.0884,-0.52879 -0.28125,-0.71852 l -6.40625,-6.40414 c -0.19927,-0.18364 -0.47275,-0.28728 -0.75,-0.28116 l -5.46875,0 c -0.0654,-0.006 -0.15331,-0.006 -0.21875,0 z m 1.15625,1.99934 4,0 3.5,3.49885 2.5,2.49918 0,5.99804 -10,0 0,-11.99607 z' id='path18823' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0pt;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;text-anchor:start;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;font-family:Andale Mono'/>
+ <path inkscape:connector-curvature='0' d='m 148.03145,203.7172 c 0,0.951 0,0 0,0.951 2.10295,1.09462 4,0 4,0 l 0,-0.951 c 0,0 -2.05961,1.05726 -4,0 z' id='path18853' sodipodi:nodetypes='ccccc' style='fill:#bebebe;fill-opacity:1;stroke:none'/>
+ <path sodipodi:cx='29.633902' sodipodi:cy='5.3320975' d='m 31.999999,5.3320975 a 2.3660977,0.66790265 0 1 1 -4.732195,0 2.3660977,0.66790265 0 1 1 4.732195,0 z' id='path18855' sodipodi:rx='2.3660977' sodipodi:ry='0.66790265' style='fill:#bebebe;fill-opacity:1;stroke:none' transform='matrix(0.84527458,0,0,1.4972236,124.98267,194.01666)' sodipodi:type='arc'/>
+ <path inkscape:connector-curvature='0' d='m 148.03145,205.7172 c 0,0.951 0,0 0,0.951 2.10295,1.09462 4,0 4,0 l 0,-0.951 c 0,0 -2.05961,1.05726 -4,0 z' id='path18864' sodipodi:nodetypes='ccccc' style='fill:#bebebe;fill-opacity:1;stroke:none'/>
+ </g>
+</svg>
diff --git a/libreoffice-calc-symbolic.svg b/libreoffice-calc-symbolic.svg
new file mode 100644
index 0000000..bf56588
--- /dev/null
+++ b/libreoffice-calc-symbolic.svg
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='libreoffice-calc-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.2 r9819' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
+ <metadata id='metadata90'>
+ <rdf:RDF>
+ <cc:Work rdf:about=''>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='19.52026' inkscape:cy='1.7874' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='false' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1381' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='1600' inkscape:window-y='27' inkscape:zoom='22.627417'>
+ <inkscape:grid empspacing='2' enabled='true' id='grid4866' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
+ </sodipodi:namedview>
+ <title id='title9167'>Gnome Symbolic Icon Theme</title>
+ <defs id='defs7386'/>
+ <g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-83.000198,-195)'>
+
+ <path inkscape:connector-curvature='0' d='m 94.28125,195.00525 c -0.27821,0.0752 -0.37465,0.49932 -0.15625,0.68727 l 3.1875,3.18646 c 0.21982,0.23021 0.69212,0.0371 0.6875,-0.28116 l 0,-3.21769 c -0.0122,-0.20318 -0.20269,-0.37897 -0.40625,-0.37488 l -3.1875,0 c -0.0413,-0.007 -0.0837,-0.007 -0.125,0 z' id='path12998' sodipodi:nodetypes='cccccccc' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:0.79782361px;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans'/>
+ <path inkscape:connector-curvature='0' d='m 84.84395,195.00525 c -0.4813,0.0874 -0.85238,0.53322 -0.84375,0.99967 l 0,13.99541 c 6e-5,0.52341 0.51276,0.99962 1.0625,0.99967 l 11.875,0 c 0.54975,-5e-5 1.06245,-0.47626 1.0625,-0.99967 l -0.0312,-7.59126 c 0.006,-0.26397 -0.0884,-0.52879 -0.28125,-0.71852 l -6.40625,-6.40414 c -0.19927,-0.18364 -0.47275,-0.28728 -0.75,-0.28116 l -5.46875,0 c -0.0654,-0.006 -0.15331,-0.006 -0.21875,0 z m 1.15625,1.99934 4,0 3.5,3.49885 2.5,2.49918 0,5.99804 -10,0 0,-11.99607 z' id='path13000' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0pt;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;text-anchor:start;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;font-family:Andale Mono'/>
+ <rect height='3' id='rect18593' style='fill:#bebebe;fill-opacity:1;stroke:none' transform='scale(-1,1)' width='1.9999983' x='-89.000198' y='204'/>
+ <rect height='2' id='rect18595' style='fill:#bebebe;fill-opacity:1;stroke:none' width='2.0000017' x='93.000198' y='205'/>
+ <rect height='5' id='rect18597' style='fill:#bebebe;fill-opacity:1;stroke:none' transform='scale(-1,1)' width='2' x='-92.000198' y='202'/>
+ </g>
+</svg>
diff --git a/libreoffice-draw-symbolic.svg b/libreoffice-draw-symbolic.svg
new file mode 100644
index 0000000..7ca94ee
--- /dev/null
+++ b/libreoffice-draw-symbolic.svg
@@ -0,0 +1,26 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='libreoffice-draw-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.2 r9819' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
+ <metadata id='metadata90'>
+ <rdf:RDF>
+ <cc:Work rdf:about=''>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='-45.00751' inkscape:cy='2.627089' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='false' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1381' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='1600' inkscape:window-y='27' inkscape:zoom='22.627417'>
+ <inkscape:grid empspacing='2' enabled='true' id='grid4866' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
+ </sodipodi:namedview>
+ <title id='title9167'>Gnome Symbolic Icon Theme</title>
+ <defs id='defs7386'/>
+ <g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-123.0002,-195)'>
+
+ <path inkscape:connector-curvature='0' d='m 134.28125,195.00525 c -0.27821,0.0752 -0.37465,0.49932 -0.15625,0.68727 l 3.1875,3.18646 c 0.21982,0.23021 0.69212,0.0371 0.6875,-0.28116 l 0,-3.21769 c -0.0122,-0.20318 -0.20269,-0.37897 -0.40625,-0.37488 l -3.1875,0 c -0.0413,-0.007 -0.0837,-0.007 -0.125,0 z' id='path18767' sodipodi:nodetypes='cccccccc' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:0.79782361px;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans'/>
+ <path inkscape:connector-curvature='0' d='m 124.84395,195.00525 c -0.4813,0.0874 -0.85238,0.53322 -0.84375,0.99967 l 0,13.99541 c 6e-5,0.52341 0.51276,0.99962 1.0625,0.99967 l 11.875,0 c 0.54975,-5e-5 1.06245,-0.47626 1.0625,-0.99967 l -0.0312,-7.59126 c 0.006,-0.26397 -0.0884,-0.52879 -0.28125,-0.71852 l -6.40625,-6.40414 c -0.19927,-0.18364 -0.47275,-0.28728 -0.75,-0.28116 l -5.46875,0 c -0.0654,-0.006 -0.15331,-0.006 -0.21875,0 z m 1.15625,1.99934 4,0 3.5,3.49885 2.5,2.49918 0,5.99804 -10,0 0,-11.99607 z' id='path18769' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0pt;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;text-anchor:start;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;font-family:Andale Mono'/>
+ <path inkscape:connector-curvature='0' d='m 132.0002,203 -3,4 6,0 z' id='path18798' sodipodi:nodetypes='cccc' style='fill:#bebebe;fill-opacity:1;stroke:none'/>
+ <path sodipodi:cx='8.203125' sodipodi:cy='4' d='M 10,4 A 1.7968751,2 0 1 1 6.4062499,4 1.7968751,2 0 1 1 10,4 z' id='path18805' sodipodi:rx='1.7968751' sodipodi:ry='2' style='fill:#bebebe;fill-opacity:1;stroke:none' transform='matrix(1.1130434,0,0,1,119.86977,197)' sodipodi:type='arc'/>
+ </g>
+</svg>
diff --git a/libreoffice-help-7.5.5.2.tar.xz.asc b/libreoffice-help-7.5.5.2.tar.xz.asc
new file mode 100644
index 0000000..863fed4
--- /dev/null
+++ b/libreoffice-help-7.5.5.2.tar.xz.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCAAdFiEEwoOeytlAj76VMcPp9DSh76/urqMFAmSu5lAACgkQ9DSh76/u
+rqPa0g/7BoGpKgEAL6s8Lf0YEmmotgwPjTyU3iBN46CUiBy0KSGzOosj7KeljodD
+VkjER7HiltchiHLoO1ho5cUS5WLSIbMteeDTVq/5C7tUzH3nyCO2vy5m+3mXGS59
+kDAna20J4orglpxbQi+65ceTQxAyMusVFp1PiQx17pFdIZCeV7aj2k8YGgqsW8r/
+cPMMmLbdMgHqA0LL+OeLnFb8H2pvqG6dNSnsyoYqDxCmscVMuqDGF9oDuIx+TbnN
+RU2IkyC+18De826taUcnaf7I+4Sa6MOsfcgX5Wv8nJjFncssEzo9kgczayspoX09
+zB+aB/v95arVLteyGN2FCjSo56c+DgTuTzixaMW92HgqcZ2FesZp1sB62PqIO1Wj
+nvkmBX8ZIQGLe+1z637g2+mEHXZeBxXw1pW8t7qgt3g/YHImGUAE4aG8YiOvABlF
++Rgo2hVw4Kp2W9iDQNEPMVDEIPQ/+gPdvBJeZqD979Aqrb3Bl2poIu0R8QQfTHz0
+7lHLsE1wrCUnkv51mT93reyMVpfjFX7gufphpTe3DrTrTHcd0ZxcAIjuHtM3z4uJ
+WqBxHQ/7CfBbWGo2wJW672r0bTkSbd5sJ+d+tgqHprNVC8xIzsjfjkX36qVlnvha
+offRTWqHDAu4TDfJcve+Ni8mZv7wPiwUvGXprRXT0eLtiI8d7Oo=
+=wkyD
+-----END PGP SIGNATURE-----
diff --git a/libreoffice-impress-symbolic.svg b/libreoffice-impress-symbolic.svg
new file mode 100644
index 0000000..9a16f76
--- /dev/null
+++ b/libreoffice-impress-symbolic.svg
@@ -0,0 +1,25 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='libreoffice-impress-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.2 r9819' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
+ <metadata id='metadata90'>
+ <rdf:RDF>
+ <cc:Work rdf:about=''>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='-25.00751' inkscape:cy='2.627089' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='false' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1381' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='1600' inkscape:window-y='27' inkscape:zoom='22.627417'>
+ <inkscape:grid empspacing='2' enabled='true' id='grid4866' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
+ </sodipodi:namedview>
+ <title id='title9167'>Gnome Symbolic Icon Theme</title>
+ <defs id='defs7386'/>
+ <g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-103.0002,-195)'>
+
+ <path inkscape:connector-curvature='0' d='m 114.28125,195.00525 c -0.27821,0.0752 -0.37465,0.49932 -0.15625,0.68727 l 3.1875,3.18646 c 0.21982,0.23021 0.69212,0.0371 0.6875,-0.28116 l 0,-3.21769 c -0.0122,-0.20318 -0.20269,-0.37897 -0.40625,-0.37488 l -3.1875,0 c -0.0413,-0.007 -0.0837,-0.007 -0.125,0 z' id='path18661' sodipodi:nodetypes='cccccccc' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:0.79782361px;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans'/>
+ <path inkscape:connector-curvature='0' d='m 104.84395,195.00525 c -0.4813,0.0874 -0.85238,0.53322 -0.84375,0.99967 l 0,13.99541 c 6e-5,0.52341 0.51276,0.99962 1.0625,0.99967 l 11.875,0 c 0.54975,-5e-5 1.06245,-0.47626 1.0625,-0.99967 l -0.0312,-7.59126 c 0.006,-0.26397 -0.0884,-0.52879 -0.28125,-0.71852 l -6.40625,-6.40414 c -0.19927,-0.18364 -0.47275,-0.28728 -0.75,-0.28116 l -5.46875,0 c -0.0654,-0.006 -0.15331,-0.006 -0.21875,0 z m 1.15625,1.99934 4,0 3.5,3.49885 2.5,2.49918 0,5.99804 -10,0 0,-11.99607 z' id='path18663' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0pt;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;text-anchor:start;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;font-family:Andale Mono'/>
+ <path inkscape:connector-curvature='0' d='m 107.5002,203 c -0.277,0 -0.5,0.223 -0.5,0.5 l 0,4 c 0,0.277 0.223,0.5 0.5,0.5 l 7,0 c 0.277,0 0.5,-0.223 0.5,-0.5 l 0,-4 c 0,-0.277 -0.223,-0.5 -0.5,-0.5 l -7,0 z m 1,1 c 0.27614,0 0.5,0.22386 0.5,0.5 0,0.27614 -0.22386,0.5 -0.5,0.5 -0.27614,0 -0.5,-0.22386 -0.5,-0.5 0,-0.27614 0.22386,-0.5 0.5,-0.5 z m 2,0 3,0 c 0.277,0 0.5,0.223 0.5,0.5 0,0.277 -0.223,0.5 -0.5,0.5 l -3,0 c -0.277,0 -0.5,-0.223 -0.5,-0.5 0,-0.277 0.223,-0.5 0.5,-0.5 z m -2,2 c 0.27614,0 0.5,0.22386 0.5,0.5 0,0.27614 -0.22386,0.5 -0.5,0.5 -0.27614,0 -0.5,-0.22386 -0.5,-0.5 0,-0.27614 0.22386,-0.5 0.5,-0.5 z m 2,0 3,0 c 0.277,0 0.5,0.223 0.5,0.5 0,0.277 -0.223,0.5 -0.5,0.5 l -3,0 c -0.277,0 -0.5,-0.223 -0.5,-0.5 0,-0.277 0.223,-0.5 0.5,-0.5 z' id='rect18746' style='fill:#bebebe;fill-opacity:1;stroke:none'/>
+ </g>
+</svg>
diff --git a/libreoffice-main-symbolic.svg b/libreoffice-main-symbolic.svg
new file mode 100644
index 0000000..6bd3103
--- /dev/null
+++ b/libreoffice-main-symbolic.svg
@@ -0,0 +1,24 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='libreoffice-main-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.2 r9819' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
+ <metadata id='metadata90'>
+ <rdf:RDF>
+ <cc:Work rdf:about=''>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='34.99249' inkscape:cy='2.627089' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='false' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1381' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='1600' inkscape:window-y='27' inkscape:zoom='22.627417'>
+ <inkscape:grid empspacing='2' enabled='true' id='grid4866' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
+ </sodipodi:namedview>
+ <title id='title9167'>Gnome Symbolic Icon Theme</title>
+ <defs id='defs7386'/>
+ <g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-43.000198,-195)'>
+
+ <path inkscape:connector-curvature='0' d='m 54.28125,195.00525 c -0.27821,0.0752 -0.37465,0.49932 -0.15625,0.68727 l 3.1875,3.18646 c 0.21982,0.23021 0.69212,0.0371 0.6875,-0.28116 l 0,-3.21769 c -0.0122,-0.20318 -0.20269,-0.37897 -0.40625,-0.37488 l -3.1875,0 c -0.0413,-0.007 -0.0837,-0.007 -0.125,0 z' id='path6692' sodipodi:nodetypes='cccccccc' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:0.79782361px;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans'/>
+ <path inkscape:connector-curvature='0' d='m 44.84395,195.00525 c -0.4813,0.0874 -0.85238,0.53322 -0.84375,0.99967 l 0,13.99541 c 6e-5,0.52341 0.51276,0.99962 1.0625,0.99967 l 11.875,0 c 0.54975,-5e-5 1.06245,-0.47626 1.0625,-0.99967 l -0.0312,-7.59126 c 0.006,-0.26397 -0.0884,-0.52879 -0.28125,-0.71852 l -6.40625,-6.40414 c -0.19927,-0.18364 -0.47275,-0.28728 -0.75,-0.28116 l -5.46875,0 c -0.0654,-0.006 -0.15331,-0.006 -0.21875,0 z m 1.15625,1.99934 4,0 3.5,3.49885 2.5,2.49918 0,5.99804 -10,0 0,-11.99607 z' id='path14007' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0pt;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;text-anchor:start;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;font-family:Andale Mono'/>
+ </g>
+</svg>
diff --git a/libreoffice-math-symbolic.svg b/libreoffice-math-symbolic.svg
new file mode 100644
index 0000000..66cd9e7
--- /dev/null
+++ b/libreoffice-math-symbolic.svg
@@ -0,0 +1,25 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='libreoffice-math-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.2 r9819' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
+ <metadata id='metadata90'>
+ <rdf:RDF>
+ <cc:Work rdf:about=''>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='-85.00751' inkscape:cy='2.627089' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='false' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1381' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='1600' inkscape:window-y='27' inkscape:zoom='22.627417'>
+ <inkscape:grid empspacing='2' enabled='true' id='grid4866' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
+ </sodipodi:namedview>
+ <title id='title9167'>Gnome Symbolic Icon Theme</title>
+ <defs id='defs7386'/>
+ <g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-163.0002,-195)'>
+
+ <path inkscape:connector-curvature='0' d='m 174.28125,195.00525 c -0.27821,0.0752 -0.37465,0.49932 -0.15625,0.68727 l 3.1875,3.18646 c 0.21982,0.23021 0.69212,0.0371 0.6875,-0.28116 l 0,-3.21769 c -0.0122,-0.20318 -0.20269,-0.37897 -0.40625,-0.37488 l -3.1875,0 c -0.0413,-0.007 -0.0837,-0.007 -0.125,0 z' id='path18879' sodipodi:nodetypes='cccccccc' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:0.79782361px;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans'/>
+ <path inkscape:connector-curvature='0' d='m 164.84395,195.00525 c -0.4813,0.0874 -0.85238,0.53322 -0.84375,0.99967 l 0,13.99541 c 6e-5,0.52341 0.51276,0.99962 1.0625,0.99967 l 11.875,0 c 0.54975,-5e-5 1.06245,-0.47626 1.0625,-0.99967 l -0.0312,-7.59126 c 0.006,-0.26397 -0.0884,-0.52879 -0.28125,-0.71852 l -6.40625,-6.40414 c -0.19927,-0.18364 -0.47275,-0.28728 -0.75,-0.28116 l -5.46875,0 c -0.0654,-0.006 -0.15331,-0.006 -0.21875,0 z m 1.15625,1.99934 4,0 3.5,3.49885 2.5,2.49918 0,5.99804 -10,0 0,-11.99607 z' id='path18881' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0pt;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;text-anchor:start;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;font-family:Andale Mono'/>
+ <path inkscape:connector-curvature='0' d='m 174.0002,201 -2,0 -2,4 -1,-2 -2,0 0,2 1.45956,0 1.54044,3 2.6029,-5 1.3971,0 z' id='rect13006-2' sodipodi:nodetypes='ccccccccccc' style='fill:#bebebe;fill-opacity:1;stroke:none'/>
+ </g>
+</svg>
diff --git a/libreoffice-multiliblauncher.sh b/libreoffice-multiliblauncher.sh
new file mode 100644
index 0000000..05c9d3f
--- /dev/null
+++ b/libreoffice-multiliblauncher.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+OOO_ARCH=$(uname -m)
+case $OOO_ARCH in
+ x86_64 | s390x | sparc64 | aarch64)
+ OOO_LIB_DIR="/usr/lib64"
+ SECONDARY_LIB_DIR="/usr/lib"
+ ;;
+ * )
+ OOO_LIB_DIR="/usr/lib"
+ SECONDARY_LIB_DIR="/usr/lib64"
+ ;;
+esac
+if [ ! -x $OOO_LIB_DIR/BRAND/program/LAUNCHER ]; then
+ OOO_LIB_DIR="$SECONDARY_LIB_DIR"
+fi
+exec $OOO_LIB_DIR/BRAND/program/LAUNCHER "$@"
diff --git a/libreoffice-translations-7.5.5.2.tar.xz.asc b/libreoffice-translations-7.5.5.2.tar.xz.asc
new file mode 100644
index 0000000..c83766a
--- /dev/null
+++ b/libreoffice-translations-7.5.5.2.tar.xz.asc
@@ -0,0 +1,16 @@
+-----BEGIN PGP SIGNATURE-----
+
+iQIzBAABCAAdFiEEwoOeytlAj76VMcPp9DSh76/urqMFAmSu5lEACgkQ9DSh76/u
+rqPY8hAAomedl8ofsiiP8fv+//OQ+90KoWMHkYgVtMRIUtSoqOHYL8mH27eo1yez
+pUx/WMKCMzZwBW/qpF7Iu6YbGMSe30lz1cGg2ktYR4atdmosyRUPNkyUyQZlwHWx
+YTKY+oL0i/fcv2Hmx9oCoqgUtf2XcvMOx4nfOiAHuSNqjQspuWfFHc7Hyj1OBfwQ
+1mDGpYML1C3ZliUYUxl7ozOr4fGP2WuPkbofDGAUwiPLdM5m1RIPl5qVkYuhkiZw
+7gqQn42IWIcADsH3Rl9rXylKWrOOdKinWtQy+p/ZQPZnRF44L1TUA2zTKhx6Ni3f
+Vaa4hy3oV/YXaiTScsxYm6KyUt0nuzdcdaPAY4TzcFzwuhOFQlAGlyQHzcSt2O26
+/0vQjWA+2FnfT6To2DRcWyHc//ykxiAf9+lygBMVghsSEgVcAF6wLpqBb850tni2
+YX/aAfTvOtEHvf7c/mijlIRT9IvVXkoilJYcfZgQugoDc9pC+R0n5l99B3RUOIwp
+PFDF4nUkhFtIw5tvmx016GurFF1v5ITorK/EXGDSG+yTSzWbi8Z/kVQBUKR/jtbZ
+jltztuRkOTrI9K6e2F08qCrSmUppeMSOHE3UT3NzJm7TWFXG9lUCeBtj5tkt8AQI
+0KJTpaPgq+jrEkCHKIO1cHw1oGTByGmqAB1KS52Cic312pGUcAw=
+=c4HH
+-----END PGP SIGNATURE-----
diff --git a/libreoffice-writer-symbolic.svg b/libreoffice-writer-symbolic.svg
new file mode 100644
index 0000000..e97b545
--- /dev/null
+++ b/libreoffice-writer-symbolic.svg
@@ -0,0 +1,28 @@
+<?xml version='1.0' encoding='UTF-8' standalone='no'?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='libreoffice-writer-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.2 r9819' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
+ <metadata id='metadata90'>
+ <rdf:RDF>
+ <cc:Work rdf:about=''>
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
+ <dc:title>Gnome Symbolic Icon Theme</dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='14.99249' inkscape:cy='2.627089' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='false' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1381' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='1600' inkscape:window-y='27' inkscape:zoom='22.627417'>
+ <inkscape:grid empspacing='2' enabled='true' id='grid4866' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
+ </sodipodi:namedview>
+ <title id='title9167'>Gnome Symbolic Icon Theme</title>
+ <defs id='defs7386'/>
+ <g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-63.000198,-195)'>
+
+ <path inkscape:connector-curvature='0' d='m 74.28125,195.00525 c -0.27821,0.0752 -0.37465,0.49932 -0.15625,0.68727 l 3.1875,3.18646 c 0.21982,0.23021 0.69212,0.0371 0.6875,-0.28116 l 0,-3.21769 c -0.0122,-0.20318 -0.20269,-0.37897 -0.40625,-0.37488 l -3.1875,0 c -0.0413,-0.007 -0.0837,-0.007 -0.125,0 z' id='path6699' sodipodi:nodetypes='cccccccc' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:0.79782361px;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans'/>
+ <path inkscape:connector-curvature='0' d='m 64.84395,195.00525 c -0.4813,0.0874 -0.85238,0.53322 -0.84375,0.99967 l 0,13.99541 c 6e-5,0.52341 0.51276,0.99962 1.0625,0.99967 l 11.875,0 c 0.54975,-5e-5 1.06245,-0.47626 1.0625,-0.99967 l -0.0312,-7.59126 c 0.006,-0.26397 -0.0884,-0.52879 -0.28125,-0.71852 l -6.40625,-6.40414 c -0.19927,-0.18364 -0.47275,-0.28728 -0.75,-0.28116 l -5.46875,0 c -0.0654,-0.006 -0.15331,-0.006 -0.21875,0 z m 1.15625,1.99934 4,0 3.5,3.49885 2.5,2.49918 0,5.99804 -10,0 0,-11.99607 z' id='path6701' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0pt;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;text-anchor:start;color:#000000;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;font-family:Andale Mono'/>
+ <rect height='0.96875' id='rect12972' style='fill:#bebebe;fill-opacity:1;stroke:none' width='2.9999998' x='68.000198' y='206'/>
+ <rect height='1.0625' id='rect12974' style='fill:#bebebe;fill-opacity:1;stroke:none' width='6' x='68.000198' y='203.96875'/>
+ <rect height='0.96875' id='rect12976' style='fill:#bebebe;fill-opacity:1;stroke:none' width='5' x='68.000198' y='202.03125'/>
+ <rect height='0.96875' id='rect12980' style='fill:#bebebe;fill-opacity:1;stroke:none' width='2.9999983' x='68.000198' y='200.03125'/>
+ </g>
+</svg>
diff --git a/libreoffice.spec b/libreoffice.spec
new file mode 100644
index 0000000..8eb9881
--- /dev/null
+++ b/libreoffice.spec
@@ -0,0 +1,1988 @@
+# download path contains version without the last (fourth) digit
+%global libo_version 7.5.5
+%global vendoroption --with-vendor="%{_vendor}"
+
+%global libo_python python3
+%global libo_python_executable python3
+%global libo_python_sitearch %{python3_sitearch}
+%global source_url http://download.documentfoundation.org/libreoffice/src/%{libo_version}
+# URL for external projects' tarballs
+%global external_url http://dev-www.libreoffice.org/src
+%global girapiversion 0.1
+
+# get english only and no-langpacks for a faster smoketest build
+# fedpkg compile/install/local/mockbuild does not handle --without ATM,
+# so it is necessary to change this to bcond_with to achieve the same
+# effect
+%bcond_without langpacks
+%bcond_without serverconfig
+
+# generated by %%langpack definitions
+%global langpack_langs %{nil}
+
+%global bundling_options %{nil}
+
+Summary: Free Software Productivity Suite
+Epoch: 1
+Name: libreoffice
+Version: %{libo_version}.2
+Release: 1
+# default new files are: MPLv2
+# older files are typically: MPLv2 incorporating work under ASLv2
+# nlpsolver is: LGPLv3
+# icon-themes/karasa_jaga/COPYING: LGPLv3+
+# icon-themes/colibre/COPYING-ICONS: CC0
+# lotuswordpro is: Either LGPL 2.1 or SISSL 1.1
+# wizards/source/access2base: Either MPLv2 or LGPLv3+
+# writerperfect/source/common/DirectoryStream.cxx: MPLv2 or LGPLv2+
+# extras/source/autocorr/lang/hr/license.md: GPL 2.0 or LGPL2 or MPLv1.1
+# odk/examples/java/...: 3 clause BSD
+License: MPL-2.0 AND Apache-2.0 AND LGPL-3.0-only AND LGPL-3.0-or-later AND CC0-1.0 AND BSD-3-Clause AND (LGPL-2.1-only OR SISSL) AND (MPL-2.0 OR LGPL-3.0-or-later) AND (MPL-2.0 OR LGPL-2.1-or-later) AND (MPL-1.1 OR GPL-2.0-only OR LGPL-2.1-only)
+URL: http://www.libreoffice.org/
+
+Source0: %{source_url}/libreoffice-%{version}.tar.xz
+Source1: %{source_url}/libreoffice-%{version}.tar.xz.asc
+Source2: %{source_url}/libreoffice-help-%{version}.tar.xz
+Source3: %{source_url}/libreoffice-help-%{version}.tar.xz.asc
+Source4: %{source_url}/libreoffice-translations-%{version}.tar.xz
+Source5: %{source_url}/libreoffice-translations-%{version}.tar.xz.asc
+Source6: gpgkey-C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3.gpg.asc
+Source7: http://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll
+Source8: libreoffice-multiliblauncher.sh
+
+Source9: %{external_url}/dtoa-20180411.tgz
+Source10: %{external_url}/dragonbox-1.1.3.tar.gz
+Source11: %{external_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
+#Unfortunately later versions of hsqldb changed the file format, so if we use a later version we loose
+#backwards compatability.
+Source12: %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
+Source13: %{external_url}/../extern/f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140-opens___.ttf
+%global bundling_options %{?bundling_options} --without-system-hsqldb
+
+Source100: %{source_url}/libreoffice-%{version}.tar.xz.00
+Source101: %{source_url}/libreoffice-%{version}.tar.xz.01
+Source102: %{source_url}/libreoffice-%{version}.tar.xz.02
+Source103: %{source_url}/libreoffice-help-%{version}.tar.xz.00
+Source104: %{source_url}/libreoffice-help-%{version}.tar.xz.01
+Source105: %{source_url}/libreoffice-translations-%{version}.tar.xz.00
+Source106: %{source_url}/libreoffice-translations-%{version}.tar.xz.01
+
+Provides: bundled(hsqldb) = 1.8.0
+Provides: bundled(xsltml) = 2.1.2
+
+# symbolic icons
+Source42: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-base-symbolic.svg
+Source43: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-calc-symbolic.svg
+Source44: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-draw-symbolic.svg
+Source45: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-impress-symbolic.svg
+Source46: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-main-symbolic.svg
+Source47: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-math-symbolic.svg
+Source48: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-writer-symbolic.svg
+
+# build tools
+BuildRequires: autoconf automake bc binutils bison desktop-file-utils doxygen findutils flex gcc-c++ gettext git gnupg2 gperf make
+BuildRequires: icu hunspell-en-US libtool-ltdl-devel mariadb-connector-c-devel patch perl(Digest::MD5) perl(FindBin) perl(base) zip
+
+# libs / headers - common
+BuildRequires: %{libo_python}-devel %{libo_python}-setuptools Box2D-devel boost-devel cups-devel fontpackages-devel
+BuildRequires: glm-devel hyphen-devel libjpeg-turbo-devel lpsolve-devel openldap-devel pam-devel pkgconfig(bluez)
+BuildRequires: pkgconfig(dbus-glib-1) pkgconfig(dconf) pkgconfig(epoxy) pkgconfig(evolution-data-server-1.2) pkgconfig(expat)
+BuildRequires: pkgconfig(freetype2) pkgconfig(gobject-introspection-1.0) pkgconfig(gstreamer-1.0) pkgconfig(gstreamer-plugins-base-1.0)
+BuildRequires: pkgconfig(gtk+-3.0) pkgconfig(gtk4) pkgconfig(hunspell) pkgconfig(ice) pkgconfig(icu-i18n) pkgconfig(lcms2)
+BuildRequires: pkgconfig(libabw-0.1) pkgconfig(libcdr-0.1) pkgconfig(libclucene-core) pkgconfig(libcmis-0.5) pkgconfig(libcurl)
+BuildRequires: pkgconfig(libetonyek-0.1) pkgconfig(libexttextcat) pkgconfig(libfreehand-0.1) pkgconfig(liblangtag)
+BuildRequires: pkgconfig(libmspub-0.1) pkgconfig(libmwaw-0.3) pkgconfig(libodfgen-0.1) pkgconfig(libpagemaker-0.0) libpq-devel
+BuildRequires: pkgconfig(librevenge-0.0) pkgconfig(libstaroffice-0.0) pkgconfig(libtiff-4) pkgconfig(libvisio-0.1) pkgconfig(libwebp)
+BuildRequires: pkgconfig(libwpd-0.10) pkgconfig(libwpg-0.3) pkgconfig(libwps-0.4) pkgconfig(libxml-2.0) pkgconfig(libxslt)
+BuildRequires: pkgconfig(libzmf-0.0) pkgconfig(mythes) pkgconfig(neon) pkgconfig(nss) pkgconfig(poppler) pkgconfig(poppler-cpp)
+BuildRequires: pkgconfig(mythes) pkgconfig(neon) pkgconfig(nss) pkgconfig(poppler) pkgconfig(poppler-cpp) pkgconfig(sane-backends)
+BuildRequires: redland redland-devel unixODBC-devel pkgconfig(sane-backends) pkgconfig(xext) pkgconfig(xinerama)
+BuildRequires: pkgconfig(xmlsec1-nss) pkgconfig(xt) pkgconfig(zlib) unixODBC-devel %{libo_python_executable}
+
+# libs / headers - conditional
+BuildRequires: gpgme cpp-gpgme gpgmepp-devel libnumbertext-devel pkgconfig(cppunit) >= 1.14.0 pkgconfig(graphite2)
+BuildRequires: pkgconfig(harfbuzz) pkgconfig(libeot) pkgconfig(libepubgen-0.1) pkgconfig(libqxp-0.0)
+BuildRequires: pkgconfig(mdds-2.0) pkgconfig(zxing) pkgconfig(liborcus-0.17)
+
+%ifarch %{java_arches}
+# java stuff
+BuildRequires: ant java-devel junit pentaho-reporting-flow-engine
+%endif
+
+# fonts needed for tests
+BuildRequires: dejavu-sans-fonts dejavu-serif-fonts liberation-mono-fonts liberation-narrow-fonts
+BuildRequires: liberation-sans-fonts liberation-serif-fonts linux-libertine-fonts
+
+Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-impress%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-draw%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-math%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-base%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-emailmerge%{?_isa} = %{epoch}:%{version}-%{release}
+
+# not upstreamed: upstream wants an automatic restart after a crash; we
+# want a nice abrt report
+Patch0: 0001-don-t-suppress-crashes.patch
+# disable tip-of-the-day dialog by default
+Patch1: 0001-disble-tip-of-the-day-dialog-by-default.patch
+# disable opencl by default again
+Patch2: 0001-Resolves-rhbz-1432468-disable-opencl-by-default.patch
+# backported
+Patch3: 0001-Revert-tdf-101630-gdrive-support-w-oAuth-and-Drive-A.patch
+Patch4: 0001-default-to-sifr-for-gnome-light-mode.patch
+# TODO investigate these
+Patch5: 0001-aarch64-failing-here.patch
+Patch6: 0001-include-filename-if-the-test-fails.patch
+# backported
+Patch7: 0001-fix-testSignDocument_PEM_PDF.patch
+Patch8: 0001-Only-pass-I.-arguments-to-g-ir-scanner-by-using-pkg-.patch
+Patch9: 0001-Adapt-test-code-to-cURL-8.2.0.patch
+# not upstreamed
+Patch500: 0001-disable-libe-book-support.patch
+
+%global instdir %{_libdir}
+%global baseinstdir %{instdir}/libreoffice
+%global sdkinstdir %{baseinstdir}/sdk
+%global datadir %{_datadir}/%{name}
+%global fontname opensymbol
+# HACK: Get the data dir for -data subpackage. I haven't found any better
+# way to do this...
+%global oldname %{name}
+%global name %{name}-data
+%global lodatadocdir %{_pkgdocdir}
+%global name %{oldname}
+
+%if 0%{?__isa_bits} == 64
+%global mark64 ()(64bit)
+%endif
+
+%description
+LibreOffice is an Open Source, community-developed, office productivity suite.
+It includes the key desktop applications, such as a word processor,
+spreadsheet, presentation manager, formula editor and drawing program, with a
+user interface and feature set similar to other office suites. Sophisticated
+and flexible, LibreOffice also works transparently with a variety of file
+formats, including Microsoft Office File Formats.
+
+%package filters
+Summary: All import / export filters
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-impress%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-xsltfilter%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description filters
+Metapackage to pull in all subpackages that contain import or export
+filters.
+
+%package core
+Summary: Core modules for LibreOffice
+Requires: %{name}-%{fontname}-fonts = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-data = %{epoch}:%{version}-%{release}
+%if ! %{with serverconfig}
+Requires: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release}
+%endif
+Requires: liberation-sans-fonts, liberation-serif-fonts, liberation-mono-fonts
+Requires: %{name}-langpack-en = %{epoch}:%{version}-%{release}
+%ifarch %{java_arches}
+# libreoffice-core drags in both openjdk 1.7.0 and 1.8.0
+Requires: java-headless >= 1:1.6
+%else
+Obsoletes: libreoffice-nlpsolver < 1:7.4.0.0
+Obsoletes: libreoffice-officebean < 1:7.4.0.0
+Obsoletes: libreoffice-officebean-common < 1:7.4.0.0
+Obsoletes: libreoffice-wiki-publisher < 1:7.4.0.0
+%endif
+Obsoletes: libreoffice-headless < 1:4.4.0.0
+Obsoletes: libreoffice-math-debuginfo < 1:6.4.7.2
+Provides: libreoffice-headless = %{epoch}:%{version}-%{release}
+Provides: libreoffice-headless%{?_isa} = %{epoch}:%{version}-%{release}
+Obsoletes: libreoffice-bsh < 1:7.3.0.4
+Obsoletes: libreoffice-rhino < 1:7.3.0.4
+
+%description core
+The shared core libraries and support files for LibreOffice.
+
+%package pyuno
+Summary: Python support for LibreOffice
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{libo_python_executable}
+
+%description pyuno
+Python bindings for the LibreOffice UNO component model. Allows scripts both
+external to LibreOffice and within the internal LibreOffice scripting framework
+to be written in python.
+
+%package base
+Summary: Database front-end for LibreOffice
+Requires: pentaho-reporting-flow-engine
+Requires: postgresql-jdbc
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-data = %{epoch}:%{version}-%{release}
+Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description base
+GUI database front-end for LibreOffice. Allows creation and management of
+databases through a GUI.
+
+%ifarch %{java_arches}
+
+%package officebean
+Summary: JavaBean for LibreOffice Components
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-officebean-common = %{epoch}:%{version}-%{release}
+
+%description officebean
+Allows embedding of LibreOffice documents within the Java environment. It
+provides a Java AWT window into which the backend LibreOffice process draws
+its visual representation
+
+%package officebean-common
+Summary: Common JavaBean for LibreOffice Components
+Requires: %{name}-data = %{epoch}:%{version}-%{release}
+BuildArch: noarch
+
+%description officebean-common
+Arch-independent part of %{name}-officebean.
+
+%package wiki-publisher
+Summary: Create Wiki articles on MediaWiki servers with LibreOffice
+Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description wiki-publisher
+The Wiki Publisher enables you to create Wiki articles on MediaWiki servers
+without having to know the syntax of the MediaWiki markup language. Publish
+your new and existing documents transparently with writer to a wiki page.
+
+%package nlpsolver
+Summary: Non-linear solver engine for LibreOffice Calc
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description nlpsolver
+A non-linear solver engine for Calc as an alternative to the default linear
+programming model when more complex, nonlinear programming is required.
+
+%endif
+
+%package ogltrans
+Summary: 3D OpenGL slide transitions for LibreOffice
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description ogltrans
+OpenGL Transitions enable 3D slide transitions to be used in LibreOffice.
+Requires good quality 3D support for your graphics card for best experience.
+
+%package pdfimport
+Summary: PDF Importer for LibreOffice Draw
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description pdfimport
+The PDF Importer imports PDF into drawing documents to preserve layout
+and enable basic editing of PDF documents.
+
+%package %{fontname}-fonts
+Summary: LibreOffice dingbats font
+Requires: fontpackages-filesystem
+BuildArch: noarch
+
+%description %{fontname}-fonts
+A dingbats font, OpenSymbol, suitable for use by LibreOffice for bullets and
+mathematical symbols.
+
+%package writer
+Summary: LibreOffice Word Processor Application
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-data = %{epoch}:%{version}-%{release}
+Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description writer
+The LibreOffice Word Processor application.
+
+%package emailmerge
+Summary: Email mail-merge component for LibreOffice
+Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description emailmerge
+Enables the LibreOffice writer module to mail-merge to email.
+
+%package calc
+Summary: LibreOffice Spreadsheet Application
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-data = %{epoch}:%{version}-%{release}
+Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description calc
+The LibreOffice Spreadsheet application.
+
+%package draw
+Summary: LibreOffice Drawing Application
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-data = %{epoch}:%{version}-%{release}
+Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description draw
+The LibreOffice Drawing Application.
+
+%package impress
+Summary: LibreOffice Presentation Application
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-data = %{epoch}:%{version}-%{release}
+Requires: %{name}-ogltrans%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description impress
+The LibreOffice Presentation Application.
+
+%package math
+Summary: LibreOffice Equation Editor Application
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description math
+The LibreOffice Equation Editor Application.
+
+%package graphicfilter
+Summary: LibreOffice Extra Graphic filters
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-data = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description graphicfilter
+The graphicfilter module for LibreOffice provides graphic filters, e.g. svg.
+
+%package xsltfilter
+Summary: Optional xsltfilter module for LibreOffice
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description xsltfilter
+The xsltfilter module for LibreOffice, provides additional docbook and
+xhtml export transforms. Install this to enable docbook export.
+
+%package postgresql
+Summary: PostgreSQL connector for LibreOffice
+Requires: %{name}-base%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description postgresql
+A PostgreSQL connector for the database front-end for LibreOffice. Allows
+creation and management of PostgreSQL databases through a GUI.
+
+%package ure
+Summary: UNO Runtime Environment
+Requires: %{name}-ure-common = %{epoch}:%{version}-%{release}
+Requires: unzip%{?_isa}
+%ifarch %{java_arches}
+#rhbz#1164551 we want to ensure that a libjvm.so of this arch is available
+Requires: libjvm.so%{?mark64}
+%endif
+
+%description ure
+UNO is the component model of LibreOffice. UNO offers interoperability between
+programming languages, other components models and hardware architectures,
+either in process or over process boundaries, in the Intranet as well as in the
+Internet. UNO components may be implemented in and accessed from any
+programming language for which a UNO implementation (AKA language binding) and
+an appropriate bridge or adapter exists
+
+%package ure-common
+Summary: Common UNO Runtime Environment
+
+%description ure-common
+Arch-independent part of %{name}-ure.
+
+%package sdk
+Summary: Software Development Kit for LibreOffice
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: unzip%{?_isa}
+%ifarch %{java_arches}
+Requires: java-devel
+%endif
+
+%description sdk
+The LibreOffice SDK is an add-on for the LibreOffice office suite. It provides
+the necessary tools for programming using the LibreOffice APIs and for creating
+extensions (UNO components) for LibreOffice. To set the build environment for
+building against the sdk use %{sdkinstdir}/setsdkenv_unix.sh.
+
+%package sdk-doc
+Summary: Software Development Kit documentation for LibreOffice
+
+%description sdk-doc
+This provides documentation for programming using the LibreOffice APIs
+and examples of creating extensions (UNO components) for LibreOffice.
+
+%package glade
+Summary: Support for creating LibreOffice dialogs in glade
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description glade
+%{name}-glade contains a catalog of LibreOffice-specific widgets for
+glade tool to check the visual appearance of dialogs.
+
+%package librelogo
+Summary: LibreLogo scripting language
+Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
+
+%description librelogo
+Enables LibreLogo scripting in Writer. LibreLogo is a Logo-like
+programming language with interactive vectorgraphics for education and
+DTP.
+
+%package data
+Summary: LibreOffice data files
+
+%description data
+%{name}-data contains platform-independent data files.
+
+%package x11
+Summary: LibreOffice generic X11 support plug-in
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+Provides: %{name}-plugin = %{epoch}:%{version}-%{release}
+Provides: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release}
+Supplements: (%{name}-core%{?_isa} and Xserver)
+
+%description x11
+A plug-in for LibreOffice that enables generic X11 support.
+
+%package gtk3
+Summary: LibreOffice GTK+ 3 integration plug-in
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: gstreamer1(element-gtksink)%{?mark64}
+Obsoletes: libreoffice-gtk2 < 1:6.2.0.0
+Obsoletes: libreoffice-gtk2-debuginfo < 1:6.2.0.0
+Supplements: (%{name}-core%{?_isa} and gtk3%{?_isa})
+
+%description gtk3
+A plug-in for LibreOffice that enables integration into GTK+ 3 environment.
+
+%package gtk4
+Summary: LibreOffice GTK+ 4 experimental integration plug-in
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
+Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
+Supplements: (%{name}-core%{?_isa} and gtk4%{?_isa})
+
+%description gtk4
+An experimental plug-in for LibreOffice that enables integration into GTK+ 4 environment.
+
+%package -n libreofficekit
+Summary: A library providing access to LibreOffice functionality
+License: MPLv2.0
+
+%description -n libreofficekit
+LibreOfficeKit can be used to access LibreOffice functionality
+through C/C++, without any need to use UNO.
+
+For now it only offers document conversion (in addition to an
+experimental tiled rendering API).
+
+%package -n libreofficekit-devel
+Summary: Development files for libreofficekit
+Requires: libreofficekit%{?_isa} = %{epoch}:%{version}-%{release}
+License: MPLv2.0
+
+%description -n libreofficekit-devel
+The libreofficekit-devel package contains libraries and header files for
+developing applications that use libreofficekit.
+
+%if 0%{?_enable_debug_packages}
+
+%package gdb-debug-support
+Summary: Additional support for debugging with gdb
+Requires: gdb%{?_isa}
+Requires: %{libo_python}-six
+Requires: libreoffice-core%{?_isa} = %{epoch}:%{version}-%{release}
+Supplements: libreoffice-debuginfo%{?_isa}
+
+%description gdb-debug-support
+This package provides gdb pretty printers for package %{name}.
+
+%files gdb-debug-support
+%{_datadir}/gdb/auto-load%{baseinstdir}
+%{_datadir}/libreoffice/gdb
+
+%endif
+
+%define _langpack_common(Eg:j:l:) \
+%{!-E: \
+%{baseinstdir}/program/resource/%{-g:%{-g*}}%{!-g:%{-l*}}/LC_MESSAGES/*.mo \
+%{baseinstdir}/share/registry/res/registry_%{-l*}.xcd \
+} \
+%{baseinstdir}/share/template/%{-l*} \
+%{baseinstdir}/share/registry/Langpack-%{-l*}.xcd \
+%{baseinstdir}/share/registry/res/fcfg_langpack_%{-l*}.xcd \
+%{baseinstdir}/share/wizards/resources_%{-j:%{-j*}}%{!-j:%{-l*}}.properties \
+%{nil}
+
+# Defines a language pack subpackage.
+#
+# It's necessary to define language code (-l) and language name (-n).
+# Additionally, it's possible
+# * to require autocorr, hunspell, hyphen or mythes package or font for
+# given language,
+# * to provide libreoffice-langpack-loc package, where loc is glibc
+# locale--this is necessary for yum to pick it automatically,
+# * to require other, unrelated, packages,
+# * to specify file serving as file list.
+# For these, lower case character argument takes an argument specifying
+# language, upper case character argument uses language from -l.
+#
+# All remaining arguments are considered to be files and added to the file
+# list.
+#
+# Aa: autocorr dependency
+# c: additional config file (just the name stem)
+# E: base (US English) langpack
+# Ff: font language dependency
+# g: glibc/java locale
+# Hh: hunspell dependency
+# i: additional language added to this package
+# j: java locale for the additional language
+# k: glibc locale for the additional language
+# L: internal (LibreOffice) language code, used in file names
+# l: language code, e.g., cs
+# Mm: mythes dependency
+# n: language name, e.g., Czech
+# p: Provides: of libreoffice-langpack
+# r: comma-separated list of additional requires
+# S:s: script classification (cjk, ctl). -S is only a marker, as it does
+# not add any .xcd into the package (the file does not exist for at
+# least one CTL-using locale, si)
+# T has help files
+# Xx: has autotext definitions
+# Yy: hyphen dependency
+#
+# Example:
+# libreoffice-langpack-cs: langpack for Czech lang. requiring hyphen-cs,
+# autocorr-cs, mythes-cs-CZ and suitable font:
+# %%langpack -l cs -n Czech -H -A -m cs-CZ
+# b de q tu z BCD G IJK N PQR U Z0123456789
+%define langpack(Aa:c:EFf:g:Hh:i:j:k:L:l:Mm:n:p:r:S:s:TXx:Yy:) \
+%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
+%define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \
+%define pkgname langpack-%{lang} \
+%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
+\
+%global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \
+\
+%package %{pkgname} \
+Summary: %{langname} language pack for LibreOffice \
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \
+%{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \
+%{-f:Recommends: langpacks-%{-f*}}%{!-f:%{-F:Recommends: langpacks-%{lang}}} \
+%{-h:Requires: hunspell-%{-h*}}%{!-h:%{-H:Requires: hunspell-%{lang}}} \
+%{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \
+%{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \
+%{-r:Requires: %{-r*}} \
+%{-p:Provides: %{name}-langpack-%{-p*} = %{epoch}:%{version}-%{release}} \
+%{-p:Provides: %{name}-langpack-%{-p*}%{?_isa} = %{epoch}:%{version}-%{release}} \
+%{-p:Supplements: (%{name}-core%{?_isa} and langpacks-%{-p*})} \
+%{!-p:Supplements: (%{name}-core%{?_isa} and langpacks-%{lang})} \
+%{-T:Requires: %{name}-help-%{lang}} \
+\
+%description %{pkgname} \
+Provides additional %{langname} translations and resources for LibreOffice. \
+\
+%{-T: \
+%package help-%{lang} \
+Summary: %{langname} help for LibreOffice \
+Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \
+\
+%description help-%{lang} \
+Provides %{langname} help for LibreOffice. \
+\
+%files help-%{lang} \
+%docdir %{baseinstdir}/help/%{_langpack_lang} \
+%{baseinstdir}/help/%{_langpack_lang} \
+} \
+\
+%files %{pkgname} \
+%{expand:%%_langpack_common %{-E} -l %{_langpack_lang} %{-g:-g %{-g*} -j %{-g*}}} \
+%{-x:%{baseinstdir}/share/autotext/%{-x*}}%{!-x:%{-X:%{baseinstdir}/share/autotext/%{_langpack_lang}}} \
+%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \
+%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \
+%{-i:%{expand:%%_langpack_common %{-E} -l %{-i*} %{-k:-g %{-k*}} %{-j:-j %{-j*}}}} \
+%{nil}
+
+# Defines an auto-correction subpackage.
+#
+# i: add autocorrections from additional language
+# l: language code
+# n: language name
+# L the filename does not contain country code
+#
+# All remaining arguments are considered to be files and added to the file
+# list.
+%define autocorr(i:Ll:n:) \
+%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
+%define pkgname autocorr-%{lang} \
+%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
+\
+%package -n %{pkgname} \
+Summary: %{langname} auto-correction rules \
+BuildArch: noarch \
+\
+%description -n %{pkgname} \
+Rules for auto-correcting common %{langname} typing errors. \
+\
+%files -n %{pkgname} \
+%doc instdir/LICENSE \
+%dir %{_datadir}/autocorr \
+%{-L:%{_datadir}/autocorr/acor_%{lang}.dat} \
+%{!-L:%{_datadir}/autocorr/acor_%{lang}-*.dat} \
+%{nil}
+
+%langpack -l en -n English -F -h en-US -Y -M -A -E -L en-US -T -X -g en_US
+
+%if %{with langpacks}
+
+%langpack -l af -n Afrikaans -F -H -Y -A -X
+%langpack -l ar -n Arabic -F -H -s ctl -T -X
+%langpack -l as -n Assamese -F -H -Y -X
+%langpack -l bg -n Bulgarian -F -H -Y -M -A -T -X
+%langpack -l bn -n Bengali -F -H -Y -T -X
+%langpack -l br -n Breton -F -H -X
+%langpack -l ca -n Catalan -F -H -Y -M -A -T -X
+%langpack -l cs -n Czech -F -H -Y -M -A -T -X
+%langpack -l cy -n Welsh -F -H -Y -X
+%langpack -l da -n Danish -F -H -Y -M -A -T -X
+%langpack -l de -n German -F -H -Y -M -A -T -X
+%langpack -l dz -n Dzongkha -F -s ctl -T -X
+%langpack -l el -n Greek -F -H -Y -M -A -T -X
+%langpack -l eo -n Esperanto -F -H -M -T -X
+%langpack -l es -n Spanish -F -H -Y -M -A -T -X
+%langpack -l et -n Estonian -F -H -Y -T -X
+%langpack -l eu -n Basque -F -H -Y -T -X
+%langpack -l fa -n Farsi -A -H -Y -s ctl -X
+%langpack -l fi -n Finnish -F -r libreoffice-voikko -A -T -X
+%langpack -l fr -n French -F -H -Y -M -A -T -X
+%langpack -l fy -n Frisian -F -H -X
+%langpack -l ga -n Irish -F -H -Y -M -A -X
+%langpack -l gl -n Galician -F -H -Y -T -X
+%langpack -l gu -n Gujarati -F -H -Y -s ctl -T -X
+%langpack -l he -n Hebrew -F -H -s ctl -T -X
+%langpack -l hi -n Hindi -F -H -Y -s ctl -T -X
+%langpack -l hr -n Croatian -F -H -Y -A -T -X
+%langpack -l hu -n Hungarian -F -H -Y -M -A -T -X
+%{baseinstdir}/share/wordbook/hu_AkH11.dic
+%langpack -l id -n Indonesian -F -H -Y -T -X
+%langpack -l it -n Italian -F -H -Y -M -A -T -X
+%langpack -l ja -n Japanese -F -A -s cjk -T -X
+%langpack -l kk -n Kazakh -F -H -X
+%langpack -l kn -n Kannada -F -H -Y -X
+%langpack -l ko -n Korean -F -H -A -s cjk -T -X
+%langpack -l lt -n Lithuanian -F -H -Y -A -T -X
+%langpack -l lv -n Latvian -F -H -Y -M -T -X
+%langpack -l mai -n Maithili -F -X
+%langpack -l ml -n Malayalam -F -H -Y -X
+%langpack -l mr -n Marathi -F -H -Y -X
+%langpack -l nb -n Bokmal -F -H -Y -M -T -X
+%langpack -l nl -n Dutch -F -H -Y -M -A -T -X -X
+%langpack -l nn -n Nynorsk -F -H -Y -M -T
+%define langpack_lang Southern Ndebele
+%langpack -l nr -n %{langpack_lang} -F -H -X
+%define langpack_lang Northern Sotho
+%langpack -l nso -n %{langpack_lang} -F -H -X
+%langpack -l or -n Odia -F -H -Y -s ctl -X
+%langpack -l pa -n Punjabi -F -H -Y -s ctl -L pa-IN -g pa_IN -X
+%langpack -l pl -n Polish -F -H -Y -M -A -T -X
+
+%define langpack_lang Brazilian Portuguese
+%langpack -l pt-BR -n %{langpack_lang} -f pt_BR -h pt -y pt -m pt -a pt -p pt_BR -T -X -g pt_BR
+%langpack -l pt-PT -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -T -L pt -x pt
+%langpack -l ro -n Romanian -A -F -H -Y -M -T -X
+%langpack -l ru -n Russian -F -H -Y -M -A -T -X
+%langpack -l si -n Sinhalese -F -H -S ctl -T -X
+%langpack -l sk -n Slovak -F -H -Y -M -A -T -X
+%langpack -l sl -n Slovenian -F -H -Y -M -A -T -X
+%{baseinstdir}/share/wordbook/sl.dic
+
+#rhbz#452379 clump serbian translations together
+%langpack -l sr -n Serbian -F -H -Y -A -i sr-Latn -k sr@latin -j sr_Latn -x sr*
+%langpack -l ss -n Swati -F -H -X
+%define langpack_lang Southern Sotho
+# note that langpacks-st seems to be missing as of the time of writing, so no -F here
+%langpack -l st -n %{langpack_lang} -H -X
+%langpack -l sv -n Swedish -F -H -Y -M -A -T -X
+%langpack -l ta -n Tamil -F -H -Y -s ctl -T -X
+%langpack -l te -n Telugu -F -H -Y -X
+%langpack -l th -n Thai -F -H -s ctl -c ctlseqcheck_th -X
+%langpack -l tn -n Tswana -F -H -X
+%langpack -l tr -n Turkish -F -A -T -X
+%langpack -l ts -n Tsonga -F -H -X
+%langpack -l uk -n Ukrainian -F -H -Y -M -T -X
+%langpack -l ve -n Venda -F -H -X
+%langpack -l xh -n Xhosa -F -H -X
+
+%define langpack_lang Simplified Chinese
+%langpack -l zh-Hans -n %{langpack_lang} -f zh_CN -a zh -p zh_CN -s cjk -T -L zh-CN -x zh-CN -g zh_CN
+%{baseinstdir}/share/template/common/l10n/zh_CN_ott_normal.ott
+
+%define langpack_lang Traditional Chinese
+%langpack -l zh-Hant -n %{langpack_lang} -f zh_TW -a zh -p zh_TW -s cjk -T -L zh-TW -x zh-TW -g zh_TW
+
+%langpack -l zu -n Zulu -F -H -Y -X
+%undefine langpack_lang
+
+%endif
+
+%autocorr -l en -n English
+
+%if %{with langpacks}
+
+%autocorr -l af -n Afrikaans
+%autocorr -l bg -n Bulgarian
+%autocorr -l ca -n Catalan
+%autocorr -l cs -n Czech
+%autocorr -l da -n Danish
+%autocorr -l de -n German -L
+%define autocorr_lang Lower Sorbian
+%autocorr -l dsb -n %{autocorr_lang} -L
+%autocorr -l el -n Greek
+%autocorr -l es -n Spanish -L
+%autocorr -l fa -n Farsi
+%autocorr -l fi -n Finnish
+%autocorr -l fr -n French -L
+%autocorr -l ga -n Irish
+%autocorr -l hr -n Croatian
+%define autocorr_lang Upper Sorbian
+%autocorr -l hsb -n %{autocorr_lang} -L
+%autocorr -l hu -n Hungarian
+%autocorr -l is -n Icelandic
+%autocorr -l it -n Italian -L
+%autocorr -l ja -n Japanese
+%autocorr -l ko -n Korean
+%autocorr -l lb -n Luxembourgish
+%autocorr -l lt -n Lithuanian
+%autocorr -l mn -n Mongolian
+%autocorr -l nl -n Dutch
+%autocorr -l pl -n Polish
+%autocorr -l pt -n Portuguese
+%autocorr -l ro -n Romanian
+%autocorr -l ru -n Russian
+%autocorr -l sk -n Slovak
+%autocorr -l sl -n Slovenian
+%autocorr -l sr -n Serbian
+%autocorr -l sv -n Swedish
+%autocorr -l tr -n Turkish
+%autocorr -l vi -n Vietnamese
+%autocorr -l vro -n Võro
+%autocorr -l zh -n Chinese
+
+%endif
+
+%define make_autocorr_aliases(l:) \
+%{?-l: \
+for lang in %{*}; do \
+ ln -sf acor_%{-l*}.dat acor_$lang.dat \
+done \
+} \
+%{!?-l:%{error:-l must be present}}
+
+%prep
+# verify tarballs
+gpg2 --dearmor < %{SOURCE6} > keyring.gpg
+cat %{SOURCE100} %{SOURCE101} %{SOURCE102} > %{SOURCE0}
+gpgv2 --keyring ./keyring.gpg %{SOURCE1} %{SOURCE0}
+cat %{SOURCE103} %{SOURCE104} > %{SOURCE2}
+gpgv2 --keyring ./keyring.gpg %{SOURCE3} %{SOURCE2}
+cat %{SOURCE105} %{SOURCE106} > %{SOURCE4}
+gpgv2 --keyring ./keyring.gpg %{SOURCE5} %{SOURCE4}
+
+%setup -q -n %{name}-%{version} -b 2 -b 4
+rm -rf git-hooks */git-hooks
+
+# This is normally done by %%autosetup -S git_am,
+# but that does not work with multiple -b options, so we use plain %%setup above
+%global __scm git_am
+%__scm_setup_git_am
+
+# apply patches
+%autopatch -M 99
+%patch -P 500 -p1
+
+sed -i -e /CppunitTest_sc_array_functions_test/d sc/Module_sc.mk # ppc64le
+sed -i -e /CppunitTest_sc_addin_functions_test/d sc/Module_sc.mk # aarch64/ppc64*/s390x
+sed -i -e /CppunitTest_sc_financial_functions_test/d sc/Module_sc.mk # ppc64*
+sed -i -e /CppunitTest_sc_statistical_functions_test/d sc/Module_sc.mk # aarch64/ppc64*
+sed -i -e /CppunitTest_dbaccess_hsqldb_test/d dbaccess/Module_dbaccess.mk # ppc64le
+sed -i -e s/CppunitTest_dbaccess_RowSetClones// dbaccess/Module_dbaccess.mk # ppc64le
+sed -i -e s/CppunitTest_sw_macros_test// sw/Module_sw.mk # s390x
+
+git rm vcl/qa/cppunit/graphicfilter/data/tiff/fail/CVE-2017-9936-1.tiff
+
+git commit -q -a -m 'temporarily disable failing tests'
+
+# Seeing .git dir makes some of the build tools change their behavior.
+# We do not want that. Note: it is still possible to use
+# git --git-dir=.git-rpm
+mv .git .git-rpm
+
+%build
+# path to external tarballs
+EXTSRCDIR=`dirname %{SOURCE0}`
+
+#use the RPM_OPT_FLAGS but remove the LibreOffice overridden ones
+for i in $RPM_OPT_FLAGS; do
+ case "$i" in
+ -pipe|-Wall|-Werror*|-fexceptions) continue;;
+ esac
+ ARCH_FLAGS="$ARCH_FLAGS $i"
+done
+export ARCH_FLAGS
+export CFLAGS=$ARCH_FLAGS
+export CXXFLAGS=$ARCH_FLAGS
+
+%define distrooptions --disable-eot --disable-firebird-sdbc
+
+%ifarch %{java_arches}
+%define javaoptions --with-java --enable-ext-nlpsolver --enable-ext-wiki-publisher
+%else
+%define javaoptions --without-java
+%endif
+
+%if %{with langpacks}
+%define with_lang --with-lang='%{langpack_langs}'
+%endif
+
+aclocal -I m4
+autoconf
+
+SMP_MFLAGS=%{?_smp_mflags}
+SMP_MFLAGS=$[${SMP_MFLAGS/-j/}]
+
+%if 0%{?flatpak}
+%define flatpakoptions --with-beanshell-jar=/app/share/java/bsh.jar --with-boost-libdir=%{_libdir} --with-external-dict-dir=/app/share/hunspell --with-external-hyph-dir=/app/share/hyphen --with-external-thes-dir=/app/share/mythes --with-flute-jar=/app/share/java/flute.jar --with-jdk-home=/app/lib/jvm/java --with-jfreereport-jar=/app/share/java/flow-engine.jar --with-libbase-jar=/app/share/java/libbase.jar --with-libfonts-jar=/app/share/java/libfonts.jar --with-libformula-jar=/app/share/java/libformula.jar --with-liblayout-jar=/app/share/java/liblayout.jar --with-libloader-jar=/app/share/java/libloader.jar --with-librepository-jar=/app/share/java/librepository.jar --with-libserializer-jar=/app/share/java/libserializer.jar --with-libxml-jar=/app/share/java/libxml.jar --with-sac-jar=/app/share/java/sac.jar FIREBIRDCONFIG=%{_libdir}/fb_config QT4INC=%{_includedir}
+%endif
+
+# TODO: enable coinmp?
+# avoid running autogen.sh on make
+touch autogen.lastrun
+%configure \
+ %vendoroption \
+ %{?with_lang} \
+ --with-parallelism=$SMP_MFLAGS \
+ --disable-coinmp \
+ --disable-community-flavor \
+ --disable-fetch-external \
+ --disable-openssl \
+ --disable-pdfium \
+ --disable-skia \
+ --enable-dconf \
+ --enable-evolution2 \
+ --enable-introspection \
+ --enable-odk \
+ --enable-release-build \
+ --enable-symbols \
+ --with-build-version="%{version}-%{release}" \
+ --with-external-dict-dir=/usr/share/hunspell \
+ --with-external-tar="$EXTSRCDIR" \
+ --with-help \
+ --with-system-dicts \
+ --with-system-libs \
+ --without-export-validation \
+ --without-fonts \
+ --without-lxml \
+ --without-system-dragonbox \
+ --without-system-libfixmath \
+ --enable-python=system \
+ --with-idlc-cpp=cpp \
+ --disable-scripting-beanshell --disable-scripting-javascript \
+ --enable-gtk4 \
+ --with-system-redland \
+ %{javaoptions} \
+ %{distrooptions} \
+ %{?bundling_options} \
+ %{?archoptions} \
+ %{?flatpakoptions}
+
+if ! make verbose=true build; then
+ echo "build attempt 1 failed"
+ if ! make verbose=true build; then
+ echo "build attempt 2 failed"
+ make verbose=true GMAKE_OPTIONS=-rj1 build
+ fi
+fi
+
+#generate the icons and mime type stuff
+export DESTDIR=../output
+export KDEMAINDIR=/usr
+export GNOMEDIR=/usr
+export GNOME_MIME_THEME=hicolor
+export PREFIXDIR=/usr
+# TODO use empty variables? Should make the renaming hacks in %%install
+# unnecessary.
+. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR PKG_CONFIG INSTDIR
+pushd $WORKDIR/CustomTarget/sysui/share/libreoffice
+./create_tree.sh
+popd
+mkdir $WORKDIR/os-integration
+cp -pr $WORKDIR/CustomTarget/sysui/share/output/usr/share/* $WORKDIR/os-integration
+cp -pr $WORKDIR/CustomTarget/sysui/share/libreoffice/LOKDocView-%{girapiversion}.* $WORKDIR/os-integration
+
+%install
+# remove workdir before install, to allow build on space-constrained machines
+# remove the biggest offenders
+rm -rf $WORKDIR/CxxObject $WORKDIR/GenCxxObject $WORKDIR/HelpTarget $WORKDIR/LinkTarget
+
+# TODO investigate use of make distro-pack-install
+#figure out the icon version
+. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR
+export PRODUCTVERSIONSHORT PRODUCTVERSION
+
+# installation
+
+install -m 0755 -d %{buildroot}%{instdir}
+if ! make instsetoo_native PKGFORMAT=installed DISABLE_STRIP=1 EPM=not-used-but-must-be-set; then
+ echo - ---dump log start---
+ cat $WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log
+ echo - ---dump log end---
+ echo - ---dump log start -- SDK---
+ cat $WORKDIR/installation/LibreOffice_SDK/installed/logging/en-US/log_*_en-US.log
+ echo - ---dump log end -- SDK---
+ echo - ---dump log start -- languagepacks---
+ cat $WORKDIR/installation/LibreOffice_languagepack/installed/logging/en-US/log_*_en-US.log
+ echo - ---dump log end -- languagepacks---
+ exit 1
+fi
+install -m 0755 -d %{buildroot}%{baseinstdir}
+mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}%{baseinstdir}
+%if %{with langpacks}
+for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do
+ [ `basename $langpack` = log ] && continue
+ cp -rp $langpack/* %{buildroot}%{baseinstdir}
+ rm -rf $langpack
+done
+%endif
+mv $WORKDIR/installation/LibreOffice_SDK/installed/install/en-US/sdk %{buildroot}%{sdkinstdir}
+chmod -R +w %{buildroot}%{baseinstdir}
+
+# postprocessing and tweaks
+
+# The installer currently sets UserInstallation to
+# $ORIGIN/../libreoffice/4, which is of course total nonsense. Because I
+# have no inclination to crawl through mountains of perl code to figure out
+# where it comes from, I am just going to replace it by a sensible
+# value here.
+sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG@' %{buildroot}%{baseinstdir}/program/bootstraprc
+
+#configure sdk
+pushd %{buildroot}%{sdkinstdir}
+ sed -e "s,@OO_SDK_NAME@,sdk," \
+ -e "s,@OO_SDK_HOME@,%{sdkinstdir}," \
+ -e "s,@OFFICE_HOME@,%{baseinstdir}," \
+ -e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \
+ -e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \
+ -e "s,@OO_SDK_CPP_HOME@,/usr/bin," \
+ -e "s,@OO_SDK_CAT_HOME@,/usr/bin," \
+ -e "s,@OO_SDK_SED_HOME@,/usr/bin," \
+ -e "s,@OO_SDK_CC_55_OR_HIGHER@,," \
+ -e "s,@OO_SDK_JAVA_HOME@,$JAVA_HOME," \
+ -e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \
+ -e "s,@SDK_AUTO_DEPLOYMENT@,NO," \
+ setsdkenv_unix.sh.in > setsdkenv_unix.sh
+ # ensure no unexpanded vars sneaked in
+ grep '@[A_Z0-9_]\+@' setsdkenv_unix.sh && exit 1
+ chmod 755 setsdkenv_unix.sh
+ # we don't want to install the input file
+ rm -f setsdkenv_unix.sh.in
+# TODO: is this still necessary?
+#fix permissions
+ find examples -type f -exec chmod -x {} \;
+popd
+
+#ensure a template dir for each lang
+pushd %{buildroot}%{baseinstdir}/share/template
+for I in %{langpack_langs}; do
+ mkdir -p $I
+done
+popd
+
+#Set some aliases to canonical autocorrect language files for locales with matching languages
+pushd %{buildroot}%{baseinstdir}/share/autocorr
+
+%make_autocorr_aliases -l en-GB en-AG en-AU en-BS en-BW en-BZ en-CA en-DK en-GH en-HK en-IE en-IN en-JM en-NG en-NZ en-SG en-TT
+%make_autocorr_aliases -l en-US en-PH
+#en-ZA exists and has a good autocorrect file with two or three extras that make sense for
+#neighbouring english speaking territories
+%make_autocorr_aliases -l en-ZA en-NA en-ZW
+%if %{with langpacks}
+%make_autocorr_aliases -l af-ZA af-NA
+%make_autocorr_aliases -l nl-NL nl-AW
+%make_autocorr_aliases -l sv-SE sv-FI
+%else
+rm -f acor_[a-df-z]*.dat acor_e[lsu]*.dat
+%endif
+popd
+#rhbz#484055 make these shared across multiple applications
+install -m 0755 -d %{buildroot}%{_datadir}
+mv -f %{buildroot}%{baseinstdir}/share/autocorr %{buildroot}%{_datadir}/autocorr
+chmod 755 %{buildroot}%{_datadir}/autocorr
+ln -s %{_datadir}/autocorr %{buildroot}%{baseinstdir}/share/autocorr
+
+#remove it in case we didn't build with gcj
+rm -f %{buildroot}%{baseinstdir}/program/classes/sandbox.jar
+# we don't need this in the install
+rm -f %{buildroot}%{baseinstdir}/program/classes/smoketest.jar
+
+#remove dummy .dat files
+rm -f %{buildroot}%{baseinstdir}/program/root?.dat
+
+#set standard permissions for rpmlint
+find %{buildroot}%{baseinstdir} -exec chmod +w {} \;
+find %{buildroot}%{baseinstdir} -type d -exec chmod 0755 {} \;
+
+# move python bits into site-packages
+install -m 0755 -d %{buildroot}%{libo_python_sitearch}
+pushd %{buildroot}%{libo_python_sitearch}
+echo "import sys, os" > uno.py
+echo "sys.path.append('%{baseinstdir}/program')" >> uno.py
+echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py
+cat %{buildroot}%{baseinstdir}/program/uno.py >> uno.py
+rm -f %{buildroot}%{baseinstdir}/program/uno.py*
+mv -f %{buildroot}%{baseinstdir}/program/unohelper.py* .
+mv -f %{buildroot}%{baseinstdir}/program/officehelper.py* .
+popd
+
+%py_byte_compile %{libo_python_executable} %{buildroot}%{baseinstdir}/program
+rm -rf %{buildroot}%{baseinstdir}/program/__pycache__
+
+# rhbz#477435 package opensymbol separately
+pushd %{buildroot}%{baseinstdir}/program/resource/common/fonts
+install -d -m 0755 %{buildroot}%{_fontdir}
+install -p -m 0644 *.ttf %{buildroot}%{_fontdir}
+popd
+rm -rf %{buildroot}%{baseinstdir}/program/resource/common/fonts/*ttf
+rm -rf %{buildroot}%{baseinstdir}/share/fonts/truetype/*.ttf
+
+# move platform-independent data into shared dir
+install -m 0755 -d %{buildroot}%{datadir}
+rm -f %{buildroot}%{baseinstdir}/CREDITS.fodt %{buildroot}%{baseinstdir}/LICENSE* %{buildroot}%{baseinstdir}/NOTICE
+# rhbz#1473749 ensure display of files in license/about dialogs works
+ln -sr %{buildroot}%{lodatadocdir}/CREDITS.fodt %{buildroot}%{baseinstdir}/CREDITS.fodt
+ln -sr %{buildroot}%{lodatadocdir}/LICENSE.html %{buildroot}%{baseinstdir}/LICENSE.html
+
+#ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs
+#have snuck through
+pic=0
+executable=0
+for foo in `find %{buildroot}%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do
+ chmod +wx $foo
+ ls -asl $foo
+ result=`readelf -d $foo | grep TEXTREL` || true
+ if [ "$result" != "" ]; then
+ echo "TEXTREL Warning: $foo is b0rked (-fpic missing)"
+ pic=1
+ fi
+ result=`readelf -l $foo | grep GNU_STACK | grep RWE` || true
+ if [ "$result" != "" ]; then
+ echo "GNU_STACK Warning: $foo is b0rked (-noexecstack missing)"
+ executable=1
+ fi
+done
+if [ $pic == 1 ]; then false; fi
+if [ $executable == 1 ]; then false; fi
+
+#make up some /usr/bin scripts
+install -m 0755 -d %{buildroot}%{_bindir}
+
+pushd %{buildroot}%{_bindir}
+echo \#\!/bin/sh > ooffice
+echo exec libreoffice \"\$@\" >> ooffice
+chmod a+x ooffice
+
+echo \#\!/bin/sh > ooviewdoc
+echo exec libreoffice --view \"\$@\" >> ooviewdoc
+chmod a+x ooviewdoc
+
+for app in base calc draw impress math writer; do
+ echo \#\!/bin/sh > oo$app
+ echo exec libreoffice --$app \"\$@\" >> oo$app
+ chmod a+x oo$app
+done
+
+sed -e s/LAUNCHER/unopkg/g -e s/BRAND/libreoffice/g %{SOURCE8} > unopkg
+chmod a+x unopkg
+
+sed -e s/LAUNCHER/soffice/g -e s/BRAND/libreoffice/g %{SOURCE8} > libreoffice
+chmod a+x libreoffice
+
+%if 0%{?flatpak}
+sed -i -e 's|/usr/lib|/app/lib|g' unopkg libreoffice
+%endif
+
+# provide a /usr/bin/soffice for .recently-used.xbel
+ln -s %{baseinstdir}/program/soffice soffice
+# provide a /usr/bin/openoffice.org for backwards compat
+ln -s libreoffice openoffice.org
+popd
+
+pushd %{buildroot}%{baseinstdir}/share/xdg/
+chmod u+w *.desktop
+ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'`
+for file in *.desktop; do
+ # rhbz#156677 remove the version from Name=
+ # rhbz#156067 don't version the icons
+ sed -i -e "s/ *$PRODUCTVERSION//g" \
+ -e "s/$ICONVERSION//g" \
+ -e "s/$PRODUCTVERSIONSHORT//g" \
+ $file
+done
+# do not show startcenter
+desktop-file-edit --set-key=NoDisplay --set-value=true startcenter.desktop
+%if %{with serverconfig}
+for app in base calc draw impress math startcenter writer xsltfilter; do
+ desktop-file-edit --set-key=NoDisplay --set-value=true $app.desktop
+done
+%endif
+# relocate the .desktop and icon files
+install -m 0755 -d %{buildroot}%{_datadir}/applications
+for app in base calc draw impress math startcenter writer xsltfilter; do
+ sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop
+ desktop-file-validate $app.desktop
+ install -m 0644 -p $app.desktop %{buildroot}%{_datadir}/applications/libreoffice-$app.desktop
+done
+popd
+%if 0%{?flatpak}
+# Transform the libreoffice-*.desktop files into
+# org.libreoffice.LibreOffice.*.desktop ones:
+solenv/bin/assemble-flatpak-desktop.sh %{buildroot}%{_datadir}/applications/ \
+ %{buildroot}%{_datadir}/applications/
+rm %{buildroot}%{_datadir}/applications/libreoffice-*.desktop
+%endif
+
+pushd $WORKDIR/os-integration
+#get rid of the gnome icons and other unneeded files
+rm -rf icons/gnome applications application-registry
+
+#relocate the rest of them
+# 512x512 icons are not used by anything
+for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do
+ install -m 0755 -d %{buildroot}%{_datadir}/`dirname $icon`
+ install -m 0644 -p $icon %{buildroot}%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@`
+done
+#add our mime-types, e.g. for .oxt extensions
+install -m 0755 -d %{buildroot}%{_datadir}/mime/packages
+install -m 0644 -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}%{_datadir}/mime/packages/libreoffice.xml
+
+# install LibreOfficeKit
+install -m 0755 -d %{buildroot}%{_libdir}/girepository-1.0
+install -m 0644 -p LOKDocView-%{girapiversion}.typelib %{buildroot}%{_libdir}/girepository-1.0/LOKDocView-%{girapiversion}.typelib
+install -m 0755 -d %{buildroot}%{_libdir}/gir-1.0
+install -m 0644 -p LOKDocView-%{girapiversion}.gir %{buildroot}%{_libdir}/gir-1.0/LOKDocView-%{girapiversion}.gir
+mv %{buildroot}%{baseinstdir}/program/liblibreofficekitgtk.so %{buildroot}%{_libdir}
+popd
+
+# install LibreOfficeKit headers
+install -m 0755 -d %{buildroot}%{_includedir}/LibreOfficeKit
+install -m 0644 -p include/LibreOfficeKit/* %{buildroot}%{_includedir}/LibreOfficeKit
+
+rm -rf %{buildroot}%{baseinstdir}/readmes
+rm -rf %{buildroot}%{baseinstdir}/licenses
+rm -rf %{buildroot}%{baseinstdir}/share/theme_definitions
+
+# to-do, remove this in libreoffice 4.4 when --without-ppds is gone, it'll do the right thing on its own then
+install -m 0755 -d %{buildroot}%{baseinstdir}/share/psprint/driver
+install -m 0644 -p vcl/unx/generic/printer/configuration/ppds/SGENPRT.PS %{buildroot}%{baseinstdir}/share/psprint/driver/SGENPRT.PS
+
+# to auto have postgres in classpath if subsequently installed
+sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}%{baseinstdir}/program/fundamentalrc
+
+# move glade catalog to system glade dir
+install -m 0755 -d %{buildroot}%{_datadir}/glade/catalogs
+mv %{buildroot}%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade/catalogs
+install -m 0755 -d %{buildroot}%{_datadir}/glade3/catalogs
+ln -sr %{buildroot}%{_datadir}/glade/catalogs/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs
+
+# install appdata
+install -m 0755 -d %{buildroot}%{_datadir}/metainfo
+install -m 0644 -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/metainfo
+
+# install symbolic icons
+install -m 0755 -d %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
+install -m 0644 -p %{SOURCE42} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
+install -m 0644 -p %{SOURCE43} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
+install -m 0644 -p %{SOURCE44} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
+install -m 0644 -p %{SOURCE45} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
+install -m 0644 -p %{SOURCE46} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
+install -m 0644 -p %{SOURCE47} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
+install -m 0644 -p %{SOURCE48} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
+
+%if 0%{?flatpak}
+# Duplicate icons/*/*/apps/libreoffice-* as
+# icons/*/*/apps/org.libreoffice.LibreOffice.* (so they end up "with both their
+# original libreoffice-* name as well as the org.libreoffice name needed by
+# Flatpak, which fixes the window icons", see <https://github.com/flathub/
+# org.libreoffice.LibreOffice/commit/945f6caad87658b1df1e8918bd5f64939058ab7f>
+# "clean up desktop integration"):
+for i in %{buildroot}%{_datadir}/icons/*/*/apps/libreoffice-*; do
+ cp -a "$i" \
+ "$(dirname "$i")"/org.libreoffice.LibreOffice."${i##*/apps/libreoffice-}"
+done
+%endif
+
+# install man pages
+install -m 0755 -d %{buildroot}%{_mandir}/man1
+install -m 0644 -p sysui/desktop/man/*.1 %{buildroot}%{_mandir}/man1
+for app in oobase oocalc oodraw ooffice ooimpress oomath ooviewdoc oowriter openoffice.org soffice; do
+ echo '.so man1/libreoffice.1' > $app.1
+ install -m 0644 -p $app.1 %{buildroot}%{_mandir}/man1
+done
+
+export DESTDIR=%{buildroot}
+./solenv/bin/install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb
+
+%if 0%{?flatpak}
+# Assemble the libreoffice-*.appdata.xml files into a single
+# org.libreoffice.LibreOffice.appdata.xml; first create the single file:
+solenv/bin/assemble-flatpak-appdata-step1.sh \
+ %{buildroot}%{_datadir}/metainfo/ 0
+# ...then append the original files to the single file:
+solenv/bin/assemble-flatpak-appdata-step2.sh \
+ %{buildroot}%{_datadir}/metainfo/ %{buildroot}%{_datadir}/metainfo/
+rm %{buildroot}%{_datadir}/metainfo/libreoffice-*.appdata.xml
+%endif
+
+%ifarch %{java_arches}
+# move stable API jars to noarch java location
+install -m 0755 -d %{buildroot}%{_javadir}/%{name}
+for jar in %{buildroot}%{baseinstdir}/program/classes/*.jar; do
+ j=`basename $jar`
+ case ${j%.jar} in
+ juh|jurt|libreoffice|ridl|unoloader|unoil|officebean)
+ mv $jar %{buildroot}%{_javadir}/%{name}
+ ln -sr %{buildroot}%{_javadir}/%{name}/$j $jar
+ ;;
+ esac
+done
+%else
+# make sure something creates this dir
+install -m 0755 -d %{buildroot}%{baseinstdir}/share/extensions
+# and remove this
+rm -f %{buildroot}%{baseinstdir}/program/officebean.abignore
+%endif
+
+%check
+
+%files
+
+%files filters
+
+%files core
+%dir %{baseinstdir}
+%{baseinstdir}/CREDITS.fodt
+%{baseinstdir}/LICENSE.html
+%dir %{baseinstdir}/help
+%{baseinstdir}/help/idxcaption.xsl
+%{baseinstdir}/help/idxcontent.xsl
+%{baseinstdir}/help/main_transform.xsl
+%{baseinstdir}/presets
+%dir %{baseinstdir}/program
+%{baseinstdir}/program/libbasprovlo.so
+%{baseinstdir}/program/libcairocanvaslo.so
+%{baseinstdir}/program/libcanvasfactorylo.so
+%ifarch %{java_arches}
+%dir %{baseinstdir}/program/classes
+%{baseinstdir}/program/classes/commonwizards.jar
+%{baseinstdir}/program/classes/form.jar
+%{baseinstdir}/program/classes/query.jar
+%{baseinstdir}/program/classes/report.jar
+%{baseinstdir}/program/classes/ScriptFramework.jar
+%{baseinstdir}/program/classes/ScriptProviderForJava.jar
+%{baseinstdir}/program/classes/table.jar
+%{baseinstdir}/program/classes/unoil.jar
+%{baseinstdir}/program/classes/XMergeBridge.jar
+%{baseinstdir}/program/classes/xmerge.jar
+%endif
+%{baseinstdir}/program/libcmdmaillo.so
+%{baseinstdir}/program/libdeployment.so
+%{baseinstdir}/program/libdeploymentgui.so
+%{baseinstdir}/program/libdlgprovlo.so
+%{baseinstdir}/program/libexpwraplo.so
+%{baseinstdir}/program/libfps_officelo.so
+%{baseinstdir}/program/gdbtrace
+%{baseinstdir}/program/gengal
+%{baseinstdir}/program/gengal.bin
+%{baseinstdir}/program/libi18nsearchlo.so
+%{baseinstdir}/program/libldapbe2lo.so
+%{baseinstdir}/program/libacclo.so
+%{baseinstdir}/program/libanimcorelo.so
+%{baseinstdir}/program/libavmedia*.so
+%{baseinstdir}/program/libbasctllo.so
+%{baseinstdir}/program/libbiblo.so
+%{baseinstdir}/program/libcached1.so
+%{baseinstdir}/program/libcanvastoolslo.so
+%{baseinstdir}/program/libchart*lo.so
+%{baseinstdir}/program/libclewlo.so
+%{baseinstdir}/program/libcollator_data.so
+%{baseinstdir}/program/libcppcanvaslo.so
+%{baseinstdir}/program/libctllo.so
+%{baseinstdir}/program/libcuilo.so
+%{baseinstdir}/program/libdbalo.so
+%{baseinstdir}/program/libdbahsqllo.so
+%{baseinstdir}/program/libdbaselo.so
+%{baseinstdir}/program/libdbaxmllo.so
+#{baseinstdir}/program/libdbmmlo.so
+%{baseinstdir}/program/libdbpool2.so
+%{baseinstdir}/program/libdbtoolslo.so
+%{baseinstdir}/program/libdbulo.so
+%{baseinstdir}/program/libdeploymentmisclo.so
+%{baseinstdir}/program/libdesktop_detectorlo.so
+%{baseinstdir}/program/libdict_ja.so
+%{baseinstdir}/program/libdict_zh.so
+%{baseinstdir}/program/libdrawinglayerlo.so
+%{baseinstdir}/program/libdrawinglayercorelo.so
+%{baseinstdir}/program/libeditenglo.so
+%{baseinstdir}/program/libembobj.so
+%{baseinstdir}/program/libemboleobj.so
+%{baseinstdir}/program/libemfiolo.so
+%{baseinstdir}/program/libevoab*.so
+%{baseinstdir}/program/libevtattlo.so
+%{baseinstdir}/program/libicglo.so
+%{baseinstdir}/program/libindex_data.so
+%{baseinstdir}/program/libfilelo.so
+%{baseinstdir}/program/libfilterconfiglo.so
+%{baseinstdir}/program/libflatlo.so
+%{baseinstdir}/program/libfrmlo.so
+%{baseinstdir}/program/libguesslanglo.so
+%{baseinstdir}/program/libhelplinkerlo.so
+%{baseinstdir}/program/libhyphenlo.so
+%ifarch %{java_arches}
+%{baseinstdir}/program/libjdbclo.so
+%endif
+%{baseinstdir}/program/libLanguageToollo.so
+%{baseinstdir}/program/liblnglo.so
+%{baseinstdir}/program/libloglo.so
+%{baseinstdir}/program/liblocaledata_en.so
+%{baseinstdir}/program/liblocaledata_es.so
+%{baseinstdir}/program/liblocaledata_euro.so
+%{baseinstdir}/program/liblocaledata_others.so
+%{baseinstdir}/program/libmozbootstraplo.so
+%{baseinstdir}/program/libmsfilterlo.so
+%{baseinstdir}/program/libmtfrendererlo.so
+%{baseinstdir}/program/libmysql_jdbclo.so
+%{baseinstdir}/program/libmysqlclo.so
+%{baseinstdir}/program/libodbclo.so
+%{baseinstdir}/program/liboglcanvaslo.so
+%{baseinstdir}/program/liboffacclo.so
+%{baseinstdir}/program/libooxlo.so
+%{baseinstdir}/program/libopencllo.so
+%{baseinstdir}/program/libpcrlo.so
+%{baseinstdir}/program/libpdffilterlo.so
+%{baseinstdir}/program/libprotocolhandlerlo.so
+%{baseinstdir}/program/libsaxlo.so
+%{baseinstdir}/program/libscnlo.so
+%{baseinstdir}/program/libscriptframe.so
+%{baseinstdir}/program/libsdlo.so
+%{baseinstdir}/program/libsdbc2.so
+%{baseinstdir}/program/libsdbtlo.so
+%{baseinstdir}/program/libsddlo.so
+%{baseinstdir}/program/libsduilo.so
+%{baseinstdir}/program/libspelllo.so
+%{baseinstdir}/program/libsrtrs1.so
+%{baseinstdir}/program/libstoragefdlo.so
+%{baseinstdir}/program/libsvgiolo.so
+%{baseinstdir}/program/libsvxlo.so
+%{baseinstdir}/program/libsvxcorelo.so
+%{baseinstdir}/program/libswdlo.so
+%{baseinstdir}/program/libswlo.so
+%{baseinstdir}/program/libtextconv_dict.so
+%{baseinstdir}/program/libtextconversiondlgslo.so
+%{baseinstdir}/program/libtextfdlo.so
+%{baseinstdir}/program/libodfflatxmllo.so
+# TODO: shouldn't it have lo suffix?
+%{baseinstdir}/program/libucbhelper.so
+%{baseinstdir}/program/libucpchelp1.so
+%{baseinstdir}/program/libucpdav1.so
+%{baseinstdir}/program/libucpftp1.so
+%{baseinstdir}/program/libucphier1.so
+%{baseinstdir}/program/libucppkg1.so
+%{baseinstdir}/program/libunordflo.so
+%{baseinstdir}/program/libunopkgapp.so
+%{baseinstdir}/program/libunoxmllo.so
+%{baseinstdir}/program/libuuilo.so
+%{baseinstdir}/program/libvbahelperlo.so
+%{baseinstdir}/program/libxmlfalo.so
+%{baseinstdir}/program/libxmlfdlo.so
+%{baseinstdir}/program/libxoflo.so
+%{baseinstdir}/program/libxsec_xmlsec.so
+%{baseinstdir}/program/libxsltdlglo.so
+%{baseinstdir}/program/libxsltfilterlo.so
+%{baseinstdir}/program/libxstor.so
+%{baseinstdir}/program/liblosessioninstalllo.so
+%{baseinstdir}/program/libmigrationoo2lo.so
+%{baseinstdir}/program/libmigrationoo3lo.so
+%{baseinstdir}/program/libmsformslo.so
+%{baseinstdir}/program/opencl
+%dir %{baseinstdir}/program/opengl
+%{baseinstdir}/program/opengl/*.glsl
+%{baseinstdir}/program/types/offapi.rdb
+%{baseinstdir}/program/libpasswordcontainerlo.so
+%{baseinstdir}/program/pagein-common
+%dir %{baseinstdir}/program/resource
+%dir %{baseinstdir}/program/resource/common
+%dir %{baseinstdir}/program/resource/common/fonts
+%{baseinstdir}/program/senddoc
+%dir %{baseinstdir}/program/services
+%{baseinstdir}/program/services/services.rdb
+%{baseinstdir}/program/libsimplecanvaslo.so
+%{baseinstdir}/program/libslideshowlo.so
+%{baseinstdir}/program/libsmlo.so
+%{baseinstdir}/program/libsmdlo.so
+%{baseinstdir}/program/libsofficeapp.so
+%{baseinstdir}/program/libstringresourcelo.so
+%{baseinstdir}/program/libsysshlo.so
+%{baseinstdir}/program/libucpcmis1lo.so
+%{baseinstdir}/program/libucpexpand1lo.so
+%{baseinstdir}/program/libucpextlo.so
+%{baseinstdir}/program/libucpimagelo.so
+%{baseinstdir}/program/libucptdoc1lo.so
+%{baseinstdir}/program/lounorc
+%{baseinstdir}/program/libupdatefeedlo.so
+%{baseinstdir}/program/uri-encode
+%{baseinstdir}/program/libvbaeventslo.so
+%{baseinstdir}/program/libvclcanvaslo.so
+%{baseinstdir}/program/versionrc
+%dir %{baseinstdir}/share
+%dir %{baseinstdir}/share/classification
+%{baseinstdir}/share/classification/example*.xml
+%dir %{baseinstdir}/share/fonts
+%dir %{baseinstdir}/share/fonts/truetype
+%{baseinstdir}/share/fonts/truetype/fc_local.conf
+%dir %{baseinstdir}/share/Scripts
+%ifarch %{java_arches}
+%{baseinstdir}/share/Scripts/java
+%endif
+%dir %{baseinstdir}/share/autotext
+%dir %{_datadir}/autocorr
+%{baseinstdir}/share/autocorr
+%{baseinstdir}/share/basic
+%dir %{baseinstdir}/share/config
+%{baseinstdir}/share/config/images_breeze.zip
+%{baseinstdir}/share/config/images_breeze_svg.zip
+%{baseinstdir}/share/config/images_breeze_dark.zip
+%{baseinstdir}/share/config/images_breeze_dark_svg.zip
+%{baseinstdir}/share/config/images_colibre.zip
+%{baseinstdir}/share/config/images_colibre_svg.zip
+%{baseinstdir}/share/config/images_colibre_dark.zip
+%{baseinstdir}/share/config/images_colibre_dark_svg.zip
+%{baseinstdir}/share/config/images_elementary.zip
+%{baseinstdir}/share/config/images_elementary_svg.zip
+%{baseinstdir}/share/config/images_helpimg.zip
+%{baseinstdir}/share/config/images_karasa_jaga.zip
+%{baseinstdir}/share/config/images_karasa_jaga_svg.zip
+%{baseinstdir}/share/config/images_sifr.zip
+%{baseinstdir}/share/config/images_sifr_dark.zip
+%{baseinstdir}/share/config/images_sifr_dark_svg.zip
+%{baseinstdir}/share/config/images_sifr_svg.zip
+%{baseinstdir}/share/config/images_sukapura.zip
+%{baseinstdir}/share/config/images_sukapura_svg.zip
+%{baseinstdir}/share/config/images_sukapura_dark.zip
+%{baseinstdir}/share/config/images_sukapura_dark_svg.zip
+%dir %{baseinstdir}/share/tipoftheday
+%{baseinstdir}/share/tipoftheday/*
+%dir %{baseinstdir}/share/toolbarmode
+%{baseinstdir}/share/toolbarmode/*
+%dir %{baseinstdir}/share/config/soffice.cfg
+%{baseinstdir}/share/config/soffice.cfg/modules
+%{baseinstdir}/share/config/soffice.cfg/*/ui
+%{baseinstdir}/share/palette
+%{baseinstdir}/share/config/webcast
+%{baseinstdir}/share/config/wizard
+%dir %{baseinstdir}/share/dtd
+%{baseinstdir}/share/dtd/officedocument
+%{baseinstdir}/share/gallery
+%dir %{baseinstdir}/share/labels
+%{baseinstdir}/share/labels/labels.xml
+%dir %{baseinstdir}/share/psprint
+%config %{baseinstdir}/share/psprint/psprint.conf
+%{baseinstdir}/share/psprint/driver
+%dir %{baseinstdir}/share/registry
+%{baseinstdir}/share/registry/draw.xcd
+%{baseinstdir}/share/registry/gnome.xcd
+%{baseinstdir}/share/registry/lingucomponent.xcd
+%{baseinstdir}/share/registry/main.xcd
+%{baseinstdir}/share/registry/math.xcd
+%{baseinstdir}/share/registry/oo-ad-ldap.xcd.sample
+%{baseinstdir}/share/registry/oo-ldap.xcd.sample
+%dir %{baseinstdir}/share/registry/res
+%dir %{baseinstdir}/share/template
+%dir %{baseinstdir}/share/template/common
+%{baseinstdir}/share/template/common/draw
+%{baseinstdir}/share/template/common/internal
+%{baseinstdir}/share/template/common/officorr
+%{baseinstdir}/share/template/common/offimisc
+%{baseinstdir}/share/template/common/personal
+%{baseinstdir}/share/template/common/presnt
+%{baseinstdir}/share/template/common/styles
+%{baseinstdir}/share/template/common/wizard
+%dir %{baseinstdir}/share/template/common/l10n
+%{baseinstdir}/share/template/wizard
+%dir %{baseinstdir}/share/wordbook
+%{baseinstdir}/share/wordbook/en-GB.dic
+%{baseinstdir}/share/wordbook/en-US.dic
+%{baseinstdir}/share/wordbook/technical.dic
+%{baseinstdir}/program/liblnthlo.so
+%{_bindir}/unopkg
+%{_mandir}/man1/unopkg.1*
+%{baseinstdir}/program/libxmlsecurity.so
+%{baseinstdir}/program/libconfigmgrlo.so
+%{baseinstdir}/program/libdesktopbe1lo.so
+%{baseinstdir}/program/libfsstoragelo.so
+%{baseinstdir}/program/libi18npoollo.so
+%{baseinstdir}/program/libbasegfxlo.so
+# TODO: shouldn't it have lo suffix?
+%{baseinstdir}/program/libcomphelper.so
+%{baseinstdir}/program/libfwklo.so
+# TODO: shouldn't it have lo suffix?
+%{baseinstdir}/program/libi18nutil.so
+%{baseinstdir}/program/libpackage2.so
+%{baseinstdir}/program/libsblo.so
+%{baseinstdir}/program/libsfxlo.so
+%{baseinstdir}/program/libsotlo.so
+%{baseinstdir}/program/libspllo.so
+%{baseinstdir}/program/libsvllo.so
+%{baseinstdir}/program/libsvtlo.so
+%{baseinstdir}/program/libtklo.so
+%{baseinstdir}/program/libtllo.so
+%{baseinstdir}/program/libucb1.so
+%{baseinstdir}/program/libucpfile1.so
+%{baseinstdir}/program/libutllo.so
+%{baseinstdir}/program/libvcllo.so
+%{baseinstdir}/program/libwriterperfectlo.so
+%{baseinstdir}/program/libxmlscriptlo.so
+%{baseinstdir}/program/libxolo.so
+%{baseinstdir}/program/liblocalebe1lo.so
+%{baseinstdir}/program/libucpgio1lo.so
+%{baseinstdir}/program/types/oovbaapi.rdb
+#share unopkg
+%dir %{baseinstdir}/share/extensions
+%{baseinstdir}/program/unopkg
+%{baseinstdir}/program/unopkg.bin
+%{baseinstdir}/program/bootstraprc
+%{baseinstdir}/program/fundamentalrc
+%{baseinstdir}/program/setuprc
+%{baseinstdir}/program/intro.png
+%{baseinstdir}/program/intro-highres.png
+%{baseinstdir}/program/opencltest
+%{baseinstdir}/program/soffice
+%{baseinstdir}/program/soffice.bin
+%{baseinstdir}/program/sofficerc
+%{baseinstdir}/program/unoinfo
+%{baseinstdir}/program/oosplash
+%{baseinstdir}/program/shell/
+%dir %{baseinstdir}/share/filter
+%{baseinstdir}/share/filter/oox-drawingml-adj-names
+%{baseinstdir}/share/filter/oox-drawingml-cs-presets
+%{baseinstdir}/share/filter/signature-line.svg
+%{baseinstdir}/share/filter/signature-line-draw.svg
+%{baseinstdir}/share/filter/vml-shape-types
+%{baseinstdir}/share/xdg/
+%{baseinstdir}/program/redirectrc
+%if 0%{?flatpak}
+%{_datadir}/metainfo/org.libreoffice.LibreOffice.appdata.xml
+%{_datadir}/applications/org.libreoffice.LibreOffice.desktop
+%else
+%{_datadir}/applications/libreoffice-startcenter.desktop
+%endif
+#launchers
+%{_bindir}/libreoffice
+%{_bindir}/openoffice.org
+%{_bindir}/soffice
+%{_bindir}/ooffice
+%{_bindir}/ooviewdoc
+%{_mandir}/man1/libreoffice.1*
+%{_mandir}/man1/openoffice.org.1*
+%{_mandir}/man1/soffice.1*
+%{_mandir}/man1/ooffice.1*
+%{_mandir}/man1/ooviewdoc.1*
+
+%files base
+%ifarch %{java_arches}
+%{baseinstdir}/program/classes/hsqldb.jar
+%{baseinstdir}/program/classes/reportbuilder.jar
+%{baseinstdir}/program/classes/reportbuilderwizard.jar
+%{baseinstdir}/program/classes/sdbc_hsqldb.jar
+%endif
+%{baseinstdir}/program/access2base.py
+%{baseinstdir}/program/libabplo.so
+%{baseinstdir}/program/libdbplo.so
+%ifarch %{java_arches}
+%{baseinstdir}/program/libhsqldb.so
+%{baseinstdir}/program/librptlo.so
+%{baseinstdir}/program/librptuilo.so
+%{baseinstdir}/program/librptxmllo.so
+%endif
+%{baseinstdir}/share/registry/base.xcd
+%ifarch %{java_arches}
+%{baseinstdir}/share/registry/reportbuilder.xcd
+%endif
+%{baseinstdir}/program/sbase
+%if 0%{?flatpak}
+%{_datadir}/applications/org.libreoffice.LibreOffice.base.desktop
+%else
+%{_datadir}/metainfo/libreoffice-base.appdata.xml
+%{_datadir}/applications/libreoffice-base.desktop
+%endif
+%{_bindir}/oobase
+%{_mandir}/man1/oobase.1*
+
+%ifarch %{java_arches}
+
+%files wiki-publisher
+%docdir %{baseinstdir}/share/extensions/wiki-publisher/license
+%{baseinstdir}/share/extensions/wiki-publisher
+
+%files nlpsolver
+%docdir %{baseinstdir}/share/extensions/nlpsolver/help
+%{baseinstdir}/share/extensions/nlpsolver
+
+%files officebean
+%{baseinstdir}/program/classes/officebean.jar
+%{baseinstdir}/program/libofficebean.so
+
+%files officebean-common
+%{_javadir}/%{name}/officebean.jar
+
+%endif
+
+%files ogltrans
+%{baseinstdir}/program/libOGLTranslo.so
+%{baseinstdir}/program/opengl/basicFragmentShader.glsl
+%{baseinstdir}/program/opengl/basicVertexShader.glsl
+%{baseinstdir}/program/opengl/dissolveFragmentShader.glsl
+%{baseinstdir}/program/opengl/fadeBlackFragmentShader.glsl
+%{baseinstdir}/program/opengl/fadeFragmentShader.glsl
+%{baseinstdir}/program/opengl/glitterFragmentShader.glsl
+%{baseinstdir}/program/opengl/glitterVertexShader.glsl
+%{baseinstdir}/program/opengl/honeycombFragmentShader.glsl
+%{baseinstdir}/program/opengl/honeycombGeometryShader.glsl
+%{baseinstdir}/program/opengl/honeycombVertexShader.glsl
+%{baseinstdir}/program/opengl/rippleFragmentShader.glsl
+%{baseinstdir}/program/opengl/reflectionFragmentShader.glsl
+%{baseinstdir}/program/opengl/reflectionVertexShader.glsl
+%{baseinstdir}/program/opengl/staticFragmentShader.glsl
+%{baseinstdir}/program/opengl/vortexFragmentShader.glsl
+%{baseinstdir}/program/opengl/vortexGeometryShader.glsl
+%{baseinstdir}/program/opengl/vortexVertexShader.glsl
+%{baseinstdir}/share/config/soffice.cfg/simpress/transitions-ogl.xml
+%{baseinstdir}/share/registry/ogltrans.xcd
+
+%files pdfimport
+%{baseinstdir}/program/libpdfimportlo.so
+%{baseinstdir}/program/xpdfimport
+%{baseinstdir}/share/registry/pdfimport.xcd
+%dir %{baseinstdir}/share/xpdfimport
+%{baseinstdir}/share/xpdfimport/xpdfimport_err.pdf
+
+%_font_pkg -n %{fontname} opens___.ttf
+%doc instdir/LICENSE
+
+%files calc
+%{baseinstdir}/program/libanalysislo.so
+%{baseinstdir}/program/libcalclo.so
+%{baseinstdir}/program/libdatelo.so
+%{baseinstdir}/program/libforlo.so
+%{baseinstdir}/program/libforuilo.so
+%{baseinstdir}/program/libnumbertextlo.so
+%{baseinstdir}/program/libpricinglo.so
+%{baseinstdir}/program/libsclo.so
+%{baseinstdir}/program/libscdlo.so
+%{baseinstdir}/program/libscfiltlo.so
+%{baseinstdir}/program/libscuilo.so
+%{baseinstdir}/program/libsolverlo.so
+%{baseinstdir}/program/libwpftcalclo.so
+%{baseinstdir}/program/libvbaobjlo.so
+%{baseinstdir}/share/calc/styles.xml
+%{baseinstdir}/share/registry/calc.xcd
+%{baseinstdir}/program/pagein-calc
+%{baseinstdir}/program/scalc
+%if 0%{?flatpak}
+%{_datadir}/applications/org.libreoffice.LibreOffice.calc.desktop
+%else
+%{_datadir}/metainfo/libreoffice-calc.appdata.xml
+%{_datadir}/applications/libreoffice-calc.desktop
+%endif
+%{_bindir}/oocalc
+%{_mandir}/man1/oocalc.1*
+
+%files draw
+%{baseinstdir}/program/pagein-draw
+%{baseinstdir}/program/sdraw
+%if 0%{?flatpak}
+%{_datadir}/applications/org.libreoffice.LibreOffice.draw.desktop
+%else
+%{_datadir}/metainfo/libreoffice-draw.appdata.xml
+%{_datadir}/applications/libreoffice-draw.desktop
+%endif
+%{_bindir}/oodraw
+%{_mandir}/man1/oodraw.1*
+
+%files emailmerge
+%{baseinstdir}/program/mailmerge.py*
+%{baseinstdir}/program/msgbox.py*
+
+%files writer
+%{baseinstdir}/program/libhwplo.so
+%{baseinstdir}/program/liblwpftlo.so
+%{baseinstdir}/program/libmswordlo.so
+%{baseinstdir}/program/libswuilo.so
+%{baseinstdir}/program/libt602filterlo.so
+%{baseinstdir}/program/libwpftwriterlo.so
+%{baseinstdir}/program/libwriterfilterlo.so
+%{baseinstdir}/program/libwriterlo.so
+%{baseinstdir}/program/libvbaswobjlo.so
+%{baseinstdir}/share/registry/writer.xcd
+%{baseinstdir}/program/pagein-writer
+%{baseinstdir}/program/swriter
+%if 0%{?flatpak}
+%{_datadir}/applications/org.libreoffice.LibreOffice.writer.desktop
+%else
+%{_datadir}/metainfo/libreoffice-writer.appdata.xml
+%{_datadir}/applications/libreoffice-writer.desktop
+%endif
+%{_bindir}/oowriter
+%{_mandir}/man1/oowriter.1*
+
+%files impress
+%{baseinstdir}/program/libPresentationMinimizerlo.so
+%{baseinstdir}/program/libPresenterScreenlo.so
+%{baseinstdir}/program/libwpftimpresslo.so
+%dir %{baseinstdir}/share/config/soffice.cfg/simpress
+%{baseinstdir}/share/config/soffice.cfg/simpress/effects.xml
+%{baseinstdir}/share/config/soffice.cfg/simpress/layoutlist.xml
+%{baseinstdir}/share/config/soffice.cfg/simpress/objectlist.xml
+%{baseinstdir}/share/config/soffice.cfg/simpress/styles.xml
+%{baseinstdir}/share/config/soffice.cfg/simpress/transitions.xml
+%{baseinstdir}/share/registry/impress.xcd
+%{baseinstdir}/program/pagein-impress
+%{baseinstdir}/program/simpress
+%if 0%{?flatpak}
+%{_datadir}/applications/org.libreoffice.LibreOffice.impress.desktop
+%else
+%{_datadir}/metainfo/libreoffice-impress.appdata.xml
+%{_datadir}/applications/libreoffice-impress.desktop
+%endif
+%{_bindir}/ooimpress
+%{_mandir}/man1/ooimpress.1*
+
+%files math
+%{baseinstdir}/program/smath
+%if 0%{?flatpak}
+%{_datadir}/applications/org.libreoffice.LibreOffice.math.desktop
+%else
+%{_datadir}/applications/libreoffice-math.desktop
+%endif
+%{_bindir}/oomath
+%{_mandir}/man1/oomath.1*
+
+%files graphicfilter
+%{baseinstdir}/program/libgraphicfilterlo.so
+%{baseinstdir}/program/libsvgfilterlo.so
+%{baseinstdir}/program/libwpftdrawlo.so
+%{baseinstdir}/share/registry/graphicfilter.xcd
+
+%files xsltfilter
+%{baseinstdir}/share/xslt
+%{baseinstdir}/share/registry/xsltfilter.xcd
+%if 0%{?flatpak}
+%{_datadir}/applications/org.libreoffice.LibreOffice.xsltfilter.desktop
+%else
+%{_datadir}/applications/libreoffice-xsltfilter.desktop
+%endif
+
+%files postgresql
+%{baseinstdir}/program/libpostgresql-sdbclo.so
+%{baseinstdir}/program/libpostgresql-sdbc-impllo.so
+%{baseinstdir}/program/services/postgresql-sdbc.rdb
+%{baseinstdir}/share/registry/postgresql.xcd
+
+%files ure
+%ifarch %{java_arches}
+%{baseinstdir}/program/classes/java_uno.jar
+%{baseinstdir}/program/classes/juh.jar
+%{baseinstdir}/program/classes/jurt.jar
+%{baseinstdir}/program/classes/libreoffice.jar
+%{baseinstdir}/program/classes/ridl.jar
+%{baseinstdir}/program/classes/unoloader.jar
+%{baseinstdir}/program/javaldx
+%{baseinstdir}/program/javavendors.xml
+%{baseinstdir}/program/jvmfwk3rc
+%{baseinstdir}/program/JREProperties.class
+%endif
+%{baseinstdir}/program/libaffine_uno_uno.so
+%{baseinstdir}/program/libbinaryurplo.so
+%{baseinstdir}/program/libbootstraplo.so
+%{baseinstdir}/program/libgcc3_uno.so
+%{baseinstdir}/program/libi18nlangtag.so
+%{baseinstdir}/program/libintrospectionlo.so
+%{baseinstdir}/program/libinvocadaptlo.so
+%{baseinstdir}/program/libinvocationlo.so
+%{baseinstdir}/program/libiolo.so
+%ifarch %{java_arches}
+%{baseinstdir}/program/libjava_uno.so
+%{baseinstdir}/program/libjavaloaderlo.so
+%{baseinstdir}/program/libjavavmlo.so
+%{baseinstdir}/program/libjpipe.so
+%{baseinstdir}/program/libjuh.so
+%{baseinstdir}/program/libjuhx.so
+%{baseinstdir}/program/libjvmaccesslo.so
+%{baseinstdir}/program/libjvmfwklo.so
+%endif
+%{baseinstdir}/program/liblog_uno_uno.so
+%{baseinstdir}/program/libnamingservicelo.so
+%{baseinstdir}/program/libproxyfaclo.so
+%{baseinstdir}/program/libreflectionlo.so
+%{baseinstdir}/program/libreglo.so
+%{baseinstdir}/program/libsal_textenclo.so
+%{baseinstdir}/program/libstocserviceslo.so
+%{baseinstdir}/program/libstorelo.so
+%{baseinstdir}/program/libuno_cppu.so.3
+%{baseinstdir}/program/libuno_cppuhelpergcc3.so.3
+%{baseinstdir}/program/libuno_purpenvhelpergcc3.so.3
+%{baseinstdir}/program/libuno_sal.so.3
+%{baseinstdir}/program/libuno_salhelpergcc3.so.3
+%{baseinstdir}/program/libunoidllo.so
+%{baseinstdir}/program/libunsafe_uno_uno.so
+%{baseinstdir}/program/libuuresolverlo.so
+%{baseinstdir}/program/libxmlreaderlo.so
+%{baseinstdir}/program/regview
+%{baseinstdir}/program/services.rdb
+%{baseinstdir}/program/types.rdb
+%{baseinstdir}/program/uno
+%{baseinstdir}/program/uno.bin
+%{baseinstdir}/program/unorc
+
+%files ure-common
+%ifarch %{java_arches}
+%dir %{_javadir}/%{name}
+%{_javadir}/%{name}/juh.jar
+%{_javadir}/%{name}/jurt.jar
+%{_javadir}/%{name}/libreoffice.jar
+%{_javadir}/%{name}/ridl.jar
+%{_javadir}/%{name}/unoloader.jar
+%endif
+%license instdir/LICENSE
+
+%files sdk
+%{sdkinstdir}/
+%exclude %{sdkinstdir}/docs/
+%exclude %{sdkinstdir}/examples/
+
+%files sdk-doc
+%docdir %{sdkinstdir}/docs
+%license instdir/LICENSE
+%{sdkinstdir}/docs/
+%{sdkinstdir}/examples/
+
+%files pyuno
+%{baseinstdir}/program/libpyuno.so
+%{baseinstdir}/program/pythonloader.py*
+%{baseinstdir}/program/libpythonloaderlo.so
+%{baseinstdir}/program/pythonloader.unorc
+%{baseinstdir}/program/pythonscript.py*
+%{baseinstdir}/program/pyuno.so
+%{baseinstdir}/program/scriptforge.py*
+%{baseinstdir}/program/services/pyuno.rdb
+%{baseinstdir}/program/services/scriptproviderforpython.rdb
+%{baseinstdir}/program/wizards
+%{baseinstdir}/share/Scripts/python
+%exclude %{baseinstdir}/share/Scripts/python/LibreLogo
+%{libo_python_sitearch}/uno.py*
+%{libo_python_sitearch}/unohelper.py*
+%{libo_python_sitearch}/officehelper.py*
+%{libo_python_sitearch}/__pycache__/uno.cpython-*
+%{libo_python_sitearch}/__pycache__/unohelper.cpython-*
+%{libo_python_sitearch}/__pycache__/officehelper.cpython-*
+%{baseinstdir}/share/registry/pyuno.xcd
+
+%files librelogo
+%{baseinstdir}/share/registry/librelogo.xcd
+%{baseinstdir}/share/Scripts/python/LibreLogo
+
+%files glade
+%{_datadir}/glade
+%{_datadir}/glade3
+
+%files data
+%{_datadir}/icons/hicolor/*/*/libreoffice*
+%if 0%{?flatpak}
+%{_datadir}/icons/hicolor/*/*/org.libreoffice.LibreOffice.*
+%endif
+%{_datadir}/mime/packages/libreoffice.xml
+%ifarch %{java_arches}
+%dir %{_javadir}/%{name}
+%{_javadir}/%{name}/unoil.jar
+%endif
+%dir %{datadir}
+%doc instdir/CREDITS.fodt
+%doc instdir/LICENSE.html
+%doc instdir/LICENSE
+%doc instdir/NOTICE
+%license instdir/LICENSE
+
+%post data
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun data
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+ gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans data
+gtk-update-icon-cache -q %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files x11
+%{baseinstdir}/program/libvclplug_genlo.so
+
+%files gtk3
+%{baseinstdir}/program/libvclplug_gtk3lo.so
+
+%files gtk4
+%{baseinstdir}/program/libvclplug_gtk4lo.so
+
+%files -n libreofficekit
+%{baseinstdir}/share/libreofficekit
+%{_libdir}/girepository-1.0/LOKDocView-%{girapiversion}.typelib
+%{_libdir}/liblibreofficekitgtk.so
+
+%files -n libreofficekit-devel
+%{_libdir}/gir-1.0/LOKDocView-%{girapiversion}.gir
+%{_includedir}/LibreOfficeKit
+
+%changelog
+* Wed Sep 06 2023 Darssin <2020303249@mail.nwpu.edu.cn> - 1:7.5.5.2-1
+- Package init
diff --git a/sources b/sources
new file mode 100644
index 0000000..1eafbc6
--- /dev/null
+++ b/sources
@@ -0,0 +1,16 @@
+17410483b5b5f267aa18b7e00b65e6e0 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
+185d60944ea767075d27247c3162b3bc 185d60944ea767075d27247c3162b3bc-unowinreg.dll
+a7983f859eafb2677d7ff386a023bc40 a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
+889dc00db9612c6949a4ccf8115e0e6a dragonbox-1.1.3.tar.gz
+4295bad62b2524793d8a7ba3e7385501 dtoa-20180411.tgz
+09c7414a011363c72248c7bf3a23d758 f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140-opens___.ttf
+d41d8cd98f00b204e9800998ecf8427e libreoffice-7.5.5.2.tar.xz
+f0e63963e57c0f1ffbfd779b44702e2e libreoffice-7.5.5.2.tar.xz.00
+96594ceb80c14865eb20f65c791ec7bd libreoffice-7.5.5.2.tar.xz.01
+1a1e709878053762c6e849c1679405fa libreoffice-7.5.5.2.tar.xz.02
+d41d8cd98f00b204e9800998ecf8427e libreoffice-help-7.5.5.2.tar.xz
+f2f075b8748199b521fbb905e785a219 libreoffice-help-7.5.5.2.tar.xz.00
+59c2a9b6dbe60f951dde5692bb48427f libreoffice-help-7.5.5.2.tar.xz.01
+d41d8cd98f00b204e9800998ecf8427e libreoffice-translations-7.5.5.2.tar.xz
+15b061b7123149d0ad54087c4a0ccbd4 libreoffice-translations-7.5.5.2.tar.xz.00
+989cc8af2f93295e03c58c94527c7006 libreoffice-translations-7.5.5.2.tar.xz.01