Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:5311
libreoffice.openSUSE_Leap_42.1_Update
libreoffice.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libreoffice.spec of Package libreoffice.openSUSE_Leap_42.1_Update
# # spec file for package libreoffice # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # # List of supported langs, populated bellow in the lang macros %global langpack_langs %{nil} # extensions %define numbertext_version 0.9.5 # Urls %define external_url http://dev-www.libreoffice.org/src/ %define tarball_url http://download.documentfoundation.org/libreoffice/src/5.1.3 # Old Make and bundle or not %if 0%{?suse_version} > 1230 %bcond_with oldmake %else %bcond_without oldmake %endif # GTK3, gstreamer and fresh doxygen switch %if 0%{?suse_version} > 1230 %bcond_without newmedia %else %bcond_with newmedia %endif # Wether to use internal libs or rely on system ones %if 0%{?suse_version} > 1230 %bcond_without systemlibs %else %bcond_with systemlibs %endif # Wether to enable the kde integration %if 0%{?suse_version} > 1315 || 0%{?is_opensuse} || 0%{?suse_version} < 1130 %bcond_without kdeintegration %else %bcond_with kdeintegration %endif # Wether to provide noarch subpackages %if 0%{?suse_version} > 1130 %bcond_without noarch_subpkgs %else %bcond_with noarch_subpkgs %endif # python2 or python3 as base %if 0%{?suse_version} > 1130 %global python_type python3 %else %global python_type python %global python3_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") BuildRequires: python-importlib Requires: python-importlib %endif # This is used due to the need for beta releases Name: libreoffice Version: 5.1.3.2 Release: 0 Summary: A Free Office Suite (Framework) License: Apache-2.0 and Artistic-1.0 and BSD-3-Clause and BSD-4-Clause and GPL-2.0+ and LPPL-1.3c and LGPL-2.1+ and LGPL-3.0 and MPL-1.1 and MIT and SUSE-Public-Domain and W3C Group: Productivity/Office/Suite Url: http://www.documentfoundation.org/ Source0: %{tarball_url}/libreoffice-%{version}.tar.xz Source1: %{tarball_url}/libreoffice-help-%{version}.tar.xz Source2: %{tarball_url}/libreoffice-translations-%{version}.tar.xz # 256x256 desktop icons (bnc#722644) Source20: libreoffice-desktop-icons-256x256.tar.bz2 Source99: %{name}-rpmlintrc # Prebuilt sofficerc for the noarch upstream branding package Source201: sofficerc-upstream # prebuilt extensions Source402: %{external_url}/b7cae45ad2c23551fd6ccb8ae2c1f59e-numbertext_%{numbertext_version}.oxt # used extensions sources Source450: %{external_url}/1f467e5bb703f12cbbb09d5cf67ecf4a-converttexttonumber-1-5-0.oxt Source452: %{external_url}/90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2 # This never had an release so just bundle it as per what other distros do Source1999: %{external_url}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 # Internal bundled stuff we can't remove # XMLSec is patched over and over in here Source2000: %{external_url}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz # To build this we would pull cygwin; not worth it Source2001: http://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll # hsqldb simply does not work with new system version, but luckily we migrate to firebird Source2002: %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip # Heavily patched and not possible to use system one Source2003: %{external_url}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip Source2004: %{external_url}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip # Needed for wiki-published and always taken as bundled Source2005: %{external_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip # Bundled sources for without-system-libs build Source2006: %{external_url}/48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz Source2007: %{external_url}/librevenge-0.0.4.tar.bz2 Source2008: %{external_url}/0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz Source2009: %{external_url}/libetonyek-0.1.6.tar.bz2 Source2010: %{external_url}/libe-book-0.1.2.tar.bz2 Source2011: %{external_url}/libfreehand-0.1.1.tar.bz2 Source2012: %{external_url}/libodfgen-0.1.6.tar.bz2 Source2013: %{external_url}/libcdr-0.1.2.tar.bz2 Source2014: %{external_url}/libmspub-0.1.2.tar.bz2 Source2015: %{external_url}/libmwaw-0.3.7.tar.bz2 Source2016: %{external_url}/libpagemaker-0.0.2.tar.bz2 Source2017: %{external_url}/libvisio-0.1.5.tar.bz2 Source2018: %{external_url}/5821b806a98e6c38370970e682ce76e8-libcmis-0.5.0.tar.gz Source2019: %{external_url}/libwpd-0.10.1.tar.bz2 Source2020: %{external_url}/libwpg-0.3.1.tar.bz2 Source2021: %{external_url}/libwps-0.4.2.tar.bz2 Source2022: %{external_url}/libabw-0.1.1.tar.bz2 Source2023: %{external_url}/lcms2-2.6.tar.gz Source2024: %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip Source2025: %{external_url}/mdds_0.12.1.tar.bz2 Source2026: %{external_url}/a233181e03d3c307668b4c722d881661-mariadb_client-2.0.0-src.tar.gz Source2027: %{external_url}/7239a4430efd4d0189c4f24df67f08e5-mysql-connector-c++-1.1.4.tar.gz Source2028: %{external_url}/boost_1_59_0.tar.bz2 Source2029: %{external_url}/3941e9cab2f4f9d8faee3e8d57ae7664-glew-1.12.0.zip Source2030: %{external_url}/bae83fa5dc7f081768daace6e199adc3-glm-0.9.4.6-libreoffice.zip Source2031: %{external_url}/c4a2d71ff56aec5ebfab2a3f059be99d-icu4c-56_1-src.tgz Source2032: %{external_url}/17df8301bcc459e83f8a8f3aca6183b2-graphite-minimal-1.3.6.tgz Source2033: %{external_url}/liborcus-0.11.0.tar.gz Source2034: %{external_url}/harfbuzz-0.9.40.tar.bz2 Source2035: %{external_url}/32f8e1417a64d3c6f2c727f9053f55ea-redland-1.0.16.tar.gz Source2036: %{external_url}/10d61fbaa6a06348823651b1bd7940fe-libexttextcat-3.4.4.tar.bz2 Source2037: %{external_url}/26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz Source2038: %{external_url}/ec1941a74d3ef513c4ce57a9092b74e1-bsh-2.0b5-src.zip Source2039: %{external_url}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip Source2040: %{external_url}/Firebird-2.5.4.26856-0.tar.bz2 Source2041: %{external_url}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz Source2042: %{external_url}/4ceb9316488b0ea01acf011023cf7fff-raptor2-2.0.9.tar.gz Source2043: %{external_url}/625ff5f2f968dd908bca43c9469d6e6b-commons-lang-2.4-src.tar.gz Source2044: %{external_url}/2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz Source2045: %{external_url}/commons-logging-1.2-src.tar.gz Source2046: %{external_url}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip Source2047: %{external_url}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip Source2048: %{external_url}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip Source2049: %{external_url}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip Source2050: %{external_url}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip Source2051: %{external_url}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip Source2052: %{external_url}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip Source2053: %{external_url}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip Source2054: %{external_url}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip Source2055: %{external_url}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip Source2056: %{external_url}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip Source2057: %{external_url}/5ade6ae2a99bc1e9e57031ca88d36dad-hyphen-2.8.8.tar.gz Source2058: %{external_url}/aa899eff126216dafe721149fbdb511b-liblangtag-0.5.8.tar.bz2 Source2059: %{external_url}/c0b4799ea9850eae3ead14f0a60e9418-postgresql-9.2.1.tar.bz2 Source2060: %{external_url}/2e482c7567908d334785ce7d69ddfff7-commons-codec-1.6-src.tar.gz Source2061: %{external_url}/b12c5f9cfdb6b04efce5a4a186b8416b-rasqal-0.9.30.tar.gz Source2062: %{external_url}/language-subtag-registry-2016-02-10.tar.bz2 # Make for old distros where too old gnumake resides Source3000: http://ftp.gnu.org/gnu/make/make-4.1.tar.bz2 # PATCH-FIX-SUSE: disable really fragile test run on hsqldb Patch0: disable-flaky-hsqldb-test.patch # change user config dir name from ~/.libreoffice/3 to ~/.libreoffice/3-suse # to avoid BerkleyDB incompatibility with the plain build # FIXME: make it configurable and push upstream Patch1: scp2-user-config-suse.diff # correctly bootstrap python stuff with system python (deb#501028, bnc#90701) Patch3: system-pyuno.diff # do not use the broken help; unopkg complained about it when registering extensions # FIXME: the right fix is to compile the help and produce the .db_, .ht_, and other files Patch4: nlpsolver-no-broken-help.diff Patch5: mediawiki-no-broken-help.diff # PATCH-FIX-SUSE: do not declare java6 available for without system libs build Patch7: 0001-Make-HAVE_JAVA6-be-always-false.patch # PATCH-FIX-UPSTREAM: broken patch command on sle11 fails to apply patch Patch12: 0001-mdds-1.0.patch Patch13: 0001-liborcus-0.11.patch Patch14: 0002-boost-filesystem1.patch Patch15: 0003-boost-filesystem2.patch # PATCH-HOTFIX-UPSTREAM: disable test that rounds wrongly on most archs Patch16: libreoffice-hotfix-disablebrokenshapetest.patch # bnc#856729 - LO-L3: fix double borders in Calc Patch17: bnc856729.patch # bnc#939998 - LO-L3: PPT file shows wrong titles Patch18: bnc939998.patch # bnc#945443 - LO-L3: Undo ignores vertical alignment Patch19: bnc945443.patch # bnc#945445 - LO-L3: Undo does not revert changes of table separation lines Patch20: bnc945445.patch # try to save space by using hardlinks Patch990: install-with-hardlinks.diff BuildRequires: %{name}-share-linker BuildRequires: %{python_type}-devel BuildRequires: %{python_type}-xml BuildRequires: ImageMagick BuildRequires: ant BuildRequires: ant-apache-regexp BuildRequires: ant-nodeps BuildRequires: autoconf BuildRequires: bison BuildRequires: bluez-devel BuildRequires: cups-devel BuildRequires: curl-devel BuildRequires: db-devel BuildRequires: dbus-1-glib-devel BuildRequires: fdupes BuildRequires: flac-devel BuildRequires: flex BuildRequires: gcc-c++ # Only for backtracking to see failing tests, pain to rebuild otherwise BuildRequires: gdb BuildRequires: gperf BuildRequires: gtk2-devel BuildRequires: hunspell-devel BuildRequires: hyphen-devel BuildRequires: java-devel >= 1.6 BuildRequires: krb5 BuildRequires: krb5-devel BuildRequires: libcppunit-devel BuildRequires: liberation-fonts BuildRequires: libexpat-devel BuildRequires: libpoppler-devel BuildRequires: libtool BuildRequires: make BuildRequires: mozilla-nspr-devel >= 4.8 BuildRequires: mozilla-nss-devel >= 3.9.3 BuildRequires: mythes-devel BuildRequires: neon-devel >= 0.26.0 BuildRequires: openldap2-devel BuildRequires: pam-devel BuildRequires: patch BuildRequires: perl-Archive-Zip BuildRequires: perl-Compress-Zlib BuildRequires: procps BuildRequires: unixODBC-devel BuildRequires: unzip BuildRequires: update-desktop-files BuildRequires: xorg-x11 BuildRequires: xorg-x11-fonts BuildRequires: xz BuildRequires: zip Requires: %{python_type} Requires: google-carlito-fonts # Fonts are needed for tests Requires: liberation-fonts Requires: libreoffice-branding >= 4.0 Requires: libreoffice-icon-themes = %{version} # We need at least english to launch ourselves. Requires: libreoffice-l10n-en = %{version} Requires(post): coreutils Requires(post): grep Requires(post): gtk2 Requires(post): zip Requires(postun): coreutils Requires(postun): gtk2 Requires(pre): findutils Provides: %{name}-draw-extensions = %{version} Obsoletes: %{name}-draw-extensions < %{version} Provides: %{name}-impress-extensions = %{version} Obsoletes: %{name}-impress-extensions < %{version} Provides: %{name}-base-extensions = %{version} Obsoletes: %{name}-base-extensions < %{version} Provides: %{name}-kde = %{version} Obsoletes: %{name}-kde < %{version} Provides: %{name}-l10n-prebuild = %{version} Obsoletes: %{name}-l10n-prebuild < %{version} Provides: %{name}-mono = %{version} Obsoletes: %{name}-mono < %{version} Provides: %{name}-ure = %{version} Obsoletes: %{name}-ure < %{version} Provides: %{name}-icon-theme-crystal = %{version} Obsoletes: %{name}-icon-theme-crystal < %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build ExclusiveArch: %arm aarch64 %ix86 x86_64 ppc ppc64 %if %{with kdeintegration} BuildRequires: libkde4-devel %endif %if %{with systemlibs} BuildRequires: boost-devel BuildRequires: bsh2 BuildRequires: clucene-core-devel BuildRequires: commons-codec BuildRequires: commons-httpclient BuildRequires: commons-lang BuildRequires: commons-logging BuildRequires: flute BuildRequires: glew-devel >= 1.10.0 BuildRequires: glm-devel BuildRequires: glu-devel BuildRequires: graphite2-devel >= 0.9.3 BuildRequires: harfbuzz-devel BuildRequires: icu BuildRequires: junit4 BuildRequires: libXt-devel BuildRequires: libabw-devel BuildRequires: libbase BuildRequires: libcdr-devel >= 0.1 BuildRequires: libcmis-devel >= 0.5.0 BuildRequires: libe-book-devel >= 0.1.1 BuildRequires: libetonyek-devel >= 0.1.4 BuildRequires: libexif BuildRequires: libexttextcat-devel >= 3.1.1 BuildRequires: libfbembed-devel BuildRequires: libfonts BuildRequires: libformula BuildRequires: libfreehand-devel BuildRequires: libicu-devel BuildRequires: liblangtag-devel BuildRequires: liblayout BuildRequires: liblcms2-devel BuildRequires: libloader BuildRequires: libmspub-devel >= 0.1 BuildRequires: libmwaw-devel >= 0.3.5 BuildRequires: libmysqlclient-devel BuildRequires: libmysqlcppconn-devel >= 1.0.6 BuildRequires: libodfgen-devel >= 0.1.4 BuildRequires: liborcus-devel >= 0.9.1 BuildRequires: libpagemaker-devel BuildRequires: libredland-devel BuildRequires: librepository BuildRequires: librevenge-devel >= 0.0.1 BuildRequires: librsvg-devel BuildRequires: libserializer BuildRequires: libvisio-devel >= 0.1 BuildRequires: libwpd-devel >= 0.10 BuildRequires: libwpg-devel BuildRequires: libwps-devel >= 0.4.2 BuildRequires: libxml2-devel BuildRequires: libxslt-devel BuildRequires: lpsolve-devel BuildRequires: npapi-sdk BuildRequires: openCOLLADA-devel BuildRequires: pentaho-libxml BuildRequires: pentaho-reporting-flow-engine BuildRequires: postgresql-devel BuildRequires: recode BuildRequires: rhino BuildRequires: sac BuildRequires: sane-backends-devel BuildRequires: ucpp BuildRequires: vigra-devel BuildRequires: xml-commons-apis BuildRequires: pkgconfig(fbembed) BuildRequires: pkgconfig(mdds-1.0) %else BuildRequires: chrpath %endif %if %{with newmedia} BuildRequires: doxygen >= 1.8.4 BuildRequires: gstreamer-plugins-base-devel BuildRequires: gtk3-devel BuildRequires: libgltf-devel BuildRequires: pkgconfig(gobject-introspection-1.0) %else BuildRequires: gcc48-c++ BuildRequires: gstreamer010-plugins-base-devel %endif # we need a JRE for oobase and the other stuff %ifarch %ix86 Recommends: jre-32 >= 1.6 %endif %ifarch x86_64 aarch64 ppc64 Recommends: jre-64 >= 1.6 %endif %ifarch ppc Recommends: jre-32 >= 1.6 %endif %description LibreOffice is a comprehensive office package featuring a word processor, a spreadsheet, a presentation program, and much more. This package provides only the basic framework. You have to install the additional modules to get the required functionality, see packages: - libreoffice-base - libreoffice-calc - libreoffice-draw - libreoffice-impress - libreoffice-math - libreoffice-writer Some optional features are provided by extra packages, for example: - libreoffice-mailmerge - libreoffice-filters - libreoffice-kde4 - libreoffice-gnome Non-English localizations are provided by extra packages as well, for example: - libreoffice-l10n-de - libreoffice-l10n-fr - libreoffice-l10n-it %package branding-upstream Summary: Original Branding for LibreOffice License: Apache-2.0 and Artistic-1.0 and BSD-3-Clause and BSD-4-Clause and GPL-2.0+ and LPPL-1.3c and LGPL-2.1+ and LGPL-3.0 and MPL-1.1 and MIT and SUSE-Public-Domain and W3C Group: Productivity/Office/Suite Supplements: packageand(libreoffice:branding-upstream) Conflicts: otherproviders(libreoffice-branding) Provides: libreoffice-branding = %{version} Provides: libreoffice-branding-openSUSE = 4.0.1 Obsoletes: libreoffice-branding-openSUSE < 4.0.1 %if %{with noarch_subpkgs} BuildArch: noarch %endif %description branding-upstream This package includes the original branding for the LibreOffice office suite. %package icon-theme-breeze Summary: Breeze LibreOffice Icon Theme (KDE Frameworks default) License: LGPL-2.1 Group: Productivity/Office/Suite Requires: %{name}-icon-theme-galaxy Requires(post): %{name}-share-linker Requires(postun): %{name}-share-linker Supplements: packageand(libreoffice:plasma5-workspace) Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} %if %{with noarch_subpkgs} BuildArch: noarch %endif %description icon-theme-breeze This package provides Breeze LibreOffice icon theme. It is used in KDE Frameworks by default. %package icon-theme-galaxy Summary: Galaxy LibreOffice Icon Theme (OOo-3.x default) License: LGPL-3.0 Group: Productivity/Office/Suite Requires(post): %{name}-share-linker Requires(postun): %{name}-share-linker Supplements: libreoffice Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} %if %{with noarch_subpkgs} BuildArch: noarch %endif %description icon-theme-galaxy This package provides Galaxy LibreOffice icon theme. It is used in the original OOo-3.x by default. %package icon-theme-hicontrast Summary: Hicontrast LibreOffice Icon Theme License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name}-icon-theme-galaxy Requires(post): %{name}-share-linker Requires(postun): %{name}-share-linker Supplements: libreoffice Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} %if %{with noarch_subpkgs} BuildArch: noarch %endif %description icon-theme-hicontrast This package provides Hicontrast LibreOffice icon theme. %package icon-theme-oxygen Summary: Oxygen LibreOffice Icon Theme (KDE4 default) License: LGPL-3.0 or CC-BY-SA-3.0 Group: Productivity/Office/Suite Requires: %{name}-icon-theme-galaxy Requires(post): %{name}-share-linker Requires(postun): %{name}-share-linker Supplements: packageand(libreoffice:kdebase4-workspace) Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} %if %{with noarch_subpkgs} BuildArch: noarch %endif %description icon-theme-oxygen This package provides Oxygen LibreOffice icon theme. It is used in KDE4 by default. %package icon-theme-sifr Summary: Sifr LibreOffice Icon Theme License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name}-icon-theme-breeze Requires: %{name}-icon-theme-galaxy Requires(post): %{name}-share-linker Requires(postun): %{name}-share-linker Supplements: libreoffice Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} %if %{with noarch_subpkgs} BuildArch: noarch %endif %description icon-theme-sifr This package provides Sifr LibreOffice icon theme. %package icon-theme-tango Summary: Tango LibreOffice Icon Theme (GNOME default) License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name}-icon-theme-galaxy Requires(post): %{name}-share-linker Requires(postun): %{name}-share-linker Supplements: packageand(libreoffice:gnome-session) Provides: libreoffice-icon-themes = %{version} Obsoletes: libreoffice-icon-themes < %{version} %if %{with noarch_subpkgs} BuildArch: noarch %endif %description icon-theme-tango This package provides Tango LibreOffice icon theme. It is used in GNOME by default and obsoleted the old Industrial theme. %package glade Summary: Support for creating LibreOffice dialogs in glade License: Apache-2.0 and Artistic-1.0 and BSD-3-Clause and BSD-4-Clause and GPL-2.0+ and LPPL-1.3c and LGPL-2.1+ and LGPL-3.0 and MPL-1.1 and MIT and SUSE-Public-Domain and W3C Group: Productivity/Office/Suite Requires: %{name} = %{version} %if %{with noarch_subpkgs} BuildArch: noarch %endif %description glade %{name}-glade contains a catalog of LibreOffice-specific widgets for glade and ui-previewer tool to check the visual appearance of dialogs. %package gdb-pretty-printers Summary: Additional support for debugging with gdb License: Apache-2.0 and Artistic-1.0 and BSD-3-Clause and BSD-4-Clause and GPL-2.0+ and LPPL-1.3c and LGPL-2.1+ and LGPL-3.0 and MPL-1.1 and MIT and SUSE-Public-Domain and W3C Group: Productivity/Office/Suite Requires: %{python_type}-six Requires: gdb Requires: libreoffice = %{version} Supplements: libreoffice-debuginfo = %{version} %if %{with noarch_subpkgs} BuildArch: noarch %endif %description gdb-pretty-printers This package provides gdb pretty printers for package %{name}. %package base Summary: LibreOffice Base License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} %if %{with systemlibs} Requires: pentaho-reporting-flow-engine %endif Supplements: %{name} %description base This module allows you to manage databases, create queries and reports to track and manage your information by using LibreOffice office suite. %package calc Summary: LibreOffice Calc License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} Supplements: %{name} %description calc This module allows you to perform calculation, analyze information and manage lists in spreadsheets by using LibreOffice office suite. %package draw Summary: LibreOffice Draw License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} Supplements: %{name} %description draw This module allows you to create and edit drawings, flow charts, and logos by using LibreOffice office suite. %package math Summary: LibreOffice Math License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} Supplements: %{name} %description math This module allows you to create and edit scientific formulas and equations by using LibreOffice office suite. %package impress Summary: LibreOffice Impress License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} Supplements: %{name} %description impress This module allows you to create and edit presentations for slideshows, meeting and Web pages by using LibreOffice office suite. %package writer Summary: LibreOffice Writer and Web License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} Supplements: %{name} %description writer This module allows you to create and edit text and graphics in letters, reports, documents and Web pages by using LibreOffice office suite. %package base-drivers-postgresql Summary: PostgreSQL Database Driver for LibreOffice License: LGPL-2.1+ Group: Productivity/Office/Suite Requires: postgresql %description base-drivers-postgresql This package allows to access PostgreSQL databases from LibreOffice Base. %package filters-optional Summary: Additional Import and Export Filters for LibreOffice License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name}-calc = %{version} Requires: %{name}-draw = %{version} Requires: %{name}-impress = %{version} Requires: %{name}-math = %{version} Requires: %{name}-writer = %{version} Supplements: %{name} %description filters-optional This package includes some additional import and export filters for LibreOffice: - AportisDoc (Palm) - Pocket Excel - Pocket Word - DocBook - XHTML %package mailmerge Summary: Mail Merge Functionality for LibreOffice License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name}-pyuno = %{version} Supplements: %{name} %description mailmerge This module allows you to create form letters or send E-mail messages to many recipients using LibreOffice office suite. %package pyuno Summary: Python UNO Bridge for LibreOffice License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} Supplements: %{name} %description pyuno The Python-UNO bridge allows to use the standard LibreOffice API from the well known Python scripting language. It can be used to develop UNO components in python, thus python UNO components may be run within the LibreOffice process and can be called from Java, C++ or the built in StarBasic scripting language. You can create and invoke scripts with the office scripting framework (OOo 2.0 and later) with it. For example, it is used for the mail merge functionality. You can find the more information at http://udk.openoffice.org/python/python-bridge.html %package gnome Summary: GNOME Extensions for LibreOffice License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} %description gnome This package contains some GNOME extensions and GTK2 interface for LibreOffice. %package gtk3 Summary: Gtk3 interface for LibreOffice License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name}-gnome = %{version} %if 0%{?suse_version} > 1315 || 0%{?is_opensuse} Supplements: packageand(libreoffice:gnome-session) %endif %description gtk3 This package contains Gtk3 interface rendering option for LibreOffice. %package kde4 Summary: KDE4 Extensions for LibreOffice License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} %description kde4 This package contains some KDE4 extensions for LibreOffice. %package sdk Summary: LibreOffice SDK License: LGPL-3.0 Group: Documentation/HTML Requires: %{name} = %{version} Requires: gcc-c++ Requires: make Requires: zip Recommends: java-devel Provides: libreoffice-ure-devel = %{version} Obsoletes: libreoffice-ure-devel < %{version} %if %{with systemlibs} Requires: ucpp %endif %description sdk This package contains the files needed to build plugins/add-ons for LibreOffice. It includes header files, IDL files, needed build tools, etc. The documentation is in the package libreoffice-sdk-doc %package sdk-doc Summary: LibreOffice SDK Documentation License: LGPL-3.0 Group: Development/Libraries/Other Suggests: %{name}-sdk = %{version} Enhances: %{name}-sdk = %{version} Provides: libreoffice-ure-devel-doc = %{version} Obsoletes: libreoffice-ure-devel-doc < %{version} %description sdk-doc This package includes documentation and examples for the LibreOffice Software Development Kit (SDK). %package officebean Summary: OfficeBean Java Bean component for LibreOffice License: LGPL-3.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} %description officebean With the OfficeBean, a developer can easily write Java applications, harnessing the power of LibreOffice. It encapsulates a connection to a locally running LibreOffice process, and hides the complexity of establishing and maintaining that connection from the developer. It also allows embedding of LibreOffice documents within the Java environment. It provides an interface the developer can use to obtain Java AWT windows into which the backend LibreOffice process draws its visual representation. These windows are then plugged into the UI hierarchy of the hosting Java application. The embedded document is controlled from the Java environment, since the OfficeBean allows developers to access the complete LibreOffice API from their Java environment giving them full control over the embedded document, its appearance and behavior. %package base-drivers-mysql Summary: MySQL Database Driver for LibreOffice License: GPL-2.0 and LGPL-3.0 Group: Productivity/Office/Suite Requires: libreoffice-base = %{version} # This mysql thing is just dlopened # WARNING: the soname might change! %if 0%{?suse_version} == 1110 Requires: libmysql55client_r18 %else Requires: libmysqlclient_r18 %endif Requires(pre): libreoffice = %{version} Supplements: packageand(libreoffice-base:mysql-client) %description base-drivers-mysql This package allows to access MySQL databases from LibreOffice Base. %package calc-extensions Summary: LibreOffice Calc Extensions License: LGPL-2.1+ and LGPL-3.0 Group: Productivity/Office/Suite Requires: libreoffice-calc = %{version} # pyuno is needed for the numbertext extension Requires: libreoffice-pyuno = %{version} Requires(pre): libreoffice = %{version} # the watchWindow extension is written in java %ifarch %ix86 ppc Requires: jre-32 > 1.5 Recommends: jre-32 >= 1.6 %endif %ifarch x86_64 aarch64 ppc64 Requires: jre-64 > 1.5 Recommends: jre-64 >= 1.6 %endif %description calc-extensions This package provides extensions for LibreOffice Calc: - Convert Text to Number - New Functions NUMBERTEXT and MONEYTEXT - Solver for Nonlinear Programming %package writer-extensions Summary: LibreOffice Writer Extensions License: Apache-2.0 and LGPL-3.0 and CDDL-1.0 Group: Productivity/Office/Suite Requires: libreoffice-writer = %{version} Requires(pre): libreoffice = %{version} # the wiki extension is written in java %ifarch %ix86 ppc Requires: jre-32 > 1.5 Recommends: jre-32 >= 1.6 %endif %ifarch x86_64 aarch64 ppc64 Requires: jre-64 > 1.5 Recommends: jre-64 >= 1.6 %endif %description writer-extensions This package provides extensions for LibreOffice Writer: - MediaWiki Publisher %package -n libreofficekit Summary: A library providing access to LibreOffice functionality License: MPL-2.0 Group: Productivity/Office/Suite Requires: %{name} = %{version} %description -n libreofficekit LibreOfficeKit can be used to access LibreOffice functionality through C/C++, without any need to use UNO. %package -n libreofficekit-devel Summary: Development files for libreofficekit License: MPL-2.0 Group: Productivity/Office/Suite Requires: libreofficekit = %{version} %description -n libreofficekit-devel The libreofficekit-devel package contains libraries and header files for developing applications that use libreofficekit. # Symlink autocorr files for various conversion items %define make_autocorr_aliases(l:) \ %{?-l: \ for lang in %{*}; do \ ln -sf acor_%{-l*}.dat %{buildroot}%{_libdir}/%{name}/share/autocorr/acor_$lang.dat \ done \ } \ %{!?-l:%{error:-l must be present}} # Symlinking macro for /usr/lib64 and /usr/share packing # As argument takes name of the package %define _link_noarch_files() \ %posttrans %{1} \ rpm -ql %{name}-%{1} > %{_datadir}/libreoffice/%{1}_list.txt || true \ if [ -f %{_datadir}/libreoffice/%{1}_list.txt ] ; then \ %{_bindir}/libreoffice-share-linker %{_datadir}/libreoffice/%{1}_list.txt || true \ fi \ \ %postun %{1} \ if [ "$1" = "0" -a -f %{_datadir}/libreoffice/%{1}_list.txt -a -x %{_bindir}/libreoffice-share-linker ]; then \ %{_bindir}/libreoffice-share-linker --unlink %{_datadir}/libreoffice/%{1}_list.txt || true \ rm -f %{_datadir}/libreoffice/%{1}_list.txt 2> /dev/null || true \ fi \ %{nil} # Crazy magic for the auto help/lang generating. # Inspired and adjusted from Fedora spec. %define _langpack_common() \ %dir %{_datadir}/%{name}/program/resource \ %{_datadir}/%{name}/program/resource/*%{1}.res \ %if "%{1}" != "tn" \ %exclude %{_datadir}/%{name}/program/resource/*sr-Latn.res \ %endif \ %if "%{1}" != "en-US" \ %dir %{_datadir}/%{name}/share/config/soffice.cfg \ %dir %{_datadir}/%{name}/share/config/soffice.cfg/modules \ %dir %{_datadir}/%{name}/share/config/soffice.cfg/modules/*/ui/res \ %dir %{_datadir}/%{name}/share/config/soffice.cfg/modules/*/ui \ %dir %{_datadir}/%{name}/share/config/soffice.cfg/modules/* \ %{_datadir}/%{name}/share/config/soffice.cfg/modules/*/ui/res/%{1}.zip \ %dir %{_datadir}/%{name}/share/config/soffice.cfg/*/ui/res \ %dir %{_datadir}/%{name}/share/config/soffice.cfg/*/ui \ %dir %{_datadir}/%{name}/share/config/soffice.cfg/* \ %{_datadir}/%{name}/share/config/soffice.cfg/*/ui/res/%{1}.zip \ %endif \ %dir %{_datadir}/%{name}/share/registry \ %dir %{_datadir}/%{name}/share/registry/res \ %{_datadir}/%{name}/share/registry/Langpack-%{1}.xcd \ %if "%{1}" != "en-US" \ %{_datadir}/%{name}/share/registry/res/registry_%{1}.xcd \ %endif \ %{_datadir}/%{name}/share/registry/res/fcfg_langpack_%{1}.xcd \ %{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 obsolete openoffice.org-langpack package, # * 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. # # c: additional config file (just the name stem) # E the package does not contain any files (i.e., has empty filelist) # i: additional language added to this package # L: internal (LibreOffice) language code, used in file names # l: language code, e.g., cs # Mm: myspell dependency # n: language name, e.g., Czech # p: Provides: of libreoffice-l10n # q: Provides: of libreoffice-l10n if one provide is not enough # 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 # # Example: # libreoffice-l10n-cs: langpack for Czech lang. Requiring myspell-cs_CZ: # %%langpack -l cs -n Czech -m cs_CZ %define langpack(c:Ei:L:l:Mm:n:p:q:r:S:s:TXx:) \ %define project LibreOffice \ %define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \ %define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \ %define pkgname l10n-%{lang} \ %define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \ %global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \ \ %package %{pkgname} \ Summary: %{langname} Localization Files for LibreOffice \ Group: Productivity/Office/Suite \ Requires: %{name} = %{version} \ Requires: %{name}-share-linker \ Provides: locale(libreoffice:%{lang}) \ %if %{with noarch_subpkgs} \ BuildArch: noarch \ %endif \ %{-m:Requires: myspell-%{-m*}}%{!-m:%{-M:Requires: myspell-%{lang}}} \ %{-r:Requires: %{-r*}} \ %{-p: \ Provides: %{name}-l10n-%{-p*} = %{version} \ Obsoletes: %{name}-l10n-%{-p*} < %{version} \ } \ %{-q: \ Provides: %{name}-l10n-%{-q*} = %{version} \ Obsoletes: %{name}-l10n-%{-q*} < %{version} \ } \ %{-T: \ Provides: %{name}-help-%{lang} = %{version} \ Obsoletes: %{name}-help-%{lang} < %{version} \ %{-L: \ Provides: %{name}-help-%{-L*} = %{version} \ Obsoletes: %{name}-help-%{-L*} < %{version} \ } \ %{-p: \ Provides: %{name}-help-%{-p*} = %{version} \ Obsoletes: %{name}-help-%{-p*} < %{version} \ } \ %{-q: \ Provides: %{name}-help-%{-q*} = %{version} \ Obsoletes: %{name}-help-%{-q*} < %{version} \ } \ } \ \ %description %{pkgname} \ Provides additional %{langname} translations and resources for %{project}. \ \ %files %{pkgname} \ %defattr(-,root,root) \ %{!-E: \ %define autotextdir %{_datadir}/%{name}/share/autotext \ %dir %{autotextdir} \ %{expand:%%_langpack_common %{_langpack_lang}} \ %{-x:%{autotextdir}/%{-x*}}%{!-x:%{-X:%{autotextdir}/%{_langpack_lang}}} \ %{-c:%{_datadir}/%{name}/share/registry/%{-c*}.xcd} \ %{-s:%{_datadir}/%{name}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \ %{-T: \ %docdir %{_datadir}/%{name}/help/%{_langpack_lang} \ %{_datadir}/%{name}/help/%{_langpack_lang} \ } \ %{-i:%{expand:%%_langpack_common %{-i*}}} \ } \ \ %{expand:%%_link_noarch_files %{pkgname}} \ %{nil} %langpack -l af -n Afrikaans -m af_ZA %langpack -l ar -n Arabic -s ctl -m ar %langpack -l as -n Assamese %langpack -l bg -n Bulgarian -T -X -m bg_BG %langpack -l bn -n Bengali -T -m bn_BD %langpack -l br -n Breton -m br_FR %langpack -l ca -n Catalan -T -M -X %langpack -l cs -n Czech -T -X -m cs_CZ %langpack -l cy -n Welsh %langpack -l da -n Danish -T -X -m da_DK %langpack -l de -n German -T -X -M %langpack -l dz -n Dzongkha -s ctl -T %langpack -l el -n Greek -T -m el_GR %langpack -l en -n English -L en-US -T -X -p en-GB -q en-ZA -M %langpack -l es -n Spanish -M -T -X %langpack -l et -n Estonian -T -m et_EE %langpack -l eu -n Basque -T %langpack -l fa -n Farsi -s ctl -X %langpack -l fi -n Finnish -r libreoffice-voikko -T -X %langpack -l fr -n French -T -X -m fr_FR %langpack -l ga -n Irish %langpack -l gl -n Galician -T -M %langpack -l gu -n Gujarati -s ctl -T -p gu-IN -m gu_IN %langpack -l he -n Hebrew -s ctl -T -m he_IL %langpack -l hi -n Hindi -s ctl -T -p hi-IN -m hi_IN %langpack -l hr -n Croatian -T -m hr_HR -X %langpack -l hu -n Hungarian -T -X -m hu_HU %langpack -l it -n Italian -T -X -m it_IT %langpack -l ja -n Japanese -s cjk -T -X %langpack -l kk -n Kazakh %langpack -l kn -n Kannada %langpack -l ko -n Korean -s cjk -T -X %langpack -l lt -n Lithuanian -m lt_LT -X %langpack -l lv -n Latvian -m lv_LV %langpack -l mai -n Maithili %langpack -l ml -n Malayalam %langpack -l mr -n Marathi %langpack -l nb -n Bokmal -M -T -m no %langpack -l nl -n Dutch -T -X -m nl_NL %langpack -l nn -n Nynorsk -T -m no %define langpack_lang Southern Ndebele %langpack -l nr -n %{langpack_lang} %define langpack_lang Northern Sotho %langpack -l nso -n %{langpack_lang} %langpack -l or -n Odia -s ctl %langpack -l pa -n Punjabi -s ctl -L pa-IN -p pa-IN %langpack -l pl -n Polish -T -X -m pl_PL %define langpack_lang Brazilian Portuguese %langpack -l pt-BR -n %{langpack_lang} -m pt_BR -p pt_BR -T -X %langpack -l pt-PT -n Portuguese -m pt_PT -T -L pt -x pt -p pt %langpack -l ro -n Romanian -M -X %langpack -l ru -n Russian -T -X -m ru_RU %langpack -l si -n Sinhalese -S ctl -T -m si_LK %langpack -l sk -n Slovak -T -X -m sk_SK %langpack -l sl -n Slovenian -T -X -m sl_SI %langpack -l sr -n Serbian -i sr-Latn -M %langpack -l ss -n Swati %define langpack_lang Southern Sotho %langpack -l st -n %{langpack_lang} %langpack -l sv -n Swedish -T -X -m sv_SE %langpack -l ta -n Tamil -s ctl %langpack -l te -n Telugu -m te_IN %langpack -l th -n Thai -s ctl -c ctlseqcheck_th -m th_TH %langpack -l tn -n Tswana %langpack -l tr -n Turkish -T -X %langpack -l ts -n Tsonga %langpack -l uk -n Ukrainian -T -m uk_UA %langpack -l ve -n Venda %langpack -l xh -n Xhosa %define langpack_lang Simplified Chinese %langpack -l zh-Hans -n %{langpack_lang} -p zh-CN -s cjk -T -L zh-CN -x zh-CN %define langpack_lang Traditional Chinese %langpack -l zh-Hant -n %{langpack_lang} -p zh-TW -s cjk -T -L zh-TW -x zh-TW %langpack -l zu -n Zulu -m zu_ZA %undefine langpack_lang %prep %setup -q -b1 -b2 %patch0 -p1 %patch1 %patch3 -p1 %patch4 %patch5 %if !%{with systemlibs} %patch7 -p1 %endif %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch990 -p1 # 256x256 icons tar -xjf %{SOURCE20} # Unpack and compile new gmake %if %{with oldmake} tar -xjvf %{SOURCE3000} cd make-4.1 CFLAGS="%{optflags}" %configure make %{?_smp_mflags} cd - %endif # Do not generate doxygen timestamp echo "HTML_TIMESTAMP = NO" >> odk/docs/cpp/Doxyfile echo "HTML_TIMESTAMP = NO" >> odk/docs/idl/Doxyfile %build # Parallel build settings ... lo_jobs="%{?jobs:%{jobs}}" %ifarch %arm %if ! 0%{?qemu_user_space_build:1} # native hardware is not that powerful lo_jobs="1" %endif %endif # do not eat all memory echo "Available memory:" free echo "System limits:" ulimit -a lo_jobs_reduced= if test -n "$lo_jobs" -a "$lo_jobs" -gt 1 ; then mem_per_process=1200 max_mem=`LANG=C free -t -m | sed -n "s|^Mem: *\([0-9]*\).*$|\1|p"` max_jobs="$(($max_mem / $mem_per_process))" test "$lo_jobs" -gt "$max_jobs" && lo_jobs="$max_jobs" && lo_jobs_reduced="yes" && echo "Warning: Reducing number of jobs to $max_jobs because of memory limits" test "$lo_jobs" -le 0 && lo_jobs=1 && echo "Warning: Do not use the parallel build at all becuse of memory limits" fi # finally set jobs PARALLEL_BUILD= if test -n "$lo_jobs" ; then PARALLEL_BUILD="--with-parallelism=$lo_jobs" fi # make sure that JAVA_HOME is set correctly source %{_sysconfdir}/profile.d/alljava.sh # use RPM_OPT_FLAGS, ... %if 0%{?is_opensuse} != 1 # ON IBS remove big debugsymbols as we simply consume too much space ARCH_FLAGS="`echo %{optflags} | sed -e 's/^-g /-g1 /g' -e 's/ -g / -g1 /g' -e 's/ -g$/ -g1/g'`" %else ARCH_FLAGS="%{optflags}" %endif CFLAGS="$ARCH_FLAGS" CXXFLAGS="$ARCH_FLAGS" export ARCH_FLAGS CFLAGS CXXFLAGS # Colada does not have .pc file and configure creator was really lazy export OPENCOLLADA_CFLAGS='-I/usr/include/COLLADABaseUtils -I/usr/include/COLLADAFramework -I/usr/include/COLLADASaxFrameworkLoader -I/usr/include/GeneratedSaxParser' export OPENCOLLADA_LIBS='-lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser' # Whack in our python so we don't have to use internal one # which is quite nightmare. export PYTHON=%{_bindir}/%{python_type} %if %{with newmedia} export PYTHON_CFLAGS=`pkg-config --cflags %{python_type}` export PYTHON_LIBS=`pkg-config --libs %{python_type}` %else export PYTHON_CFLAGS=`%{python_type}-config --cflags` export PYTHON_LIBS=`%{python_type}-config --libs` %endif # Old systems need help in finding the gcc %if !%{with newmedia} export CC=%{_bindir}/gcc-4.8 export CXX=%{_bindir}/g++-4.8 %endif %if %{with oldmake} export PATH="$RPM_BUILD_DIR/libreoffice-%{version}/make-4.1:$PATH:%{_prefix}/sbin" %endif # do not run configure in autogen but use macro later export NOCONFIGURE=yes ./autogen.sh %configure \ $PARALLEL_BUILD \ --enable-mergelibs \ --docdir=%{_docdir}/%{name} \ --with-compat-oowrappers \ %if %{with systemlibs} --with-system-headers \ --with-system-libs \ --with-system-jars \ --with-system-ucpp \ %else --without-system-libs \ --without-system-jars \ --without-system-headers \ --without-junit \ --with-system-expat \ --with-system-curl \ --with-system-neon \ --with-system-hunspell \ --with-system-mythes \ --with-system-bluez \ --with-system-openldap \ --with-system-odbc \ --with-system-nss \ --with-system-jpeg \ --with-system-libpng \ --with-system-cppunit \ --with-system-poppler \ --with-system-openssl \ %endif --with-system-dicts \ --with-vendor=SUSE \ --with-alloc=system \ --with-lang='%{langpack_langs}' \ --disable-fetch-external \ --with-external-tar="$RPM_SOURCE_DIR" \ --disable-epm \ --disable-online-update \ --disable-systray \ %if %{with newmedia} --disable-gstreamer-0-10 \ --enable-gstreamer-1-0 \ --enable-gtk3 \ --enable-introspection \ --with-doxygen \ --enable-gltf \ --enable-collada --with-system-opencollada \ %else --enable-gstreamer-0-10 \ --disable-gstreamer-1-0 \ --disable-gtk3 \ --without-doxygen \ --disable-gltf \ %endif --enable-release-build \ --enable-split-app-modules \ --enable-split-opt-features \ --enable-cairo-canvas \ --enable-graphite \ --enable-largefile \ --enable-python=system \ --enable-randr \ --enable-randr-link \ --without-fonts \ --without-myspell-dicts \ --with-jdk-home=$JAVA_HOME \ --with-beanshell-jar=%{_datadir}/java/bsh2/bsh.jar \ --with-ant-home=%{_datadir}/ant \ --with-external-dict-dir=%{_datadir}/hunspell \ --with-external-hyph-dir=%{_datadir}/hyphen \ --with-external-thes-dir=%{_datadir}/mythes \ --with-help \ --enable-odk \ %if %{with kdeintegration} --enable-kde4 \ %else --disable-kde4 \ %endif --enable-evolution2 \ --enable-dbus \ --enable-hardlink-deliver \ --enable-ext-ct2n \ --enable-ext-nlpsolver \ --enable-ext-numbertext \ --enable-ext-wiki-publisher \ --enable-ext-mariadb-connector \ --enable-scripting-beanshell \ --enable-scripting-javascript \ --disable-vlc \ --enable-neon \ --disable-ccache \ --disable-coinmp \ --enable-symbols # no coinormp packages for coinmp # hack to correctly bootstrap python stuff with system python, (deb#501028, i#90701) sed -i -e "s|@INSTALLDIR@|%{_libdir}/%{name}|" pyuno/source/module/uno.py pyuno/source/officehelper.py # Allow deep backtracking if the build crashes ulimit -c unlimited # just call make here as we added the jobs in configure # The check phase is run here too if it is split with nocheck # install of jars get broken sometimes make %install make DESTDIR=%{buildroot} distro-pack-install # Do not pollute build log set +x # FIXME: Hack add missing file install -m755 instdir/program/libsaxlo.so %{buildroot}/%{_libdir}/%{name}/program/libsaxlo.so echo "%{_libdir}/%{name}/program/libsaxlo.so" >>file-lists/common_list.txt # Split out gtk3 interface to -gtk3 subpackage %if %{with newmedia} grep -v "%{_libdir}/libreoffice/program/libvclplug_gtk3lo.so" file-lists/gnome_list.txt > tmplist mv tmplist file-lists/gnome_list.txt %endif ################ # update desktop files builddir=`pwd` cd %{buildroot}%{_datadir}/applications for desktop in * ; do # relative link is needed by %%suse_update_desktop_file relative_target=`readlink $desktop | sed "s|%{_libdir}|../../%{_lib}|"` # FIXME: remove the libreoffice- prefix because the old desktop files are preferred in %{_sysconfdir}/gnome_defaults.conf desktop_new=`echo $desktop | sed -e "s/%{name}-//"` rm $desktop sed -i -e "s|%{_datadir}/applications/$desktop|%{_datadir}/applications/$desktop_new|" $builddir/file-lists/*.txt # finally, create the right link ln -sf $relative_target $desktop_new # enable startup notification (bnc#796875) grep -q "NoDisplay=true" $desktop_new || sed -i "s/\(\[Desktop Entry\]\)/\1\nStartupNotify=true/" $desktop_new # suse_update app=`echo $desktop_new | sed "s/.desktop//"` %suse_update_desktop_file $app done sed -i -e 's:NoDisplay=false:NoDisplay=true:g' %{buildroot}/%{_datadir}/applications/math.desktop cd - ################ # compat stuff for noarch packages mkdir -p %{buildroot}/%{_datadir}/%{name}/program echo "%dir %{_libdir}/%{name}" >>file-lists/common_list.txt echo "%dir %{_datadir}/%{name}" >>file-lists/common_list.txt echo "%dir %{_datadir}/%{name}/program" >>file-lists/common_list.txt ################ # helper script for noarch packages # add missing directories to the file list for dir in `find %{buildroot}/%{_datadir}/icons/gnome -type d` ; do dir=`echo $dir | sed -e "s|%{buildroot}||"` echo "%dir $dir" >>file-lists/common_list.txt done echo "%dir %{_datadir}/application-registry" >>file-lists/common_list.txt echo "%dir %{_datadir}/mime-info" >>file-lists/common_list.txt echo "%dir %{_datadir}/mimelnk" >>file-lists/common_list.txt echo "%dir %{_datadir}/mimelnk/application" >>file-lists/common_list.txt ################################# # Move split noarch data to share ################################# for i in %{buildroot}%{_libdir}/%{name}/share/config/soffice.cfg/modules/*/ui/res/*.zip \ %{buildroot}%{_libdir}/%{name}/share/config/soffice.cfg/*/ui/res/*.zip \ %{buildroot}%{_libdir}/%{name}/share/registry/res/fcfg_langpack_*.xcd \ %{buildroot}%{_libdir}/%{name}/share/registry/res/registry_*.xcd \ %{buildroot}%{_libdir}/%{name}/share/registry/Langpack-*.xcd \ %{buildroot}%{_libdir}/%{name}/program/resource/*.res \ %{buildroot}%{_libdir}/%{name}/share/config/images*.zip \ %{buildroot}%{_libdir}/%{name}/share/registry/{cjk,ctl}_*.xcd \ %{buildroot}%{_libdir}/%{name}/share/registry/ctlseqcheck_th.xcd \ ; do trg="`dirname "$i" | sed 's|%{_libdir}|%{_datadir}|'`" mkdir -p "$trg" mv "$i" "$trg" done # help files are luckily in just one folder mkdir -p %{buildroot}/%{_datadir}/%{name}/help/ grep -v '%{_libdir}/%{name}/help' file-lists/common_list.txt > tmplist mv tmplist file-lists/common_list.txt echo "%dir %{_datadir}/%{name}/help" >>file-lists/common_list.txt mv %{buildroot}/%{_libdir}/%{name}/help/ %{buildroot}/%{_datadir}/%{name}/ mkdir -p %{buildroot}/%{_libdir}/%{name}/help/ echo "%dir %{_libdir}/%{name}/help" >>file-lists/common_list.txt for file in idxcaption.xsl idxcontent.xsl main_transform.xsl ; do mv "%{buildroot}/%{_datadir}/%{name}/help/$file" "%{buildroot}/%{_libdir}/%{name}/help/$file" echo "%{_libdir}/%{name}/help/$file" >> file-lists/common_list.txt done # autotext is another self contained dir mkdir -p %{buildroot}/%{_datadir}/%{name}/share/autotext/ grep -v '%{_libdir}/%{name}/share/autotext' file-lists/common_list.txt > tmplist mv tmplist file-lists/common_list.txt mv %{buildroot}/%{_libdir}/%{name}/share/autotext/ %{buildroot}/%{_datadir}/%{name}/share/ ################ # branding split ################ # first check wheter the prebuilt sofficerc is still the same if ! diff %{buildroot}%{_libdir}/%{name}/program/sofficerc $RPM_SOURCE_DIR/sofficerc-upstream ; then echo "Error: The file \"sofficerc\" has changed in the sources" echo " Please, update the prebuilt variant in $RPM_SOURCE_DIR/sofficerc-upstream" exit 1; fi # create symlinks for all brandings to noarch pkg mkdir -p %{buildroot}/%{_datadir}/%{name}/program/shell echo "%{_datadir}/%{name}/program/shell" >> file-lists/branding_upstream.txt for file in sofficerc \ intro.png \ flat_logo.svg \ shell/about.svg ; do mv "%{buildroot}%{_libdir}/%{name}/program/$file" "%{buildroot}%{_datadir}/%{name}/program/$file" ln -sf "%{_datadir}/%{name}/program/$file" "%{buildroot}/%{_libdir}/%{name}/program/$file" echo "%{_datadir}/%{name}/program/$file" >> file-lists/branding_upstream.txt done # Fix autocorr names for various language mutations %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 %make_autocorr_aliases -l en-ZA en-NA en-ZW %make_autocorr_aliases -l af-ZA af-NA %make_autocorr_aliases -l de de-DE de-AT de-BE de-CH de-LI de-LU %make_autocorr_aliases -l es es-ES es-AR es-BO es-CL es-CO es-CR es-CU es-DO es-EC es-GT es-HN es-MX es-NI es-PA es-PE es-PR es-PY es-SV es-US es-UY es-VE %make_autocorr_aliases -l fr fr-FR fr-BE fr-CA fr-CH fr-LU fr-MC %make_autocorr_aliases -l it it-IT it-CH %make_autocorr_aliases -l nl-NL nl-AW %make_autocorr_aliases -l sv-SE sv-FI pushd %{buildroot}%{_libdir}/%{name}/share/autocorr files="" for file in acor*.dat; do files="$files $file" done popd for file in $files; do echo "%{_libdir}/%{name}/share/autocorr/$file" >> file-lists/common_list.txt done # Install appdata files, so we're shown in gnome-software (and other, future app stores) # upstream ships the files called libreoffice-{base,writer,...}, but the destop files are called base.destop [...] # fixup the appdata files internal reference to the .desktop file and rename them on the go to match the name install -m 0755 -d %{buildroot}%{_datadir}/appdata for appdata in base calc draw impress writer; do sed "s/libreoffice-${appdata}.desktop/${appdata}.desktop/" \ sysui/desktop/appstream-appdata/libreoffice-${appdata}.appdata.xml > %{buildroot}%{_datadir}/appdata/${appdata}.appdata.xml echo "%{_datadir}/appdata/${appdata}.appdata.xml" >>file-lists/${appdata}_list.txt %if 0%{?suse_version} < 1320 echo "%dir %{_datadir}/appdata/" >>file-lists/${appdata}_list.txt %endif rm -rf %{buildroot}%{_datadir}/appdata/libreoffice-${appdata}.appdata.xml done # Remove pointless readmes rm -rf %{buildroot}%{_libdir}/%{name}/readmes/ # Clean RPATH on some 3rd party bundled libs %if !%{with systemlibs} chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libwpd-0.10-lo.so.10 chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libwpg-0.3-lo.so.3 chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libetonyek-0.1-lo.so.1 chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libmwaw-0.3-lo.so.3 chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libwps-0.4-lo.so.4 chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/libodfgen-0.1-lo.so.1 chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/librdf-lo.so.0 chrpath --replace '$ORIGIN' %{buildroot}%{_libdir}/%{name}/program/librasqal-lo.so.3 %endif # Generate python cache files %if 0%{?suse_version} > 1130 %py3_compile %{buildroot}/%{_libdir}/libreoffice/program/ %py3_compile %{buildroot}/%{_libdir}/libreoffice/share/extensions/ %py3_compile %{buildroot}/%{_libdir}/libreoffice/share/Scripts/python/ %py3_compile %{buildroot}/%{_libdir}/libreoffice/sdk/examples/python/ %else %py_compile %{buildroot}/%{_libdir}/libreoffice/program/ %py_compile %{buildroot}/%{_libdir}/libreoffice/share/extensions/ %py_compile %{buildroot}/%{_libdir}/libreoffice/share/Scripts/python/ %py_compile %{buildroot}/%{_libdir}/libreoffice/sdk/examples/python/ %endif # Move python cache to respective filelist for i in file-lists/*.txt; do if [ `cat "${i}" | grep '\.py$' |wc -l` -gt 0 ]; then cat "${i}" | grep '\.py$' > pyfiles.txt for j in `cat pyfiles.txt`; do # python3 has __pycache__ dir while py2 does not %if %{with newmedia} pydir="${j%/*}" pyname="${j##*/}" echo "%dir ${pydir}/__pycache__/" >> "${i}" echo "${pydir}/__pycache__/${pyname%.*}*.pyc" >> "${i}" %else # just add c to state pyc echo "${j}c" >> "${i}" %endif done fi done rm pyfiles.txt # Symlink libreofficekit to libdir %if %{with newmedia} ln -s %{_libdir}/%{name}/program/liblibreofficekitgtk.so %{buildroot}%{_libdir}/liblibreofficekitgtk.so %endif # Symlink uno.py and unohelper.py so that python can find them # This is done after the cache files generating on purpose mkdir -p %{buildroot}%{python3_sitelib} ln -s %{_libdir}/libreoffice/program/uno.py %{buildroot}%{python3_sitelib}/uno.py ln -s %{_libdir}/libreoffice/program/unohelper.py %{buildroot}%{python3_sitelib}/unohelper.py echo "%{python3_sitelib}/uno.py" >> file-lists/pyuno_list.txt echo "%{python3_sitelib}/unohelper.py" >> file-lists/pyuno_list.txt # move glade catalog to system glade dir install -m 0755 -d %{buildroot}%{_datadir}/glade/catalogs mv %{buildroot}%{_libdir}/%{name}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade/catalogs install -m 0755 -d %{buildroot}%{_datadir}/glade3/catalogs ln -s %{_datadir}/glade/catalogs/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs grep -v '%{_libdir}/%{name}/share/glade/libreoffice-catalog.xml' file-lists/common_list.txt > tmplist mv tmplist file-lists/common_list.txt # install gdb pretty printers export DESTDIR=%{buildroot} export SRCDIR="./" ./solenv/bin/install-gdb-printers -a %{_datadir}/gdb/auto-load%{_libdir}/%{name} -c -i %{_libdir}/%{name} -p %{_datadir}/libreoffice/gdb # We have ton of duped files so run over it %fdupes %{buildroot}%{_prefix} %post /sbin/ldconfig %if %suse_version > 1130 %mime_database_post %desktop_database_post %icon_theme_cache_post %else test -f /usr/bin/update-mime-database && /usr/bin/update-mime-database %{_datadir}/mime > /dev/null || : test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.gtk2 && SuSEconfig --module gtk2 > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %preun uno_cache="%{_libdir}/%{name}/share/uno_packages/cache/uno_packages/" if [ "$1" = "0" ] ; then test -d "$uno_cache" && rm -rf "$uno_cache"/* fi exit 0 %postun /sbin/ldconfig %if %suse_version > 1130 %icon_theme_cache_postun %desktop_database_postun %mime_database_postun %else test -f /usr/bin/update-mime-database && /usr/bin/update-mime-database %{_datadir}/mime > /dev/null || : test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.gtk2 && SuSEconfig --module gtk2 > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %post base %if %suse_version > 1130 %desktop_database_post %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %postun base %if %suse_version > 1130 %desktop_database_postun %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %post calc %if %suse_version > 1130 %desktop_database_post %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %postun calc %if %suse_version > 1130 %desktop_database_postun %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %post draw %if %suse_version > 1130 %desktop_database_post %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %postun draw %if %suse_version > 1130 %desktop_database_postun %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %post math %if %suse_version > 1130 %desktop_database_post %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %postun math %if %suse_version > 1130 %desktop_database_postun %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %post impress %if %suse_version > 1130 %desktop_database_post %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %postun impress %if %suse_version > 1130 %desktop_database_postun %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %post writer %if %suse_version > 1130 %desktop_database_post %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %postun writer %if %suse_version > 1130 %desktop_database_postun %else test -f /usr/bin/update-desktop-database && /usr/bin/update-desktop-database > /dev/null || : test -f /sbin/conf.d/SuSEconfig.glib2 && SuSEconfig --module glib2 > /dev/null || : %endif %_link_noarch_files icon-theme-breeze %_link_noarch_files icon-theme-galaxy %_link_noarch_files icon-theme-hicontrast %_link_noarch_files icon-theme-oxygen %_link_noarch_files icon-theme-sifr %_link_noarch_files icon-theme-tango %files -f file-lists/common_list.txt %defattr(-,root,root) # ignore helper files for brp-symlink check %exclude %{_datadir}/%{name}/program/sofficerc %exclude %{_datadir}/%{name}/program/flat_logo.svg %exclude %{_datadir}/%{name}/program/*.png %exclude %{_datadir}/%{name}/program/shell/*.svg # such a big icons are not provided by other packages # FIXME: last time checked on openSUSE-12.2 %dir %{_datadir}/icons/hicolor/512x512 %dir %{_datadir}/icons/hicolor/512x512/apps %dir %{_datadir}/icons/hicolor/512x512/mimetypes # FIXME: this is KDE4 only, wipe? %dir %{_datadir}/icons/locolor %dir %{_datadir}/icons/locolor/16x16 %dir %{_datadir}/icons/locolor/16x16/apps %dir %{_datadir}/icons/locolor/16x16/mimetypes %dir %{_datadir}/icons/locolor/32x32 %dir %{_datadir}/icons/locolor/32x32/apps %dir %{_datadir}/icons/locolor/32x32/mimetypes %if %{with newmedia} %files -n libreofficekit %defattr(-,root,root) %dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/LOKDocView-0.1.typelib %{_libdir}/liblibreofficekitgtk.so %files -n libreofficekit-devel %defattr(-,root,root) %dir %{_datadir}/gir-1.0 %{_datadir}/gir-1.0/LOKDocView-0.1.gir %endif %files glade %defattr(-,root,root) %dir %{_datadir}/glade %dir %{_datadir}/glade/catalogs %{_datadir}/glade/catalogs/libreoffice-catalog.xml %dir %{_datadir}/glade3 %dir %{_datadir}/glade3/catalogs %{_datadir}/glade3/catalogs/libreoffice-catalog.xml %files gdb-pretty-printers %defattr(-,root,root) %{_datadir}/gdb/auto-load/%{_libdir}/%{name} %{_datadir}/libreoffice/gdb %files -f file-lists/base_list.txt base %defattr(-,root,root) %files -f file-lists/calc_list.txt calc %defattr(-,root,root) %files -f file-lists/draw_list.txt draw %defattr(-,root,root) %files -f file-lists/math_list.txt math %defattr(-,root,root) %files -f file-lists/impress_list.txt impress %defattr(-,root,root) %files -f file-lists/writer_list.txt writer %defattr(-,root,root) %files -f file-lists/postgresql_list.txt base-drivers-postgresql %defattr(-,root,root) %files -f file-lists/filters_list.txt filters-optional %defattr(-,root,root) %files -f file-lists/mailmerge_list.txt mailmerge %defattr(-,root,root) %files -f file-lists/pyuno_list.txt pyuno %defattr(-,root,root) %files -f file-lists/gnome_list.txt gnome %defattr(-,root,root) %if %{with newmedia} %files gtk3 %defattr(-,root,root) %{_libdir}/libreoffice/program/libvclplug_gtk3lo.so %endif %if %{with kdeintegration} %files -f file-lists/kde4_list.txt kde4 %defattr(-,root,root) %endif %files -f file-lists/officebean_list.txt officebean %defattr(-,root,root) %files -f file-lists/sdk_list.txt sdk %defattr(-,root,root) %files -f file-lists/sdk_doc_list.txt sdk-doc %defattr(-,root,root) %files base-drivers-mysql %defattr(-,root,root) %{_libdir}/%{name}/share/extensions/mysql-connector-ooo %files calc-extensions %defattr(-,root,root) %{_libdir}/%{name}/share/extensions/ConvertTextToNumber %{_libdir}/%{name}/share/extensions/nlpsolver %{_libdir}/%{name}/share/extensions/numbertext %files writer-extensions %defattr(-,root,root) %{_libdir}/%{name}/share/extensions/wiki-publisher %files icon-theme-breeze %defattr(-,root,root) %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/share %dir %{_datadir}/%{name}/share/config %{_datadir}/%{name}/share/config/images_breeze.zip %files icon-theme-galaxy %defattr(-,root,root) %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/share %dir %{_datadir}/%{name}/share/config %{_datadir}/%{name}/share/config/images_galaxy.zip %files icon-theme-hicontrast %defattr(-,root,root) %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/share %dir %{_datadir}/%{name}/share/config %{_datadir}/%{name}/share/config/images_hicontrast.zip %files icon-theme-oxygen %defattr(-,root,root) %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/share %dir %{_datadir}/%{name}/share/config %{_datadir}/%{name}/share/config/images_oxygen.zip %files icon-theme-sifr %defattr(-,root,root) %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/share %dir %{_datadir}/%{name}/share/config %{_datadir}/%{name}/share/config/images_sifr.zip %files icon-theme-tango %defattr(-,root,root) %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/share %dir %{_datadir}/%{name}/share/config %{_datadir}/%{name}/share/config/images_tango.zip %files -f file-lists/branding_upstream.txt branding-upstream %defattr(-,root,root) %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor