From ba9b190a2f5b7c0c6aa6cfb564fdc5783f4436697c9d4980f113d9d51f17eb49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com>
Date: Tue, 30 Oct 2018 11:37:49 +0000
Subject: [PATCH] - Remove libreofficekit files that are not supposed to be  
 installed when the feature is disabled

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=719
---
 libreoffice.changes | 6 ++++++
 libreoffice.spec    | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/libreoffice.changes b/libreoffice.changes
index ca3442d..a2cce25 100644
--- a/libreoffice.changes
+++ b/libreoffice.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Tue Oct 30 11:36:48 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
+
+- Remove libreofficekit files that are not supposed to be
+  installed when the feature is disabled
+
 -------------------------------------------------------------------
 Tue Oct 30 08:36:24 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
 
diff --git a/libreoffice.spec b/libreoffice.spec
index 5ed0725..e4740a2 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -1295,6 +1295,9 @@ ln -s %{_libdir}/%{name}/program/liblibreofficekitgtk.so %{buildroot}%{_libdir}/
 # Libreofficekit headers
 mkdir -p %{buildroot}%{_includedir}/LibreOfficeKit/
 install -m 0644 include/LibreOfficeKit/*.h %{buildroot}%{_includedir}/LibreOfficeKit/
+%else
+# remove files that are not supposed to be installed with disabled libreofficekit
+rm -rf %{buildroot}%{_libdir}/libreoffice/share/libreofficekit/
 %endif
 
 # Symlink uno.py and unohelper.py so that python can find them