diff --git a/libreoffice.spec b/libreoffice.spec index cf0e0a2..4cd9fe2 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -32,7 +32,12 @@ %endif # Enable the kde integration on openSUSE only %if 0%{?is_opensuse} +# for some reason breaks on 32bit +%ifarch %ix86 +%bcond_with kdeintegration +%else %bcond_without kdeintegration +%endif %else %bcond_with kdeintegration %endif @@ -557,24 +562,16 @@ Supplements: packageand(libreoffice:plasma5-workspace) %description gtk2 This package contains Gtk2 interface rendering option for LibreOffice. -%package kde4 -Summary: KDE4 interface for LibreOffice -Group: Productivity/Office/Suite -Requires: %{name} = %{version} -# we need full kdelibs4 otherwise we will crash -Requires: kdelibs4 -Supplements: packageand(libreoffice:plasma5-workspace) - -%description kde4 -This package contains kde4 interface rendering options for LibreOffice. - %package qt5 -Summary: Qt5 interface for LibreOffice +Summary: Qt5/KDE Frameworks interface for LibreOffice Group: Productivity/Office/Suite Requires: %{name} = %{version} +Supplements: packageand(libreoffice:plasma5-workspace) +Provides: %{name}-kde4 = %{version} +Obsoletes: %{name}-kde4 < %{version} %description qt5 -This package contains Qt5 interface rendering options for LibreOffice. +This package contains Qt5/KDE Frameworks interface rendering options for LibreOffice. %package sdk Summary: LibreOffice SDK @@ -993,6 +990,8 @@ export NOCONFIGURE=yes --enable-gtk3 \ %if %{with kdeintegration} --enable-gtk3-kde5 \ + --enable-kde5 \ + --disable-qt5 \ %endif %else --disable-gtk3 \ @@ -1435,7 +1434,7 @@ exit 0 %{_libdir}/libreoffice/program/libvclplug_gtklo.so %if %{with kdeintegration} -%files -f file-lists/kde4_list.txt kde4 +%files -f file-lists/kde4_list.txt qt5 %endif %files -f file-lists/officebean_list.txt officebean