File collaboraoffice-desktop.spec of Package collaboraoffice-desktop
#
# spec file for package collaboraoffice-desktop
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?gcc_version} < 12
%global with_gcc 12
%endif
Name: collaboraoffice-desktop
Version: 25.04.8.1
Release: 0
Summary: A Free Office Suite
License: LGPL-3.0-or-later AND MPL-2.0+
Group: Productivity/Office/Suite
Source0: online.tar.xz
Source10: package-lock.json
Source11: node_modules.spec.inc
%include %{_sourcedir}/node_modules.spec.inc
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: collaboraoffice-framework-devel
BuildRequires: cppunit-devel
BuildRequires: fdupes
BuildRequires: gcc%{?with_gcc}
BuildRequires: gcc%{?with_gcc}-c++
BuildRequires: hicolor-icon-theme
BuildRequires: libcap-devel
BuildRequires: libcap-progs
BuildRequires: libpng-devel
BuildRequires: libtool
BuildRequires: libzstd-devel
BuildRequires: local-npm-registry
BuildRequires: npm
BuildRequires: pam-devel
BuildRequires: poco-devel
BuildRequires: python3-lxml
BuildRequires: python3-polib
BuildRequires: qt6-core-devel
BuildRequires: qt6-dbus-devel
BuildRequires: qt6-gui-devel
BuildRequires: qt6-linguist-devel
BuildRequires: qt6-webchannel-devel
BuildRequires: qt6-webenginecore-devel
BuildRequires: qt6-webenginewidgets-devel
BuildRequires: qt6-widgets-devel
BuildRequires: rsync
Requires: collaboraoffice-framework
%description
Collabora Office Desktop brings the familiar Collabora Online experience
to your computer - so you can create, edit, and present with a beautiful,
modern UI. Built on trusted LibreOffice technology and backed by the
largest team of LibreOffice developers worldwide, it delivers excellent
interoperability with ODF and Microsoft Office formats (DOCX\/XLSX\/PPTX),
and exports to PDF with ease. Your documents stay on your device unless
you choose to share them - privacy by design.
%prep
%setup -q -n online
pushd browser
local-npm-registry %{_sourcedir} install --include=dev
popd
%build
./autogen.sh
%if 0%{?with_gcc}
export CC=gcc-%{with_gcc}
export CXX=g++-%{with_gcc}
%endif
%configure \
--enable-silent-rules \
--with-lokit-path=%{_libdir}/collaboraoffice/include \
--with-lo-path=%{_libdir}/collaboraoffice \
--enable-qtapp \
--disable-tests \
--disable-werror \
--enable-experimental \
--with-vendor=SUSE \
--with-app-name="Collabora Office" \
%make_build
%install
%make_install
# Some icons missing in the dark theme
cp -n %{buildroot}%{_datadir}/coolwsd/browser/dist/images/*.svg \
%{buildroot}%{_datadir}/coolwsd/browser/dist/images/dark/
%fdupes -s %{buildroot}%{_datadir}/coda-qt
%fdupes -s %{buildroot}%{_datadir}/coolwsd
%files
%{_bindir}/coda-qt
%{_datadir}/applications/com.collaboraoffice.Office.desktop
%{_datadir}/coda-qt
%{_datadir}/coolwsd
%{_datadir}/metainfo/com.collaboraoffice.Office.metainfo.xml
%{_iconsdir}/hicolor/*/apps/com.collaboraoffice.Office.startcenter.*
%license COPYING
%doc README.md
%changelog