3d21154
# This package depends on automagic byte compilation
3d21154
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
3d21154
%global _python_bytecompile_extra 1
3d21154
8dd8adf
# download path contains version without the last (fourth) digit
284ab75
%global libo_version 6.2.5
8dd8adf
# Should contain .alphaX / .betaX, if this is pre-release (actually
8dd8adf
# pre-RC) version. The pre-release string is part of tarball file names,
8dd8adf
# so we need a way to define it easily at one place.
470fd42
%global libo_prerelease %{nil}
22f7cf7
# Should contain any suffix of release tarball name, e.g., -buildfix1.
7557b5b
%global libo_buildfix %{nil}
d6f6bbf
# rhbz#715152 state vendor
d6f6bbf
%if 0%{?rhel}
7557b5b
%global vendoroption --with-vendor="Red Hat, Inc."
0d3c41a
%endif
0d3c41a
%if 0%{?fedora}
0d3c41a
%global vendoroption --with-vendor="The Fedora Project"
0d3c41a
%endif
7557b5b
%global libo_python python3
495ba09
%global libo_python_executable %{__python3}
7557b5b
%global libo_python_sitearch %{python3_sitearch}
8076325
# rhbz#465664 jar-repacking breaks help by reordering META-INF/MANIFEST.MF
7557b5b
%global __jar_repack %{nil}
0965287
# make it easier to download sources from pre-release site
f01486e
%if 0%{?prerelease}
7557b5b
%global source_url http://dev-builds.libreoffice.org/pre-releases/src
774b360
%else
7557b5b
%global source_url http://download.documentfoundation.org/libreoffice/src/%{libo_version}
774b360
%endif
88f272a
# URL for external projects' tarballs
7557b5b
%global external_url http://dev-www.libreoffice.org/src
0eed0e2
%global girapiversion 0.1
8076325
a2f244f
# get english only and no-langpacks for a faster smoketest build
d18fd8c
# fedpkg compile/install/local/mockbuild does not handle --without ATM,
d18fd8c
# so it is necessary to change this to bcond_with to achieve the same
d18fd8c
# effect
8b23922
%bcond_without langpacks
8c1a0f3
f8574d3
# remove workdir at the end of %%build, to allow build on space-constrained machines
f8574d3
%ifarch s390 s390x
f8574d3
%bcond_without smallbuild
f8574d3
%else
f8574d3
%bcond_with smallbuild
f8574d3
%endif
f8574d3
357e8af
# generated by %%langpack definitions
357e8af
%global langpack_langs %{nil}
8076325
47c84f4
%global bundling_options %{nil}
47c84f4
8076325
Summary:        Free Software Productivity Suite
8076325
Name:           libreoffice
7ce6c87
Epoch:          1
b3c2abc
Version:        %{libo_version}.2
284ab75
Release:        1%{?libo_prerelease}%{?dist}
baccef7
License:        (MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and MPLv2.0 and CC0
Richard Hughes 0a4885c
URL:            http://www.libreoffice.org/
a881c9f
22f7cf7
Source0:        %{source_url}/libreoffice-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz
f01486e
Source1:        %{source_url}/libreoffice-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz.asc
f01486e
Source2:        %{source_url}/libreoffice-help-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz
f01486e
Source3:        %{source_url}/libreoffice-help-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz.asc
f01486e
Source4:        %{source_url}/libreoffice-translations-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz
774b360
Source5:        %{source_url}/libreoffice-translations-%{version}%{?libo_prerelease}%{?libo_buildfix}.tar.xz.asc
f01486e
Source6:        gpgkey-C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3.gpg.asc
f01486e
Source7:        http://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll
f01486e
Source8:        libreoffice-multiliblauncher.sh
32c65e4
f01486e
Source9:        %{external_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
c8036c6
%if 0%{?fedora}
e666020
Source10:       %{external_url}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
e666020
Source11:       %{external_url}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
c8036c6
%endif
9d4ac2a
#Unfortunately later versions of hsqldb changed the file format, so if we use a later version we loose
9d4ac2a
#backwards compatability.
e666020
Source12:       %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
faa2858
Source13:       %{external_url}/49a64f3bcf20a7909ba2751349231d6652ded9cd2840e961b5164d09de3ffa63-opens___.ttf
47c84f4
%global bundling_options %{?bundling_options} --without-system-hsqldb
36bc8f4
32c65e4
Provides: bundled(hsqldb) = 1.8.0
c8036c6
%if 0%{?fedora}
32c65e4
Provides: bundled(rhino) = 1.5
c8036c6
%endif
32c65e4
Provides: bundled(xsltml) = 2.1.2
32c65e4
e97054c
# symbolic icons
e97054c
Source42:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-base-symbolic.svg
e97054c
Source43:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-calc-symbolic.svg
e97054c
Source44:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-draw-symbolic.svg
e97054c
Source45:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-impress-symbolic.svg
e97054c
Source46:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-main-symbolic.svg
e97054c
Source47:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-math-symbolic.svg
e97054c
Source48:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-writer-symbolic.svg
e97054c
a484797
# build tools
a484797
BuildRequires: autoconf
a484797
BuildRequires: automake
a484797
BuildRequires: bc
a484797
BuildRequires: binutils
a484797
BuildRequires: bison
a484797
BuildRequires: desktop-file-utils
a484797
BuildRequires: doxygen
a484797
BuildRequires: findutils
a484797
BuildRequires: flex
a484797
BuildRequires: gcc-c++
4cfeb5e
BuildRequires: gdb
f24ee66
BuildRequires: gettext
a85919d
BuildRequires: git
f01486e
BuildRequires: gnupg2
a484797
BuildRequires: gperf
a484797
BuildRequires: icu
f138f6a
BuildRequires: libtool-ltdl-devel
a484797
BuildRequires: make
faa2858
BuildRequires: mariadb-connector-c-devel
a484797
BuildRequires: perl(Digest::MD5)
432f77f
%if 0%{?fedora}
818e79e
BuildRequires: glibc-all-langpacks
ef510b5
BuildRequires: libappstream-glib
303cc4a
%endif
629290a
BuildRequires: ucpp
a484797
BuildRequires: zip
a484797
e8ed230
# libs / headers - common
53cedb4
BuildRequires: %{libo_python}-devel
5200d01
BuildRequires: boost-devel
a484797
BuildRequires: cups-devel
a484797
BuildRequires: fontpackages-devel
bd1d7f7
BuildRequires: firebird-devel
e452bef
BuildRequires: glm-devel
e8ed230
BuildRequires: hyphen-devel
5200d01
BuildRequires: libjpeg-turbo-devel
e8ed230
BuildRequires: lpsolve-devel
e8ed230
BuildRequires: openldap-devel
e8ed230
BuildRequires: pam-devel
5200d01
BuildRequires: pkgconfig(bluez)
e8ed230
BuildRequires: pkgconfig(dbus-glib-1)
aa370e7
BuildRequires: pkgconfig(dconf)
e5ea20e
BuildRequires: pkgconfig(epoxy)
e8ed230
BuildRequires: pkgconfig(evolution-data-server-1.2)
e129662
BuildRequires: pkgconfig(expat)
fb9ee00
BuildRequires: pkgconfig(freetype2)
e452bef
BuildRequires: pkgconfig(glew) >= 1.10.0
e8ed230
BuildRequires: pkgconfig(glu)
68a5d5a
BuildRequires: pkgconfig(gobject-introspection-1.0)
5200d01
BuildRequires: pkgconfig(gstreamer-1.0)
5200d01
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
6741cf1
BuildRequires: pkgconfig(gtk+-3.0)
fb9ee00
BuildRequires: pkgconfig(hunspell)
fb9ee00
BuildRequires: pkgconfig(ice)
f24ee66
BuildRequires: pkgconfig(icu-i18n)
5200d01
BuildRequires: pkgconfig(lcms2)
e452bef
BuildRequires: pkgconfig(libabw-0.1)
e452bef
BuildRequires: pkgconfig(libcdr-0.1)
5200d01
BuildRequires: pkgconfig(libclucene-core)
73a1999
BuildRequires: pkgconfig(libcmis-0.5)
e8ed230
BuildRequires: pkgconfig(libcurl)
02d87b3
BuildRequires: pkgconfig(libetonyek-0.1)
5200d01
BuildRequires: pkgconfig(libexttextcat)
e452bef
BuildRequires: pkgconfig(libfreehand-0.1)
e8ed230
BuildRequires: pkgconfig(libidn)
5200d01
BuildRequires: pkgconfig(liblangtag)
e452bef
BuildRequires: pkgconfig(libmspub-0.1)
3c6b679
BuildRequires: pkgconfig(libmwaw-0.3)
e452bef
BuildRequires: pkgconfig(libodfgen-0.1)
73a1999
BuildRequires: pkgconfig(libpagemaker-0.0)
19d4ec4
BuildRequires: pkgconfig(libpq)
e452bef
BuildRequires: pkgconfig(librevenge-0.0)
73a1999
BuildRequires: pkgconfig(libstaroffice-0.0)
e452bef
BuildRequires: pkgconfig(libvisio-0.1)
e452bef
BuildRequires: pkgconfig(libwpd-0.10)
e452bef
BuildRequires: pkgconfig(libwpg-0.3)
73a1999
BuildRequires: pkgconfig(libwps-0.4)
e8ed230
BuildRequires: pkgconfig(libxml-2.0)
e8ed230
BuildRequires: pkgconfig(libxslt)
73a1999
BuildRequires: pkgconfig(libzmf-0.0)
5200d01
BuildRequires: pkgconfig(mythes)
e8ed230
BuildRequires: pkgconfig(neon)
e8ed230
BuildRequires: pkgconfig(nss)
e8ed230
BuildRequires: pkgconfig(poppler)
5200d01
BuildRequires: pkgconfig(poppler-cpp)
e8ed230
BuildRequires: pkgconfig(redland)
e8ed230
BuildRequires: pkgconfig(sane-backends)
fb9ee00
BuildRequires: pkgconfig(xext)
fb9ee00
BuildRequires: pkgconfig(xinerama)
050d028
BuildRequires: pkgconfig(xmlsec1-nss)
fb9ee00
BuildRequires: pkgconfig(xt)
e8ed230
BuildRequires: pkgconfig(zlib)
e8ed230
BuildRequires: unixODBC-devel
495ba09
BuildRequires: %{libo_python_executable}
5200d01
e8ed230
# libs / headers - conditional
a0d2c2d
%if 0%{?fedora}
e8ed230
BuildRequires: kdelibs4-devel
0d3c41a
BuildRequires: pkgconfig(libe-book-0.1)
09f22f6
BuildRequires: qt5-qtbase-devel
09f22f6
BuildRequires: qt5-qtx11extras-devel
09f22f6
BuildRequires: kf5-kconfig-devel
09f22f6
BuildRequires: kf5-kcoreaddons-devel
09f22f6
BuildRequires: kf5-kdelibs4support-devel
09f22f6
BuildRequires: kf5-ki18n-devel
09f22f6
BuildRequires: kf5-kio-devel
09f22f6
BuildRequires: kf5-kwindowsystem-devel
0d3c41a
%endif
0d3c41a
0d3c41a
BuildRequires: gpgmepp-devel
1f6713e
BuildRequires: pkgconfig(cppunit) >= 1.14.0
aefdcb6
BuildRequires: pkgconfig(graphite2)
aefdcb6
BuildRequires: pkgconfig(harfbuzz)
fb9ee00
BuildRequires: pkgconfig(libeot)
7b6d170
BuildRequires: pkgconfig(libepubgen-0.1)
7b6d170
BuildRequires: pkgconfig(libqxp-0.0)
8627250
BuildRequires: pkgconfig(liborcus-0.14)
db7e3ed
BuildRequires: pkgconfig(mdds-1.4)
9ddfc40
BuildRequires: libnumbertext-devel
e8ed230
a484797
# java stuff
a484797
BuildRequires: ant
a484797
BuildRequires: bsh
60d4293
BuildRequires: java-devel
a484797
BuildRequires: junit
a484797
BuildRequires: pentaho-reporting-flow-engine
d7427b6
3821c37
# fonts needed for tests
3821c37
BuildRequires: dejavu-sans-fonts
3821c37
BuildRequires: google-crosextra-carlito-fonts
10ad385
BuildRequires: liberation-mono-fonts
10ad385
BuildRequires: liberation-sans-fonts
10ad385
BuildRequires: liberation-serif-fonts
Lukas Tinkl c4870bd
6456d6e
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-impress%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-draw%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-math%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-base%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-emailmerge%{?_isa} = %{epoch}:%{version}-%{release}
cf7004f
4d8151e
# not upstreamed: upstream wants an automatic restart after a crash; we
4d8151e
# want a nice abrt report
14ae80d
Patch0: 0001-don-t-suppress-crashes.patch
1f6713e
# not upstreamed
191618f
Patch1: 0001-Resolves-rhbz-1432468-disable-opencl-by-default.patch
2b1e4f9
Patch2: 0001-rhbz-1690732-basic-font-variation-support.patch
508b7e1
1c6b9e3
%if 0%{?rhel}
1c6b9e3
# not upstreamed
978b4cf
Patch500: 0001-disable-libe-book-support.patch
1c6b9e3
%endif
8076325
7557b5b
%global instdir %{_libdir}
7557b5b
%global baseinstdir %{instdir}/libreoffice
7557b5b
%global sdkinstdir %{baseinstdir}/sdk
7557b5b
%global datadir %{_datadir}/%{name}
7557b5b
%global fontname opensymbol
c7abd61
# HACK: Get the data dir for -data subpackage. I haven't found any better
c7abd61
# way to do this...
c7abd61
%global oldname %{name}
c7abd61
%global name %{name}-data
c7abd61
%global lodatadocdir %{_pkgdocdir}
c7abd61
%global name %{oldname}
8076325
45b823c
%if 0%{?__isa_bits} == 64
45b823c
%global mark64 ()(64bit)
45b823c
%endif
45b823c
8076325
%description
8076325
LibreOffice is an Open Source, community-developed, office productivity suite.
8076325
It includes the key desktop applications, such as a word processor,
8076325
spreadsheet, presentation manager, formula editor and drawing program, with a
8076325
user interface and feature set similar to other office suites.  Sophisticated
8076325
and flexible, LibreOffice also works transparently with a variety of file
8076325
formats, including Microsoft Office File Formats.
8076325
c912544
%package filters
c912544
Summary: All import / export filters
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
87ae9dc
Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release}
87ae9dc
Requires: %{name}-draw%{?_isa} = %{epoch}:%{version}-%{release}
87ae9dc
Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release}
87ae9dc
Requires: %{name}-impress%{?_isa} = %{epoch}:%{version}-%{release}
87ae9dc
Requires: %{name}-math%{?_isa} = %{epoch}:%{version}-%{release}
87ae9dc
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
87ae9dc
Requires: %{name}-xsltfilter%{?_isa} = %{epoch}:%{version}-%{release}
c912544
632edf3
%description filters
c912544
Metapackage to pull in all subpackages that contain import or export
c912544
filters.
c912544
8076325
%package core
8076325
Summary: Core modules for LibreOffice
8ea7f95
Requires: %{name}-%{fontname}-fonts = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
e1bf4e8
Requires: %{name}-data = %{epoch}:%{version}-%{release}
769bde5
Requires: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release}
e229720
Requires: liberation-sans-fonts, liberation-serif-fonts, liberation-mono-fonts
8076325
Requires: dejavu-sans-fonts, dejavu-serif-fonts, dejavu-sans-mono-fonts
0c51029
Requires: google-crosextra-caladea-fonts, google-crosextra-carlito-fonts
ad963bd
Requires: %{name}-langpack-en = %{epoch}:%{version}-%{release}
213dc35
# rhbz#949106 libreoffice-core drags in both openjdk 1.7.0 and 1.8.0
3981fec
Requires: java-headless >= 1:1.6
2e69e1d
Obsoletes: libreoffice-headless < 1:4.4.0.0
8d425fb
Provides: libreoffice-headless = %{epoch}:%{version}-%{release}
6456d6e
Provides: libreoffice-headless%{?_isa} = %{epoch}:%{version}-%{release}
c8036c6
%if 0%{?rhel}
c8036c6
Obsoletes: libreoffice-bsh < 1:6.2.2.3
c8036c6
Obsoletes: libreoffice-rhino < 1:6.2.2.3
c8036c6
%endif
8076325
8076325
%description core
8076325
The shared core libraries and support files for LibreOffice.
8076325
8076325
%package pyuno
8076325
Summary: Python support for LibreOffice
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
495ba09
Requires: %{libo_python_executable}
8076325
8076325
%description pyuno
8076325
Python bindings for the LibreOffice UNO component model. Allows scripts both
8076325
external to LibreOffice and within the internal LibreOffice scripting framework
8076325
to be written in python.
8076325
8076325
%package base
8076325
Summary: Database front-end for LibreOffice
e74cb9c
Requires: pentaho-reporting-flow-engine
9d4ac2a
Requires: postgresql-jdbc
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release}
b7d5e7a
Requires: %{name}-data = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description base
8076325
GUI database front-end for LibreOffice. Allows creation and management of 
8076325
databases through a GUI.
8076325
c8036c6
%if 0%{?fedora}
8076325
%package bsh
8076325
Summary: BeanShell support for LibreOffice
8076325
Requires: bsh
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description bsh
8076325
Support BeanShell scripts in LibreOffice.
8076325
c8036c6
%package rhino
c8036c6
Summary: JavaScript support for LibreOffice
c8036c6
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
c8036c6
c8036c6
%description rhino
c8036c6
Support JavaScript scripts in LibreOffice.
c8036c6
%endif
c8036c6
5139033
%package officebean
5139033
Summary: JavaBean for LibreOffice Components
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
96f3a4e
Requires: %{name}-officebean-common = %{epoch}:%{version}-%{release}
5139033
5139033
%description officebean
5139033
Allows embedding of LibreOffice documents within the Java environment. It
5139033
provides a Java AWT window into which the backend LibreOffice process draws
5139033
its visual representation
5139033
96f3a4e
%package officebean-common
96f3a4e
Summary: Common JavaBean for LibreOffice Components
96f3a4e
Requires: %{name}-data = %{epoch}:%{version}-%{release}
96f3a4e
BuildArch: noarch
96f3a4e
96f3a4e
%description officebean-common
96f3a4e
Arch-independent part of %{name}-officebean.
96f3a4e
8076325
%package wiki-publisher
8076325
Summary: Create Wiki articles on MediaWiki servers with LibreOffice
6456d6e
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description wiki-publisher
8076325
The Wiki Publisher enables you to create Wiki articles on MediaWiki servers
8076325
without having to know the syntax of the MediaWiki markup language. Publish
8076325
your new and existing documents transparently with writer to a wiki page.
8076325
445e8d9
%package nlpsolver
445e8d9
Summary: Non-linear solver engine for LibreOffice Calc
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-calc%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
445e8d9
445e8d9
%description nlpsolver
445e8d9
A non-linear solver engine for Calc as an alternative to the default linear
445e8d9
programming model when more complex, nonlinear programming is required.
445e8d9
8076325
%package ogltrans
8076325
Summary: 3D OpenGL slide transitions for LibreOffice
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-impress%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description ogltrans
8076325
OpenGL Transitions enable 3D slide transitions to be used in LibreOffice.
8076325
Requires good quality 3D support for your graphics card for best experience.
8076325
8076325
%package pdfimport
8076325
Summary: PDF Importer for LibreOffice Draw
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-draw%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description pdfimport
8076325
The PDF Importer imports PDF into drawing documents to preserve layout
8076325
and enable basic editing of PDF documents.
8076325
8076325
%package %{fontname}-fonts
8076325
Summary: LibreOffice dingbats font
8076325
Requires: fontpackages-filesystem
8076325
BuildArch: noarch
8076325
8076325
%description %{fontname}-fonts
8076325
A dingbats font, OpenSymbol, suitable for use by LibreOffice for bullets and
8076325
mathematical symbols. 
8076325
8076325
%package writer
8076325
Summary: LibreOffice Word Processor Application
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
b7d5e7a
Requires: %{name}-data = %{epoch}:%{version}-%{release}
7e6fcfd
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description writer
8076325
The LibreOffice Word Processor application.
8076325
8076325
%package emailmerge
8076325
Summary: Email mail-merge component for LibreOffice 
6456d6e
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description emailmerge
8076325
Enables the LibreOffice writer module to mail-merge to email.
8076325
8076325
%package calc
8076325
Summary: LibreOffice Spreadsheet Application
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
b7d5e7a
Requires: %{name}-data = %{epoch}:%{version}-%{release}
7e6fcfd
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description calc
8076325
The LibreOffice Spreadsheet application.
8076325
8076325
%package draw
8076325
Summary: LibreOffice Drawing Application
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
b7d5e7a
Requires: %{name}-data = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
7e6fcfd
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description draw
8076325
The LibreOffice Drawing Application.
8076325
8076325
%package impress
8076325
Summary: LibreOffice Presentation Application
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
b7d5e7a
Requires: %{name}-data = %{epoch}:%{version}-%{release}
7e6fcfd
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
245318c
Requires: %{name}-graphicfilter%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description impress
8076325
The LibreOffice Presentation Application.
8076325
8076325
%package math
8076325
Summary: LibreOffice Equation Editor Application
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
7e6fcfd
Requires: %{name}-pdfimport%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description math 
8076325
The LibreOffice Equation Editor Application.
8076325
8076325
%package graphicfilter
8076325
Summary: LibreOffice Extra Graphic filters
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
b7d5e7a
Requires: %{name}-data = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description graphicfilter
8076325
The graphicfilter module for LibreOffice provides graphic filters, e.g. svg and
8076325
flash filters.
8076325
8076325
%package xsltfilter
8076325
Summary: Optional xsltfilter module for LibreOffice
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
8076325
8076325
%description xsltfilter
8076325
The xsltfilter module for LibreOffice, provides additional docbook and
8076325
xhtml export transforms. Install this to enable docbook export.
8076325
518b615
%package postgresql
518b615
Summary: PostgreSQL connector for LibreOffice
6456d6e
Requires: %{name}-base%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
518b615
518b615
%description postgresql
518b615
A PostgreSQL connector for the database front-end for LibreOffice. Allows
518b615
creation and management of PostgreSQL databases through a GUI.
518b615
cb73e55
%package ure
cb73e55
Summary: UNO Runtime Environment
cb73e55
#rhbz#1164551 we want to ensure that a libjvm.so of this arch is available
96f3a4e
Requires: %{name}-ure-common = %{epoch}:%{version}-%{release}
6456d6e
Requires: unzip%{?_isa}, libjvm.so%{?mark64}
cb73e55
cb73e55
%description ure
cb73e55
UNO is the component model of LibreOffice. UNO offers interoperability between
cb73e55
programming languages, other components models and hardware architectures,
cb73e55
either in process or over process boundaries, in the Intranet as well as in the
cb73e55
Internet. UNO components may be implemented in and accessed from any
cb73e55
programming language for which a UNO implementation (AKA language binding) and
cb73e55
an appropriate bridge or adapter exists
cb73e55
96f3a4e
%package ure-common
96f3a4e
Summary: Common UNO Runtime Environment
96f3a4e
BuildArch: noarch
96f3a4e
96f3a4e
%description ure-common
96f3a4e
Arch-independent part of %{name}-ure.
96f3a4e
8076325
%package sdk
8076325
Summary: Software Development Kit for LibreOffice
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
5006c25
Requires: unzip%{?_isa}, java-devel
8076325
8076325
%description sdk
8076325
The LibreOffice SDK is an add-on for the LibreOffice office suite. It provides
8076325
the necessary tools for programming using the LibreOffice APIs and for creating
8076325
extensions (UNO components) for LibreOffice.  To set the build environment for
8076325
building against the sdk use %{sdkinstdir}/setsdkenv_unix.sh.
8076325
8076325
%package sdk-doc
8076325
Summary: Software Development Kit documentation for LibreOffice
8076325
8076325
%description sdk-doc
8076325
This provides documentation for programming using the LibreOffice APIs
8076325
and examples of creating extensions (UNO components) for LibreOffice.
8076325
5ac635d
%package glade
5ac635d
Summary: Support for creating LibreOffice dialogs in glade
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
5ac635d
5ac635d
%description glade
5ac635d
%{name}-glade contains a catalog of LibreOffice-specific widgets for
77258ed
glade and ui-previewer tool to check the visual appearance of dialogs.
5ac635d
a87a076
%package librelogo
a87a076
Summary: LibreLogo scripting language
6456d6e
Requires: %{name}-writer%{?_isa} = %{epoch}:%{version}-%{release}
6456d6e
Requires: %{name}-pyuno%{?_isa} = %{epoch}:%{version}-%{release}
a87a076
a87a076
%description librelogo
a87a076
Enables LibreLogo scripting in Writer. LibreLogo is a Logo-like
a87a076
programming language with interactive vectorgraphics for education and
a87a076
DTP.
a87a076
e1bf4e8
%package data
e1bf4e8
Summary: LibreOffice data files
3d15ea5
BuildArch: noarch
3d15ea5
e1bf4e8
%description data
e1bf4e8
%{name}-data contains platform-independent data files.
3d15ea5
77c7765
%package x11
77c7765
Summary: LibreOffice generic X11 support plug-in
77c7765
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
c4fa65c
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
77c7765
Provides: %{name}-plugin = %{epoch}:%{version}-%{release}
77c7765
Provides: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release}
77c7765
Supplements: (%{name}-core%{?_isa} and Xserver)
77c7765
77c7765
%description x11
77c7765
A plug-in for LibreOffice that enables generic X11 support.
77c7765
6741cf1
%package gtk3
6741cf1
Summary: LibreOffice GTK+ 3 integration plug-in
6741cf1
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
3e6dc79
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
6741cf1
Requires: gstreamer1(element-gtksink)%{?mark64}
7f5a4e4
Obsoletes: libreoffice-gtk2 < 1:6.2.0.0
6741cf1
Supplements: (%{name}-core%{?_isa} and gtk3%{?_isa})
6741cf1
6741cf1
%description gtk3
6741cf1
A plug-in for LibreOffice that enables integration into GTK+ 3 environment.
6741cf1
aab62f3
%if 0%{?fedora}
a8a7218
668a0bc
%package kde4
09f22f6
Summary: LibreOffice KDE4 integration plug-in
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
c4fa65c
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
77c7765
Provides: %{name}-plugin = %{epoch}:%{version}-%{release}
77c7765
Provides: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release}
Lukas Tinkl c4870bd
668a0bc
%description kde4
09f22f6
A plug-in for LibreOffice that enables integration into the KDE4 desktop environment.
09f22f6
09f22f6
%package kf5
09f22f6
Summary: LibreOffice KDE Frameworks 5 integration plug-in
09f22f6
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release}
09f22f6
Requires: %{name}-ure%{?_isa} = %{epoch}:%{version}-%{release}
09f22f6
Provides: %{name}-plugin = %{epoch}:%{version}-%{release}
09f22f6
Provides: %{name}-plugin%{?_isa} = %{epoch}:%{version}-%{release}
09f22f6
#Supplements: (libreoffice-core and plasma-workspace)
09f22f6
09f22f6
%description kf5
09f22f6
A plug-in for LibreOffice that enables integration into the KDE Frameworks 5.
a8a7218
68a5d5a
%endif
68a5d5a
439fedf
%package -n libreofficekit
439fedf
Summary: A library providing access to LibreOffice functionality
439fedf
License: MPLv2.0
439fedf
439fedf
%description -n libreofficekit
439fedf
LibreOfficeKit can be used to access LibreOffice functionality
439fedf
through C/C++, without any need to use UNO.
439fedf
439fedf
For now it only offers document conversion (in addition to an
439fedf
experimental tiled rendering API).
439fedf
fe1850c
%package -n libreofficekit-devel
fe1850c
Summary: Development files for libreofficekit
e6b18f6
Requires: libreofficekit%{?_isa} = %{epoch}:%{version}-%{release}
fe1850c
License: MPLv2.0
fe1850c
fe1850c
%description -n libreofficekit-devel
fe1850c
The libreofficekit-devel package contains libraries and header files for
fe1850c
developing applications that use libreofficekit.
fe1850c
e400f26
%if 0%{?_enable_debug_packages}
e400f26
e400f26
%package gdb-debug-support
e400f26
Summary: Additional support for debugging with gdb
6456d6e
Requires: gdb%{?_isa}
c1cdecb
Requires: %{libo_python}-six
Thierry Vignaud 0fab6a6
Requires: libreoffice-core%{?_isa} = %{epoch}:%{version}-%{release}
00e2674
Supplements: libreoffice-debuginfo%{?_isa}
e400f26
e400f26
%description gdb-debug-support
e400f26
This package provides gdb pretty printers for package %{name}.
e400f26
e400f26
%files gdb-debug-support
e400f26
%{_datadir}/gdb/auto-load%{baseinstdir}
e400f26
%{_datadir}/libreoffice/gdb
e400f26
e400f26
%endif
8076325
f24ee66
%define _langpack_common(Eg:j:l:) \
76e4950
%{!-E: \
f24ee66
%{baseinstdir}/program/resource/%{-g:%{-g*}}%{!-g:%{-l*}}/LC_MESSAGES/*.mo  \
f24ee66
%{baseinstdir}/share/registry/res/registry_%{-l*}.xcd \
76e4950
} \
f24ee66
%{baseinstdir}/share/template/%{-l*} \
f24ee66
%{baseinstdir}/share/registry/Langpack-%{-l*}.xcd \
f24ee66
%{baseinstdir}/share/registry/res/fcfg_langpack_%{-l*}.xcd \
f24ee66
%{baseinstdir}/share/wizards/resources_%{-j:%{-j*}}%{!-j:%{-l*}}.properties \
90dd62c
%{nil}
90dd62c
2aee8bd
# Defines a language pack subpackage.
2aee8bd
#
2aee8bd
# It's necessary to define language code (-l) and language name (-n).
2aee8bd
# Additionally, it's possible
2aee8bd
# * to require autocorr, hunspell, hyphen or mythes package or font for
2aee8bd
#   given language,
3c53372
# * to provide libreoffice-langpack-loc package, where loc is glibc
3c53372
#   locale--this is necessary for yum to pick it automatically,
2aee8bd
# * to require other, unrelated, packages,
2aee8bd
# * to specify file serving as file list.
2aee8bd
# For these, lower case character argument takes an argument specifying
2aee8bd
# language, upper case character argument uses language from -l.
2aee8bd
#
2aee8bd
# All remaining arguments are considered to be files and added to the file
2aee8bd
# list.
2aee8bd
#
90dd62c
# Aa:  autocorr dependency
90dd62c
# c:   additional config file (just the name stem)
76e4950
# E:   base (US English) langpack
90dd62c
# Ff:  font language dependency
f24ee66
# g:   glibc/java locale
90dd62c
# Hh:  hunspell dependency
90dd62c
# i:   additional language added to this package
f24ee66
# j:   java locale for the additional language
f24ee66
# k:   glibc locale for the additional language
357e8af
# L:   internal (LibreOffice) language code, used in file names
90dd62c
# l:   language code, e.g., cs
90dd62c
# Mm:  mythes dependency
90dd62c
# n:   language name, e.g., Czech
90dd62c
# p:   Provides: of libreoffice-langpack
90dd62c
# r:   comma-separated list of additional requires
5cb5cc6
# S:s: script classification (cjk, ctl). -S is only a marker, as it does
5cb5cc6
#      not add any .xcd into the package (the file does not exist for at
5cb5cc6
#      least one CTL-using locale, si)
90dd62c
# T    has help files
58ec5ff
# Xx:  has autotext definitions
90dd62c
# Yy:  hyphen dependency
2aee8bd
#
2aee8bd
# Example:
2aee8bd
# libreoffice-langpack-cs: langpack for Czech lang. requiring hyphen-cs,
fb5a016
# autocorr-cs, mythes-cs-CZ and suitable font:
90dd62c
# %%langpack -l cs -n Czech -H -A -m cs-CZ
f24ee66
#  b de           q  tu    z BCD  G IJK  N PQR  U    Z0123456789
f24ee66
%define langpack(Aa:c:EFf:g:Hh:i:j:k:L:l:Mm:n:p:r:S:s:TXx:Yy:) \
2aee8bd
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
357e8af
%define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \
2aee8bd
%define pkgname langpack-%{lang} \
2aee8bd
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
2aee8bd
\
357e8af
%global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \
357e8af
\
2aee8bd
%package %{pkgname} \
05abd19
Summary: %{langname} language pack for LibreOffice \
6456d6e
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \
2aee8bd
%{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \
2aee8bd
%{-f:Requires: font(:lang=%{-f*})}%{!-f:%{-F:Requires: font(:lang=%{lang})}} \
2aee8bd
%{-h:Requires: hunspell-%{-h*}}%{!-h:%{-H:Requires: hunspell-%{lang}}} \
2aee8bd
%{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \
2aee8bd
%{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \
2aee8bd
%{-r:Requires: %{-r*}} \
cbfdd5e
%{-p:Provides: %{name}-langpack-%{-p*} = %{epoch}:%{version}-%{release}} \
cbfdd5e
%{-p:Provides: %{name}-langpack-%{-p*}%{?_isa} = %{epoch}:%{version}-%{release}} \
00e2674
%{-p:Supplements: (%{name}-core%{?_isa} and langpacks-%{-p*})} \
00e2674
%{!-p:Supplements: (%{name}-core%{?_isa} and langpacks-%{lang})} \
a8ff32e
%if 0%{?rhel} \
8b116b8
%{-T:Requires: %{name}-help-%{lang}} \
a8ff32e
%else \
a8ff32e
%{-T:Recommends: %{name}-help-%{lang}} \
a8ff32e
%endif \
2aee8bd
\
2aee8bd
%description %{pkgname} \
05abd19
Provides additional %{langname} translations and resources for LibreOffice. \
2aee8bd
\
90dd62c
%{-T: \
a7ba29f
%package help-%{lang} \
a7ba29f
Summary: %{langname} help for LibreOffice \
a7ba29f
Requires: %{name}-core%{?_isa} = %{epoch}:%{version}-%{release} \
a7ba29f
\
a7ba29f
%description help-%{lang} \
a7ba29f
Provides %{langname} help for LibreOffice. \
a7ba29f
\
a7ba29f
%files help-%{lang} \
90dd62c
%docdir %{baseinstdir}/help/%{_langpack_lang} \
90dd62c
%{baseinstdir}/help/%{_langpack_lang} \
90dd62c
} \
a7ba29f
\
a7ba29f
%files %{pkgname} \
f24ee66
%{expand:%%_langpack_common %{-E} -l %{_langpack_lang} %{-g:-g %{-g*} -j %{-g*}}} \
a7ba29f
%{-x:%{baseinstdir}/share/autotext/%{-x*}}%{!-x:%{-X:%{baseinstdir}/share/autotext/%{_langpack_lang}}} \
a7ba29f
%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \
a7ba29f
%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \
f24ee66
%{-i:%{expand:%%_langpack_common %{-E} -l %{-i*} %{-k:-g %{-k*}} %{-j:-j %{-j*}}}} \
90dd62c
%{nil}
2aee8bd
2aee8bd
# Defines an auto-correction subpackage.
2aee8bd
#
a5510ed
# i: add autocorrections from additional language
2aee8bd
# l: language code
2aee8bd
# n: language name
a5510ed
# L  the filename does not contain country code
2aee8bd
#
2aee8bd
# All remaining arguments are considered to be files and added to the file
2aee8bd
# list.
a5510ed
%define autocorr(i:Ll:n:) \
2aee8bd
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
2aee8bd
%define pkgname autocorr-%{lang} \
2aee8bd
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
2aee8bd
\
2aee8bd
%package -n %{pkgname} \
2aee8bd
Summary: %{langname} auto-correction rules \
2aee8bd
BuildArch: noarch \
2aee8bd
\
2aee8bd
%description -n %{pkgname} \
2aee8bd
Rules for auto-correcting common %{langname} typing errors. \
2aee8bd
\
2aee8bd
%files -n %{pkgname} \
78c68ee
%doc instdir/LICENSE \
2aee8bd
%dir %{_datadir}/autocorr \
a5510ed
%{-L:%{_datadir}/autocorr/acor_%{lang}.dat} \
a5510ed
%{!-L:%{_datadir}/autocorr/acor_%{lang}-*.dat} \
a5510ed
%{nil}
8076325
f24ee66
%langpack -l en -n English -F -h en-US -Y -M -A -E -L en-US -T -X -g en_US
5c97235
8c1a0f3
%if %{with langpacks}
8076325
fb5a016
%langpack -l af -n Afrikaans -F -H -Y -A
fb5a016
%langpack -l ar -n Arabic -F -H -s ctl -T
fb5a016
%langpack -l as -n Assamese -F -H -Y
fb5a016
%langpack -l bg -n Bulgarian -F -H -Y -M -A -T -X
fb5a016
%langpack -l bn -n Bengali -F -H -Y -T
3d61453
%langpack -l br -n Breton -F -H
fb5a016
%langpack -l ca -n Catalan -F -H -Y -M -A -T -X
fb5a016
%langpack -l cs -n Czech -F -H -Y -M -A -T -X
fb5a016
%langpack -l cy -n Welsh -F -H -Y
fb5a016
%langpack -l da -n Danish -F -H -Y -M -A -T -X
edf942d
%langpack -l de -n German -F -H -Y -M -A -T -X
fb5a016
%langpack -l dz -n Dzongkha -F -s ctl -T
7b6ab5f
%langpack -l el -n Greek -F -H -Y -M -A -T
e4ee780
%langpack -l eo -n Esperanto -F -H -M -T
fb5a016
%langpack -l es -n Spanish -F -H -Y -M -A -T -X
fb5a016
%langpack -l et -n Estonian -F -H -Y -T
fb5a016
%langpack -l eu -n Basque -F -H -Y -T
3536b77
%langpack -l fa -n Farsi -A -H -Y -s ctl -X
fb5a016
%langpack -l fi -n Finnish -F -r libreoffice-voikko -A -T -X
fb5a016
%langpack -l fr -n French -F -H -Y -M -A -T -X
fb5a016
%langpack -l ga -n Irish -F -H -Y -M -A
fb5a016
%langpack -l gl -n Galician -F -H -Y -T
fb5a016
%langpack -l gu -n Gujarati -F -H -Y -s ctl -T
fb5a016
%langpack -l he -n Hebrew -F -H -s ctl -T
0e0949e
%langpack -l hi -n Hindi -F -H -Y -s ctl -T -X
fb5a016
%langpack -l hr -n Croatian -F -H -Y -A -T -X
fb5a016
%langpack -l hu -n Hungarian -F -H -Y -M -A -T -X
ca57831
%{baseinstdir}/share/wordbook/hu_AkH11.dic
e231fcb
%langpack -l id -n Indonesian -F -H -Y -T
fb5a016
%langpack -l it -n Italian -F -H -Y -M -A -T -X
fb5a016
%langpack -l ja -n Japanese -F -A -s cjk -T -X
8ae011d
%langpack -l kk -n Kazakh -F -H
fb5a016
%langpack -l kn -n Kannada -F -H -Y
fb5a016
%langpack -l ko -n Korean -F -H -A -s cjk -T -X
fb5a016
%langpack -l lt -n Lithuanian -F -H -Y -A -T -X
ea46a4d
%langpack -l lv -n Latvian -F -H -Y -M -T
fb5a016
%langpack -l mai -n Maithili -F
fb5a016
%langpack -l ml -n Malayalam -F -H -Y
fb5a016
%langpack -l mr -n Marathi -F -H -Y
fb5a016
%langpack -l nb -n Bokmal -F -H -Y -M -T
fb5a016
%langpack -l nl -n Dutch -F -H -Y -M -A -T -X
fb5a016
%langpack -l nn -n Nynorsk -F -H -Y -M -T
2aee8bd
%define langpack_lang Southern Ndebele
fb5a016
%langpack -l nr -n %{langpack_lang} -F -H
2aee8bd
%define langpack_lang Northern Sotho
fb5a016
%langpack -l nso -n %{langpack_lang} -F -H
fb5a016
%langpack -l or -n Odia -F -H -Y -s ctl
f24ee66
%langpack -l pa -n Punjabi -F -H -Y -s ctl -L pa-IN -g pa_IN
fb5a016
%langpack -l pl -n Polish -F -H -Y -M -A -T -X
2aee8bd
%define langpack_lang Brazilian Portuguese
f24ee66
%langpack -l pt-BR -n %{langpack_lang} -f pt -h pt -y pt -m pt -a pt -p pt_BR -T -X -g pt_BR
fb5a016
%langpack -l pt-PT -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -T -L pt -x pt
fb5a016
%langpack -l ro -n Romanian -A -F -H -Y -M -T -X
fb5a016
%langpack -l ru -n Russian -F -H -Y -M -A -T -X
fb5a016
%langpack -l si -n Sinhalese -F -H -S ctl -T
fb5a016
%langpack -l sk -n Slovak -F -H -Y -M -A -T -X
fb5a016
%langpack -l sl -n Slovenian -F -H -Y -M -A -T -X
6222204
%{baseinstdir}/share/wordbook/sl.dic
6222204
90dd62c
#rhbz#452379 clump serbian translations together
f24ee66
%langpack -l sr -n Serbian -F -H -Y -A -i sr-Latn -k sr@latin -j sr_Latn
fb5a016
%langpack -l ss -n Swati -F -H
2aee8bd
%define langpack_lang Southern Sotho
fb5a016
%langpack -l st -n %{langpack_lang} -F -H
fb5a016
%langpack -l sv -n Swedish -F -H -Y -M -A -T -X
fb5a016
%langpack -l ta -n Tamil -F -H -Y -s ctl -T
fb5a016
%langpack -l te -n Telugu -F -H -Y
fb5a016
%langpack -l th -n Thai -F -H -s ctl -c ctlseqcheck_th
fb5a016
%langpack -l tn -n Tswana -F -H
fb5a016
%langpack -l tr -n Turkish -F -A -T -X
fb5a016
%langpack -l ts -n Tsonga -F -H
fb5a016
%langpack -l uk -n Ukrainian -F -H -Y -M -T
fb5a016
%langpack -l ve -n Venda -F -H
fb5a016
%langpack -l xh -n Xhosa -F -H
2aee8bd
%define langpack_lang Simplified Chinese
f24ee66
%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
2aee8bd
%define langpack_lang Traditional Chinese
f24ee66
%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
fb5a016
%langpack -l zu -n Zulu -F -H -Y
2aee8bd
%undefine langpack_lang
8076325
2aee8bd
%endif
8076325
2aee8bd
%autocorr -l en -n English
8076325
8c1a0f3
%if %{with langpacks}
8076325
2aee8bd
%autocorr -l af -n Afrikaans
2aee8bd
%autocorr -l bg -n Bulgarian
6168b26
%autocorr -l ca -n Catalan
2aee8bd
%autocorr -l cs -n Czech
2aee8bd
%autocorr -l da -n Danish
c40c477
%autocorr -l de -n German -L
374f904
%define autocorr_lang Lower Sorbian
538b502
%autocorr -l dsb -n %{autocorr_lang} -L
9dff100
%autocorr -l el -n Greek
c40c477
%autocorr -l es -n Spanish -L
2aee8bd
%autocorr -l fa -n Farsi
2aee8bd
%autocorr -l fi -n Finnish
e36e88a
%autocorr -l fr -n French -L
2aee8bd
%autocorr -l ga -n Irish
6d05ca9
%autocorr -l hr -n Croatian
739c7e7
%define autocorr_lang Upper Sorbian
538b502
%autocorr -l hsb -n %{autocorr_lang} -L
2aee8bd
%autocorr -l hu -n Hungarian
6222204
%autocorr -l is -n Icelandic
c40c477
%autocorr -l it -n Italian -L
2aee8bd
%autocorr -l ja -n Japanese
2aee8bd
%autocorr -l ko -n Korean
2aee8bd
%autocorr -l lb -n Luxembourgish
2aee8bd
%autocorr -l lt -n Lithuanian
2aee8bd
%autocorr -l mn -n Mongolian
2aee8bd
%autocorr -l nl -n Dutch
2aee8bd
%autocorr -l pl -n Polish
2aee8bd
%autocorr -l pt -n Portuguese
9fade6e
%autocorr -l ro -n Romanian
2aee8bd
%autocorr -l ru -n Russian
2aee8bd
%autocorr -l sk -n Slovak
2aee8bd
%autocorr -l sl -n Slovenian
0321379
%autocorr -l sr -n Serbian
2aee8bd
%autocorr -l sv -n Swedish
2aee8bd
%autocorr -l tr -n Turkish
2aee8bd
%autocorr -l vi -n Vietnamese
2aee8bd
%autocorr -l zh -n Chinese
8076325
2aee8bd
%endif
8076325
9df525f
%define make_autocorr_aliases(l:) \
9df525f
%{?-l: \
9df525f
for lang in %{*}; do \
9df525f
    ln -sf acor_%{-l*}.dat acor_$lang.dat \
9df525f
done \
9df525f
} \
9df525f
%{!?-l:%{error:-l must be present}}
9df525f
8076325
%prep
f01486e
# verify tarballs
f01486e
gpg2 --dearmor < %{SOURCE6} > keyring.gpg
f01486e
gpgv2 --keyring ./keyring.gpg %{SOURCE1} %{SOURCE0}
f01486e
gpgv2 --keyring ./keyring.gpg %{SOURCE3} %{SOURCE2}
f01486e
gpgv2 --keyring ./keyring.gpg %{SOURCE5} %{SOURCE4}
f01486e
f01486e
%setup -q -n %{name}-%{version}%{?libo_prerelease} -b 2 -b 4
02742a4
rm -rf git-hooks */git-hooks
a85919d
a85919d
# set up git repo
a85919d
git init
3faa92c
git config user.name rpmbuild
3faa92c
git config user.email rpmbuild@fedoraproject.org
a85919d
git config gc.auto 0 # disable auto packing
a85919d
git add -A
a85919d
git commit -q -a -m %{name}-%{version}
a85919d
fb1b641
#Customize Palette to add Red Hat colours
8076325
(head -n -1 extras/source/palettes/standard.soc && \
51e536d
 echo -e '  <draw:color draw:name="Red Hat 1" draw:color="#cc0000"/>
51e536d
  <draw:color draw:name="Red Hat 2" draw:color="#0093d9"/>
51e536d
  <draw:color draw:name="Red Hat 3" draw:color="#ff8d00"/>
51e536d
  <draw:color draw:name="Red Hat 4" draw:color="#abb400"/>
51e536d
  <draw:color draw:name="Red Hat 5" draw:color="#4e376b"/>' && \
8076325
 tail -n 1 extras/source/palettes/standard.soc) > redhat.soc
8076325
mv -f redhat.soc extras/source/palettes/standard.soc
a85919d
git commit -q -a -m 'add Red Hat colors to palette'
a85919d
a85919d
# apply patches
a85919d
git am %{patches}
5198193
634b2cb
sed -i -e /CppunitTest_sw_ooxmlexport7/d sw/Module_sw.mk # i686
3821c37
sed -i -e /CppunitTest_sc_array_functions_test/d sc/Module_sc.mk # ppc64le
3821c37
sed -i -e /CppunitTest_sw_ww8export/d sw/Module_sw.mk
3821c37
sed -i -e /CppunitTest_sc_addin_functions_test/d sc/Module_sc.mk # aarch64/ppc64*/s390x
3821c37
sed -i -e /CppunitTest_sc_financial_functions_test/d sc/Module_sc.mk # ppc64*
3821c37
sed -i -e /CppunitTest_sc_statistical_functions_test/d sc/Module_sc.mk # aarch64/ppc64*
e735858
sed -i -e /CppunitTest_dbaccess_hsqldb_test/d dbaccess/Module_dbaccess.mk # i686
9badafa
sed -i -e s/CppunitTest_dbaccess_RowSetClones// dbaccess/Module_dbaccess.mk # i686
a559a32
sed -i -e /CppunitTest_services/d postprocess/Module_postprocess.mk # i686
f24ee66
sed -i -e /CppunitTest_sd_export_ooxml2/d sd/Module_sd.mk # i686
4d87307
sed -i -e /CppunitTest_sw_ooxmlexport4/d sw/Module_sw.mk
fdf15fe
sed -i -e /CppunitTest_xmlsecurity_signing/d xmlsecurity/Module_xmlsecurity.mk
52da513
sed -i -e /CppunitTest_xmlsecurity_signing/d xmlsecurity/Module_xmlsecurity.mk
bb8afec
%if 0%{?rhel}
bb8afec
sed -i -e /CppunitTest_desktop_lib/d desktop/Module_desktop.mk
c9ab6ba
sed -i -e s/CppunitTest_editeng_core// editeng/Module_editeng.mk
bb8afec
sed -i -e /CppunitTest_writerperfect_draw/d writerperfect/Module_writerperfect.mk
c9ab6ba
sed -i -e /CppunitTest_sw_ooxmlimport/d sw/Module_sw.mk
c9ab6ba
sed -i -e /CppunitTest_sw_ooxmlexport10/d sw/Module_sw.mk
9203506
sed -i -e /CppunitTest_sw_uiwriter/d sw/Module_sw.mk
9203506
sed -i -e /CppunitTest_sc_subsequent_filters_test/d sc/Module_sc.mk
bb8afec
%endif
a9045d2
git commit -q -a -m 'temporarily disable failing tests'
3d62ed1
a048020
# Seeing .git dir makes some of the build tools change their behavior.
a048020
# We do not want that. Note: it is still possible to use
a048020
# git --git-dir=.git-rpm
a048020
mv .git .git-rpm
a048020
8076325
%build
21c8368
# path to external tarballs
21c8368
EXTSRCDIR=`dirname %{SOURCE0}`
8076325
aab62f3
%if 0%{?fedora}
Lukas Tinkl c4870bd
# KDE bits
Lukas Tinkl c4870bd
export QT4DIR=%{_qt4_prefix}
Lukas Tinkl c4870bd
export KDE4DIR=%{_kde4_prefix}
Lukas Tinkl c4870bd
export PATH=$QT4DIR/bin:$PATH
82f2389
%endif
Lukas Tinkl c4870bd
263625b
#use the RPM_OPT_FLAGS but remove the OOo overridden ones
263625b
for i in $RPM_OPT_FLAGS; do
263625b
        case "$i" in
9c31acd
                -pipe|-Wall|-Werror*|-fexceptions) continue;;
263625b
        esac
263625b
        ARCH_FLAGS="$ARCH_FLAGS $i"
263625b
done
c3a23d6
%ifarch s390 aarch64
c3a23d6
# these builders typically do not have enough memory to link the big libs with -g2
3bfe04e
ARCH_FLAGS="$ARCH_FLAGS -g1"
3bfe04e
%endif
263625b
export ARCH_FLAGS
263625b
export CFLAGS=$ARCH_FLAGS
263625b
export CXXFLAGS=$ARCH_FLAGS
263625b
8484acf
%if 0%{?rhel}
c8036c6
%define distrooptions --disable-eot --disable-scripting-beanshell --disable-scripting-javascript
ecd3075
%else # fedora
09f22f6
%define distrooptions --enable-eot --enable-kde4 --enable-gtk3-kde5
82f2389
%endif
82f2389
357e8af
%if %{with langpacks}
357e8af
%define with_lang --with-lang='%{langpack_langs}'
357e8af
%endif
357e8af
8dd8adf
aclocal -I m4
8076325
autoconf
5630996
8bf116f
SMP_MFLAGS=%{?_smp_mflags}
8bf116f
SMP_MFLAGS=$[${SMP_MFLAGS/-j/}]
8bf116f
ca8f0c1
# TODO: enable coinmp?
8dd8adf
# avoid running autogen.sh on make
8dd8adf
touch autogen.lastrun
8076325
%configure \
c3610e9
 %vendoroption \
c3610e9
 %{?with_lang} \
8bf116f
 --with-parallelism=$SMP_MFLAGS \
ca8f0c1
 --disable-coinmp \
c3610e9
 --disable-fetch-external \
ee991b5
 --disable-openssl \
1f6713e
 --disable-pdfium \
ef72370
 --disable-systray \
d549520
 --disable-gtk \
aa370e7
 --enable-dconf \
c3610e9
 --enable-evolution2 \
c3610e9
 --enable-ext-nlpsolver \
f0238d1
 --enable-ext-wiki-publisher \
6741cf1
 --enable-gtk3 \
68a5d5a
 --enable-introspection \
c3610e9
 --enable-release-build \
c3610e9
 --enable-scripting-beanshell \
c3610e9
 --enable-scripting-javascript \
c3610e9
 --enable-symbols \
c3610e9
 --with-build-version="%{version}-%{release}" \
82f2389
 --with-external-dict-dir=/usr/share/myspell \
f0238d1
 --with-external-tar="$EXTSRCDIR" \
c3610e9
 --with-help \
c3610e9
 --with-system-dicts \
c3610e9
 --with-system-libs \
9a3ef12
 --without-export-validation \
c3610e9
 --without-fonts \
6487b13
 --without-lxml \
1f0bd94
 --with-gdrive-client-secret="GYWrDtzyZQZ0_g5YoBCC6F0I" \
1f0bd94
 --with-gdrive-client-id="457862564325.apps.googleusercontent.com" \
cc77199
 --enable-python=system \
cc77199
 --with-system-ucpp \
18fa752
 %{distrooptions} \
51f71dc
 %{?bundling_options} \
a0d2c2d
 %{?archoptions}
8076325
025d78e
ulimit -c unlimited || true
5f71d9e
f9fe071
make verbose=true build-nocheck
8076325
8076325
#generate the icons and mime type stuff
6222204
export DESTDIR=../output
8076325
export KDEMAINDIR=/usr
8076325
export GNOMEDIR=/usr
8076325
export GNOME_MIME_THEME=hicolor
42d103d
export PREFIXDIR=/usr
9158d60
# TODO use empty variables? Should make the renaming hacks in %%install
9158d60
# unnecessary.
8c4977e
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR PKG_CONFIG INSTDIR
f8574d3
pushd $WORKDIR/CustomTarget/sysui/share/libreoffice
8076325
./create_tree.sh
f8574d3
popd
f8574d3
mkdir $WORKDIR/os-integration
f8574d3
cp -pr $WORKDIR/CustomTarget/sysui/share/output/usr/share/* $WORKDIR/os-integration
fe1850c
cp -pr $WORKDIR/CustomTarget/sysui/share/output/girepository-1.0/LOKDocView-%{girapiversion}.* $WORKDIR/os-integration
f8574d3
f8574d3
%if %{with smallbuild}
f8574d3
# remove the biggest offenders
f8574d3
# NOTE: not removing complete LinkTarget, as some libs are needed for smoketest
f8574d3
rm -rf $WORKDIR/CxxObject $WORKDIR/GenCxxObject $WORKDIR/HelpTarget $WORKDIR/LinkTarget/CppunitTest
f8574d3
%endif
8076325
72d0bbd
8076325
%install
64fe969
# TODO investigate use of make distro-pack-install
8076325
#figure out the icon version
6222204
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR
6222204
export PRODUCTVERSIONSHORT PRODUCTVERSION
6222204
6222204
# installation
6222204
f21e0d6
install -m 0755 -d %{buildroot}%{instdir}
f24ee66
if ! make instsetoo_native PKGFORMAT=installed DISABLE_STRIP=1 EPM=not-used-but-must-be-set; then
8076325
    echo - ---dump log start---
de9a357
    cat $WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log
8076325
    echo - ---dump log end---
6222204
    echo - ---dump log start -- SDK---
de9a357
    cat $WORKDIR/installation/LibreOffice_SDK/installed/logging/en-US/log_*_en-US.log
6222204
    echo - ---dump log end -- SDK---
6222204
    echo - ---dump log start -- languagepacks---
de9a357
    cat $WORKDIR/installation/LibreOffice_languagepack/installed/logging/en-US/log_*_en-US.log
6222204
    echo - ---dump log end -- languagepacks---
8076325
    exit 1
8076325
fi
f21e0d6
install -m 0755 -d %{buildroot}%{baseinstdir}
afd367d
mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}%{baseinstdir}
6222204
%if %{with langpacks}
6222204
for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do
6222204
  [ `basename $langpack` = log ] && continue
afd367d
  cp -rp $langpack/* %{buildroot}%{baseinstdir}
6222204
  rm -rf $langpack
6222204
done
6222204
%endif
afd367d
mv $WORKDIR/installation/LibreOffice_SDK/installed/install/en-US/sdk %{buildroot}%{sdkinstdir}
afd367d
chmod -R +w %{buildroot}%{baseinstdir}
6222204
6222204
# postprocessing and tweaks
6222204
423b003
# The installer currently sets UserInstallation to
423b003
# $ORIGIN/../libreoffice/4, which is of course total nonsense. Because I
423b003
# have no inclination to crawl through mountains of perl code to figure out
423b003
# where it comes from, I am just going to replace it by a sensible
423b003
# value here.
afd367d
sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG@' %{buildroot}%{baseinstdir}/program/bootstraprc
8076325
8076325
#configure sdk
afd367d
pushd %{buildroot}%{sdkinstdir}
6222204
    sed -e "s,@OO_SDK_NAME@,sdk," \
6222204
        -e "s,@OO_SDK_HOME@,%{sdkinstdir}," \
6222204
        -e "s,@OFFICE_HOME@,%{baseinstdir}," \
6222204
        -e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \
6222204
        -e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \
6222204
        -e "s,@OO_SDK_CPP_HOME@,/usr/bin," \
c3bcbf7
        -e "s,@OO_SDK_CAT_HOME@,/usr/bin," \
c3bcbf7
        -e "s,@OO_SDK_SED_HOME@,/usr/bin," \
6222204
        -e "s,@OO_SDK_CC_55_OR_HIGHER@,," \
6222204
        -e "s,@OO_SDK_JAVA_HOME@,$JAVA_HOME," \
6222204
        -e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \
6222204
        -e "s,@SDK_AUTO_DEPLOYMENT@,NO," \
6222204
        setsdkenv_unix.sh.in > setsdkenv_unix.sh
5d27d5d
    # ensure no unexpanded vars sneaked in
5d27d5d
    grep '@[A_Z0-9_]\+@' setsdkenv_unix.sh && exit 1
6222204
    chmod 755 setsdkenv_unix.sh
6222204
    # we don't want to install the input file
6222204
    rm -f setsdkenv_unix.sh.in
6222204
# TODO: is this still necessary?
8076325
#fix permissions
8076325
    find examples -type f -exec chmod -x {} \;
8076325
popd
8076325
e39cb48
#ensure a template dir for each lang
afd367d
pushd %{buildroot}%{baseinstdir}/share/template
8076325
for I in %{langpack_langs}; do
4dd8a72
    mkdir -p $I
8076325
done
8076325
popd
8076325
8076325
#Set some aliases to canonical autocorrect language files for locales with matching languages
afd367d
pushd %{buildroot}%{baseinstdir}/share/autocorr
8076325
9df525f
%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
9df525f
%make_autocorr_aliases -l en-US en-PH
e39cb48
#en-ZA exists and has a good autocorrect file with two or three extras that make sense for 
e39cb48
#neighbouring english speaking territories
9df525f
%make_autocorr_aliases -l en-ZA en-NA en-ZW
8c1a0f3
%if %{with langpacks}
9df525f
%make_autocorr_aliases -l af-ZA af-NA
9df525f
%make_autocorr_aliases -l nl-NL nl-AW
9df525f
%make_autocorr_aliases -l sv-SE sv-FI
8076325
%else
Thierry Vignaud 51567a4
rm -f acor_[a-df-z]*.dat acor_e[lsu]*.dat
8076325
%endif
8076325
popd
8076325
#rhbz#484055 make these shared across multiple applications
f21e0d6
install -m 0755 -d %{buildroot}%{_datadir}
afd367d
mv -f %{buildroot}%{baseinstdir}/share/autocorr %{buildroot}%{_datadir}/autocorr
afd367d
chmod 755 %{buildroot}%{_datadir}/autocorr
f2d50d4
ln -s %{_datadir}/autocorr %{buildroot}%{baseinstdir}/share/autocorr
8076325
8076325
#remove it in case we didn't build with gcj
afd367d
rm -f %{buildroot}%{baseinstdir}/program/classes/sandbox.jar
ad255e6
# we don't need this in the install
ad255e6
rm -f %{buildroot}%{baseinstdir}/program/classes/smoketest.jar
8076325
8076325
#remove dummy .dat files
afd367d
rm -f %{buildroot}%{baseinstdir}/program/root?.dat
8076325
8076325
#set standard permissions for rpmlint
afd367d
find %{buildroot}%{baseinstdir} -exec chmod +w {} \;
afd367d
find %{buildroot}%{baseinstdir} -type d -exec chmod 0755 {} \;
8076325
8076325
# move python bits into site-packages
f21e0d6
install -m 0755 -d %{buildroot}%{libo_python_sitearch}
afd367d
pushd %{buildroot}%{libo_python_sitearch}
8076325
echo "import sys, os" > uno.py
042e702
echo "sys.path.append('%{baseinstdir}/program')" >> uno.py
8076325
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py
afd367d
cat %{buildroot}%{baseinstdir}/program/uno.py >> uno.py
afd367d
rm -f %{buildroot}%{baseinstdir}/program/uno.py*
afd367d
mv -f %{buildroot}%{baseinstdir}/program/unohelper.py* .
14b15ff
mv -f %{buildroot}%{baseinstdir}/program/officehelper.py* .
8076325
popd
8076325
8076325
# rhbz#477435 package opensymbol separately
afd367d
pushd %{buildroot}%{baseinstdir}/share/fonts/truetype
8076325
install -d -m 0755 %{buildroot}%{_fontdir}
8076325
install -p -m 0644 *.ttf %{buildroot}%{_fontdir}
8076325
popd
d8bff6c
rm -rf %{buildroot}%{baseinstdir}/share/fonts/truetype/*.ttf
8076325
b804fb8
# move platform-independent data into shared dir
b804fb8
install -m 0755 -d %{buildroot}%{datadir}
b804fb8
rm -f %{buildroot}%{baseinstdir}/CREDITS.fodt %{buildroot}%{baseinstdir}/LICENSE* %{buildroot}%{baseinstdir}/NOTICE
0b50bde
# rhbz#1473749 ensure display of files in license/about dialogs works
c7abd61
ln -sr %{buildroot}%{lodatadocdir}/LICENSE.fodt %{buildroot}%{baseinstdir}/LICENSE.fodt
c7abd61
ln -sr %{buildroot}%{lodatadocdir}/CREDITS.fodt %{buildroot}%{baseinstdir}/CREDITS.fodt
b804fb8
8076325
#ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs 
8076325
#have snuck through
8076325
pic=0
8076325
executable=0
afd367d
for foo in `find %{buildroot}%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do
8076325
    chmod +wx $foo
8076325
    ls -asl $foo
8076325
    result=`readelf -d $foo | grep TEXTREL` || true
8076325
    if [ "$result" != "" ]; then
8076325
        echo "TEXTREL Warning: $foo is b0rked (-fpic missing)"
8076325
        pic=1
8076325
    fi
8076325
    result=`readelf -l $foo | grep GNU_STACK | grep RWE` || true
8076325
    if [ "$result" != "" ]; then
8076325
        echo "GNU_STACK Warning: $foo is b0rked (-noexecstack missing)"
8076325
        executable=1
8076325
    fi
8076325
done
8076325
if [ $pic == 1 ]; then false; fi
8076325
if [ $executable == 1 ]; then false; fi
8076325
8076325
#make up some /usr/bin scripts
f21e0d6
install -m 0755 -d %{buildroot}%{_bindir}
8076325
5ebfd5a
pushd %{buildroot}%{_bindir}
5ebfd5a
echo \#\!/bin/sh > ooffice
5ebfd5a
echo exec libreoffice \"\$@\" >> ooffice
5ebfd5a
chmod a+x ooffice
8076325
5ebfd5a
echo \#\!/bin/sh > ooviewdoc
5ebfd5a
echo exec libreoffice --view \"\$@\" >> ooviewdoc
5ebfd5a
chmod a+x ooviewdoc
8076325
a324ab4
for app in base calc draw impress math writer; do
5ebfd5a
    echo \#\!/bin/sh > oo$app
5ebfd5a
    echo exec libreoffice --$app \"\$@\" >> oo$app
5ebfd5a
    chmod a+x oo$app
a324ab4
done
8076325
Thierry Vignaud 9a35121
sed -e s/LAUNCHER/unopkg/g -e s/BRAND/libreoffice/g %{SOURCE8} > unopkg
5ebfd5a
chmod a+x unopkg
8076325
Thierry Vignaud 9a35121
sed -e s/LAUNCHER/soffice/g -e s/BRAND/libreoffice/g %{SOURCE8} > libreoffice
5ebfd5a
chmod a+x libreoffice
8076325
8076325
# rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel
8076325
ln -s %{baseinstdir}/program/soffice soffice
8076325
# rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat
b0d8eda
ln -s libreoffice openoffice.org
8076325
popd
8076325
afd367d
pushd %{buildroot}%{baseinstdir}/share/xdg/
8076325
chmod u+w *.desktop
fd64338
ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'`
8076325
for file in *.desktop; do
8076325
    # rhbz#156677 remove the version from Name=
8076325
    # rhbz#156067 don't version the icons
cf86fd0
    sed -i -e "s/ *$PRODUCTVERSION//g" \
fd64338
        -e "s/$ICONVERSION//g" \
fd64338
        -e "s/$PRODUCTVERSIONSHORT//g" \
fd64338
        $file
8076325
done
3818cfc
# rhbz#156677 / rhbz#186515 do not show math and startcenter
3818cfc
sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop
8076325
# relocate the .desktop and icon files
f21e0d6
install -m 0755 -d %{buildroot}%{_datadir}/applications
6222204
for app in base calc draw impress math startcenter writer xsltfilter; do
a0d2c2d
    sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop
89e597a
    desktop-file-validate $app.desktop
f21e0d6
    install -m 0644 -p $app.desktop %{buildroot}%{_datadir}/applications/libreoffice-$app.desktop
8076325
done
8076325
popd
8076325
f8574d3
pushd $WORKDIR/os-integration
8076325
#get rid of the gnome icons and other unneeded files
8076325
rm -rf icons/gnome applications application-registry
8076325
8076325
#relocate the rest of them
9472e15
# rhbz#901346 512x512 icons are not used by anything
9472e15
for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do
f21e0d6
    install -m 0755 -d %{buildroot}%{_datadir}/`dirname $icon`
f21e0d6
    install -m 0644 -p $icon %{buildroot}%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@`
57c9d18
done
f21e0d6
install -m 0755 -d %{buildroot}%{_datadir}/mime-info
f21e0d6
install -m 0644 -p mime-info/libreoffice$PRODUCTVERSION.keys %{buildroot}%{_datadir}/mime-info/libreoffice.keys
f21e0d6
install -m 0644 -p mime-info/libreoffice$PRODUCTVERSION.mime %{buildroot}%{_datadir}/mime-info/libreoffice.mime
8076325
#add our mime-types, e.g. for .oxt extensions
f21e0d6
install -m 0755 -d %{buildroot}%{_datadir}/mime/packages
f21e0d6
install -m 0644 -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}%{_datadir}/mime/packages/libreoffice.xml
ab3939b
9dd42ce
%if 0%{?fedora}
3f651ad
# restrict abipkgdiff to shared objects that actually have a stable ABI
d549520
for pkg in core base officebean ogltrans pdfimport calc writer impress math graphicfilter postgresql ure pyuno x11 gtk3 kde4 libreofficekit; do
3f651ad
    cat > %{buildroot}%{baseinstdir}/program/${pkg}.abignore << _EOF
3f651ad
[suppress_file]
3f651ad
file_name_not_regexp=.*\.so\.[0-9]+
3f651ad
_EOF
3f651ad
done
9dd42ce
%endif
3f651ad
ab3939b
# install LibreOfficeKit
26f8b37
install -m 0755 -d %{buildroot}%{_libdir}/girepository-1.0
26f8b37
install -m 0644 -p LOKDocView-%{girapiversion}.typelib %{buildroot}%{_libdir}/girepository-1.0/LOKDocView-%{girapiversion}.typelib
26f8b37
install -m 0755 -d %{buildroot}%{_libdir}/gir-1.0
24ece08
install -m 0644 -p gir-1.0/LOKDocView-%{girapiversion}.gir %{buildroot}%{_libdir}/gir-1.0/LOKDocView-%{girapiversion}.gir
75b3640
mv %{buildroot}%{baseinstdir}/program/liblibreofficekitgtk.so %{buildroot}%{_libdir}
8076325
popd
8076325
ab3939b
# install LibreOfficeKit headers
ab3939b
install -m 0755 -d %{buildroot}%{_includedir}/LibreOfficeKit
ab3939b
install -m 0644 -p include/LibreOfficeKit/* %{buildroot}%{_includedir}/LibreOfficeKit
ab3939b
afd367d
rm -rf %{buildroot}%{baseinstdir}/readmes
afd367d
rm -rf %{buildroot}%{baseinstdir}/licenses
8076325
7d07cf6
# to-do, remove this in libreoffice 4.4 when --without-ppds is gone, it'll do the right thing on its own then
f21e0d6
install -m 0755 -d %{buildroot}%{baseinstdir}/share/psprint/driver
f21e0d6
install -m 0644 -p vcl/unx/generic/printer/configuration/ppds/SGENPRT.PS %{buildroot}%{baseinstdir}/share/psprint/driver/SGENPRT.PS
8076325
8076325
# rhbz#452385 to auto have postgres in classpath if subsequently installed
afd367d
sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}%{baseinstdir}/program/fundamentalrc
8076325
5ac635d
# move glade catalog to system glade dir
c2c27fc
install -m 0755 -d %{buildroot}%{_datadir}/glade/catalogs
c2c27fc
mv %{buildroot}%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade/catalogs
e3a1f36
install -m 0755 -d %{buildroot}%{_datadir}/glade3/catalogs
e3a1f36
ln -sr %{buildroot}%{_datadir}/glade/catalogs/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs
5ac635d
a8a7218
# rhbz#1049543 install appdata
68955fb
install -m 0755 -d %{buildroot}%{_datadir}/metainfo
68955fb
install -m 0644 -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/metainfo
a8a7218
e97054c
# rhbz#1215800 install symbolic icons
e97054c
install -m 0755 -d %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
e97054c
install -m 0644 -p %{SOURCE42} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
e97054c
install -m 0644 -p %{SOURCE43} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
e97054c
install -m 0644 -p %{SOURCE44} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
e97054c
install -m 0644 -p %{SOURCE45} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
e97054c
install -m 0644 -p %{SOURCE46} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
e97054c
install -m 0644 -p %{SOURCE47} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
e97054c
install -m 0644 -p %{SOURCE48} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
e97054c
596b501
# install man pages
afd367d
install -m 0755 -d %{buildroot}%{_mandir}/man1
afd367d
install -m 0644 -p sysui/desktop/man/*.1 %{buildroot}%{_mandir}/man1
596b501
for app in oobase oocalc oodraw ooffice ooimpress oomath ooviewdoc oowriter openoffice.org soffice; do
596b501
    echo '.so man1/libreoffice.1' > $app.1
afd367d
    install -m 0644 -p $app.1 %{buildroot}%{_mandir}/man1
596b501
done
596b501
afd367d
export DESTDIR=%{buildroot}
1db6f6a
./solenv/bin/install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb
14d4997
a5f2c4f
%if 0%{?fedora}
Richard Hughes f913611
# Update the screenshot shown in the software center
Richard Hughes f913611
#
Richard Hughes f913611
# NOTE: It would be *awesome* if this file was pushed upstream.
Richard Hughes f913611
#
Richard Hughes f913611
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
Richard Hughes f913611
#
68955fb
appstream-util replace-screenshots %{buildroot}%{_datadir}/metainfo/libreoffice-writer.appdata.xml \
Richard Hughes f913611
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-writer/a.png \
Richard Hughes f913611
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-writer/b.png 
68955fb
appstream-util replace-screenshots %{buildroot}%{_datadir}/metainfo/libreoffice-calc.appdata.xml \
Richard Hughes f913611
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-calc/a.png 
68955fb
appstream-util replace-screenshots %{buildroot}%{_datadir}/metainfo/libreoffice-draw.appdata.xml \
Richard Hughes f913611
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-draw/a.png 
68955fb
appstream-util replace-screenshots %{buildroot}%{_datadir}/metainfo/libreoffice-impress.appdata.xml \
Richard Hughes f913611
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-impress/a.png 
a5f2c4f
%endif
e400f26
96f3a4e
# rhbz#1247399 - move stable API jars to noarch java location
96f3a4e
install -m 0755 -d %{buildroot}%{_javadir}/%{name}
96f3a4e
for jar in %{buildroot}%{baseinstdir}/program/classes/*.jar; do
96f3a4e
    j=`basename $jar`
96f3a4e
    case ${j%.jar} in
96f3a4e
        juh|jurt|ridl|unoloader|unoil|officebean)
96f3a4e
            mv $jar %{buildroot}%{_javadir}/%{name}
96f3a4e
            ln -sr %{buildroot}%{_javadir}/%{name}/$j $jar
96f3a4e
            ;;
96f3a4e
    esac
96f3a4e
done
96f3a4e
9269ab6
%check
3736782
%ifnarch ppc64 s390x aarch64
50060a9
# make
9269ab6
# we don't need this anymore
afd367d
rm -f %{buildroot}%{baseinstdir}/program/classes/smoketest.jar
ad255e6
%endif
8076325
cf7004f
%files
cf7004f
c912544
%files filters
c912544
8076325
%files core
042e702
%dir %{baseinstdir}
0b50bde
%{baseinstdir}/CREDITS.fodt
0b50bde
%{baseinstdir}/LICENSE.fodt
042e702
%dir %{baseinstdir}/help
042e702
%{baseinstdir}/help/idxcaption.xsl
042e702
%{baseinstdir}/help/idxcontent.xsl
042e702
%{baseinstdir}/help/main_transform.xsl
042e702
%{baseinstdir}/presets
042e702
%dir %{baseinstdir}/program
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/core.abignore
9dd42ce
%endif
6222204
%{baseinstdir}/program/libbasprovlo.so
6222204
%{baseinstdir}/program/libcairocanvaslo.so
6222204
%{baseinstdir}/program/libcanvasfactorylo.so
042e702
%dir %{baseinstdir}/program/classes
042e702
%{baseinstdir}/program/classes/commonwizards.jar
042e702
%{baseinstdir}/program/classes/form.jar
042e702
%{baseinstdir}/program/classes/query.jar
042e702
%{baseinstdir}/program/classes/report.jar
042e702
%{baseinstdir}/program/classes/ScriptFramework.jar
042e702
%{baseinstdir}/program/classes/ScriptProviderForJava.jar
042e702
%{baseinstdir}/program/classes/table.jar
042e702
%{baseinstdir}/program/classes/unoil.jar
042e702
%{baseinstdir}/program/classes/XMergeBridge.jar
042e702
%{baseinstdir}/program/classes/xmerge.jar
6222204
%{baseinstdir}/program/libcmdmaillo.so
042e702
%{baseinstdir}/program/libdeployment.so
042e702
%{baseinstdir}/program/libdeploymentgui.so
6222204
%{baseinstdir}/program/libdlgprovlo.so
6222204
%{baseinstdir}/program/libexpwraplo.so
8dd8adf
%{baseinstdir}/program/flat_logo.svg
6222204
%{baseinstdir}/program/libfps_officelo.so
57327c2
%{baseinstdir}/program/gdbtrace
36aefe0
%{baseinstdir}/program/gengal
36aefe0
%{baseinstdir}/program/gengal.bin
6222204
%{baseinstdir}/program/libi18nsearchlo.so
6222204
%{baseinstdir}/program/libldapbe2lo.so
283df42
%{baseinstdir}/program/libacclo.so
a1b7f1e
%{baseinstdir}/program/libanimcorelo.so
042e702
%{baseinstdir}/program/libavmedia*.so
283df42
%{baseinstdir}/program/libbasctllo.so
283df42
%{baseinstdir}/program/libbiblo.so
042e702
%{baseinstdir}/program/libcached1.so
283df42
%{baseinstdir}/program/libcanvastoolslo.so
283df42
%{baseinstdir}/program/libchart*lo.so
266cb4a
%{baseinstdir}/program/libclewlo.so
042e702
%{baseinstdir}/program/libcollator_data.so
283df42
%{baseinstdir}/program/libcppcanvaslo.so
283df42
%{baseinstdir}/program/libctllo.so
283df42
%{baseinstdir}/program/libcuilo.so
283df42
%{baseinstdir}/program/libdbalo.so
22d8cb3
%{baseinstdir}/program/libdbahsqllo.so
283df42
%{baseinstdir}/program/libdbaselo.so
283df42
%{baseinstdir}/program/libdbaxmllo.so
283df42
%{baseinstdir}/program/libdbmmlo.so
042e702
%{baseinstdir}/program/libdbpool2.so
283df42
%{baseinstdir}/program/libdbtoolslo.so
283df42
%{baseinstdir}/program/libdbulo.so
283df42
%{baseinstdir}/program/libdeploymentmisclo.so
283df42
%{baseinstdir}/program/libdesktop_detectorlo.so
042e702
%{baseinstdir}/program/libdict_ja.so
042e702
%{baseinstdir}/program/libdict_zh.so
283df42
%{baseinstdir}/program/libdrawinglayerlo.so
283df42
%{baseinstdir}/program/libeditenglo.so
042e702
%{baseinstdir}/program/libembobj.so
23c1c9f
%{baseinstdir}/program/libemboleobj.so
f24ee66
%{baseinstdir}/program/libemfiolo.so
042e702
%{baseinstdir}/program/libevoab*.so
283df42
%{baseinstdir}/program/libevtattlo.so
3b2ad87
%{baseinstdir}/program/libfirebird_sdbclo.so
65e459e
%{baseinstdir}/program/libgielo.so
283df42
%{baseinstdir}/program/libicglo.so
042e702
%{baseinstdir}/program/libindex_data.so
283df42
%{baseinstdir}/program/libfilelo.so
283df42
%{baseinstdir}/program/libfilterconfiglo.so
283df42
%{baseinstdir}/program/libflatlo.so
283df42
%{baseinstdir}/program/libfrmlo.so
283df42
%{baseinstdir}/program/libguesslanglo.so
283df42
%{baseinstdir}/program/libhelplinkerlo.so
283df42
%{baseinstdir}/program/libhyphenlo.so
283df42
%{baseinstdir}/program/libjdbclo.so
283df42
%{baseinstdir}/program/liblnglo.so
283df42
%{baseinstdir}/program/libloglo.so
042e702
%{baseinstdir}/program/liblocaledata_en.so
042e702
%{baseinstdir}/program/liblocaledata_es.so
042e702
%{baseinstdir}/program/liblocaledata_euro.so
042e702
%{baseinstdir}/program/liblocaledata_others.so
042e702
%{baseinstdir}/program/libmcnttype.so
0053515
%{baseinstdir}/program/libmorklo.so
a0d2c2d
%{baseinstdir}/program/libmozbootstraplo.so
283df42
%{baseinstdir}/program/libmsfilterlo.so
6222204
%{baseinstdir}/program/libmtfrendererlo.so
46447e0
%{baseinstdir}/program/libmysql_jdbclo.so
46447e0
%{baseinstdir}/program/libmysqlclo.so
283df42
%{baseinstdir}/program/libodbclo.so
a0d2c2d
%{baseinstdir}/program/liboglcanvaslo.so
283df42
%{baseinstdir}/program/liboffacclo.so
283df42
%{baseinstdir}/program/libooxlo.so
266cb4a
%{baseinstdir}/program/libopencllo.so
283df42
%{baseinstdir}/program/libpcrlo.so
283df42
%{baseinstdir}/program/libpdffilterlo.so
283df42
%{baseinstdir}/program/libprotocolhandlerlo.so
042e702
%{baseinstdir}/program/librecentfile.so
283df42
%{baseinstdir}/program/libsaxlo.so
283df42
%{baseinstdir}/program/libscnlo.so
042e702
%{baseinstdir}/program/libscriptframe.so
283df42
%{baseinstdir}/program/libsdlo.so
283df42
%{baseinstdir}/program/libsdfiltlo.so
042e702
%{baseinstdir}/program/libsdbc2.so
79bf9ca
%{baseinstdir}/program/libsdbtlo.so
283df42
%{baseinstdir}/program/libsddlo.so
283df42
%{baseinstdir}/program/libsduilo.so
283df42
%{baseinstdir}/program/libspelllo.so
042e702
%{baseinstdir}/program/libsrtrs1.so
ca8f0c1
%{baseinstdir}/program/libstoragefdlo.so
402ae8c
%{baseinstdir}/program/libsvgiolo.so
283df42
%{baseinstdir}/program/libsvxlo.so
283df42
%{baseinstdir}/program/libsvxcorelo.so
80b9700
%{baseinstdir}/program/libswdlo.so
283df42
%{baseinstdir}/program/libswlo.so
042e702
%{baseinstdir}/program/libtextconv_dict.so
283df42
%{baseinstdir}/program/libtextconversiondlgslo.so
8dd8adf
%{baseinstdir}/program/libtextfdlo.so
283df42
%{baseinstdir}/program/libodfflatxmllo.so
6222204
# TODO: shouldn't it have lo suffix?
6222204
%{baseinstdir}/program/libucbhelper.so
042e702
%{baseinstdir}/program/libucpchelp1.so
042e702
%{baseinstdir}/program/libucpdav1.so
042e702
%{baseinstdir}/program/libucpftp1.so
042e702
%{baseinstdir}/program/libucphier1.so
042e702
%{baseinstdir}/program/libucppkg1.so
283df42
%{baseinstdir}/program/libunordflo.so
042e702
%{baseinstdir}/program/libunopkgapp.so
283df42
%{baseinstdir}/program/libunoxmllo.so
283df42
%{baseinstdir}/program/libuuilo.so
283df42
%{baseinstdir}/program/libvbahelperlo.so
283df42
%{baseinstdir}/program/libxmlfalo.so
283df42
%{baseinstdir}/program/libxmlfdlo.so
283df42
%{baseinstdir}/program/libxoflo.so
042e702
%{baseinstdir}/program/libxsec_xmlsec.so
283df42
%{baseinstdir}/program/libxsltdlglo.so
283df42
%{baseinstdir}/program/libxsltfilterlo.so
042e702
%{baseinstdir}/program/libxstor.so
0053515
# TODO how useful this is in Fedora?
6222204
%{baseinstdir}/program/liblosessioninstalllo.so
6222204
%{baseinstdir}/program/libmigrationoo2lo.so
6222204
%{baseinstdir}/program/libmigrationoo3lo.so
6222204
%{baseinstdir}/program/libmsformslo.so
a0e75be
%{baseinstdir}/program/opencl
6d4b076
%dir %{baseinstdir}/program/opengl
faa2858
%{baseinstdir}/program/opengl/*.glsl
ca2b956
%{baseinstdir}/program/types/offapi.rdb
6222204
%{baseinstdir}/program/libpasswordcontainerlo.so
042e702
%{baseinstdir}/program/pagein-common
f24ee66
%if %{with langpacks}
042e702
%dir %{baseinstdir}/program/resource
f24ee66
%endif
042e702
%{baseinstdir}/program/senddoc
402ae8c
%dir %{baseinstdir}/program/services
ca2b956
%{baseinstdir}/program/services/services.rdb
6222204
%{baseinstdir}/program/libsimplecanvaslo.so
6222204
%{baseinstdir}/program/libslideshowlo.so
042e702
%{baseinstdir}/program/libsofficeapp.so
6222204
%{baseinstdir}/program/libstringresourcelo.so
6222204
%{baseinstdir}/program/libsysshlo.so
6222204
%{baseinstdir}/program/libucpcmis1lo.so
6222204
%{baseinstdir}/program/libucpexpand1lo.so
6222204
%{baseinstdir}/program/libucpextlo.so
5e3fd3b
%{baseinstdir}/program/libucpimagelo.so
6222204
%{baseinstdir}/program/libucptdoc1lo.so
42d103d
%{baseinstdir}/program/lounorc
6222204
%{baseinstdir}/program/libupdatefeedlo.so
042e702
%{baseinstdir}/program/uri-encode
6222204
%{baseinstdir}/program/libvbaeventslo.so
6222204
%{baseinstdir}/program/libvclcanvaslo.so
042e702
%{baseinstdir}/program/versionrc
042e702
%dir %{baseinstdir}/share
f1949d5
%dir %{baseinstdir}/share/classification
f1949d5
%{baseinstdir}/share/classification/example*.xml
d8bff6c
%dir %{baseinstdir}/share/fonts
d8bff6c
%dir %{baseinstdir}/share/fonts/truetype
d8bff6c
%{baseinstdir}/share/fonts/truetype/fc_local.conf
042e702
%dir %{baseinstdir}/share/Scripts
042e702
%{baseinstdir}/share/Scripts/java
58ec5ff
%dir %{baseinstdir}/share/autotext
dbe428a
%dir %{_datadir}/autocorr
5545ffd
%{baseinstdir}/share/autocorr
042e702
%{baseinstdir}/share/basic
042e702
%dir %{baseinstdir}/share/config
1db6f6a
%{baseinstdir}/share/config/images_breeze.zip
84d23d6
%{baseinstdir}/share/config/images_breeze_dark.zip
135ee43
%{baseinstdir}/share/config/images_colibre.zip
4d87307
%{baseinstdir}/share/config/images_elementary.zip
3821c37
%{baseinstdir}/share/config/images_helpimg.zip
135ee43
%{baseinstdir}/share/config/images_karasa_jaga.zip
a0d2c2d
%{baseinstdir}/share/config/images_sifr.zip
d0e0ded
%{baseinstdir}/share/config/images_sifr_dark.zip
042e702
%{baseinstdir}/share/config/images_tango.zip
46447e0
%{baseinstdir}/share/config/images_breeze_svg.zip
46447e0
%{baseinstdir}/share/config/images_colibre_svg.zip
46447e0
%{baseinstdir}/share/config/images_elementary_svg.zip
042e702
%dir %{baseinstdir}/share/config/soffice.cfg
042e702
%{baseinstdir}/share/config/soffice.cfg/modules
0053515
%{baseinstdir}/share/config/soffice.cfg/*/ui
84d23d6
%dir %{baseinstdir}/share/emojiconfig
84d23d6
%{baseinstdir}/share/emojiconfig/emoji.json
8254450
%{baseinstdir}/share/palette
042e702
%{baseinstdir}/share/config/webcast
042e702
%{baseinstdir}/share/config/wizard
042e702
%dir %{baseinstdir}/share/dtd
042e702
%{baseinstdir}/share/dtd/officedocument
042e702
%{baseinstdir}/share/gallery
6222204
%dir %{baseinstdir}/share/labels
6222204
%{baseinstdir}/share/labels/labels.xml
042e702
%dir %{baseinstdir}/share/psprint
042e702
%config %{baseinstdir}/share/psprint/psprint.conf
042e702
%{baseinstdir}/share/psprint/driver
042e702
%dir %{baseinstdir}/share/registry
042e702
%{baseinstdir}/share/registry/gnome.xcd
042e702
%{baseinstdir}/share/registry/lingucomponent.xcd
042e702
%{baseinstdir}/share/registry/main.xcd
042e702
%{baseinstdir}/share/registry/oo-ad-ldap.xcd.sample
042e702
%{baseinstdir}/share/registry/oo-ldap.xcd.sample
042e702
%dir %{baseinstdir}/share/registry/res
042e702
%dir %{baseinstdir}/share/template
042e702
%dir %{baseinstdir}/share/template/common
0053515
%{baseinstdir}/share/template/common/internal
ad9fe53
%{baseinstdir}/share/template/common/officorr
ad9fe53
%{baseinstdir}/share/template/common/offimisc
ad9fe53
%{baseinstdir}/share/template/common/personal
ad9fe53
%{baseinstdir}/share/template/common/presnt
6b9c194
%{baseinstdir}/share/template/common/styles
0053515
%{baseinstdir}/share/template/common/wizard
042e702
%{baseinstdir}/share/template/wizard
042e702
%dir %{baseinstdir}/share/wordbook
042e702
%{baseinstdir}/share/wordbook/en-GB.dic
042e702
%{baseinstdir}/share/wordbook/en-US.dic
042e702
%{baseinstdir}/share/wordbook/technical.dic
283df42
%{baseinstdir}/program/liblnthlo.so
8076325
%{_bindir}/unopkg
596b501
%{_mandir}/man1/unopkg.1*
042e702
%{baseinstdir}/program/libxmlsecurity.so
6222204
%{baseinstdir}/program/libconfigmgrlo.so
6222204
%{baseinstdir}/program/libdesktopbe1lo.so
6222204
%{baseinstdir}/program/libfsstoragelo.so
6222204
%{baseinstdir}/program/libi18npoollo.so
283df42
%{baseinstdir}/program/libbasegfxlo.so
6222204
# TODO: shouldn't it have lo suffix?
6222204
%{baseinstdir}/program/libcomphelper.so
283df42
%{baseinstdir}/program/libfwelo.so
283df42
%{baseinstdir}/program/libfwilo.so
283df42
%{baseinstdir}/program/libfwklo.so
283df42
%{baseinstdir}/program/libfwllo.so
283df42
%{baseinstdir}/program/libfwmlo.so
6222204
# TODO: shouldn't it have lo suffix?
6222204
%{baseinstdir}/program/libi18nutil.so
042e702
%{baseinstdir}/program/libpackage2.so
283df42
%{baseinstdir}/program/libsblo.so
283df42
%{baseinstdir}/program/libsfxlo.so
283df42
%{baseinstdir}/program/libsotlo.so
283df42
%{baseinstdir}/program/libspllo.so
283df42
%{baseinstdir}/program/libsvllo.so
283df42
%{baseinstdir}/program/libsvtlo.so
283df42
%{baseinstdir}/program/libtklo.so
283df42
%{baseinstdir}/program/libtllo.so
042e702
%{baseinstdir}/program/libucb1.so
042e702
%{baseinstdir}/program/libucpfile1.so
283df42
%{baseinstdir}/program/libutllo.so
283df42
%{baseinstdir}/program/libvcllo.so
ca8f0c1
%{baseinstdir}/program/libwriterperfectlo.so
0053515
%{baseinstdir}/program/libxmlscriptlo.so
283df42
%{baseinstdir}/program/libxolo.so
6222204
%{baseinstdir}/program/liblocalebe1lo.so
6222204
%{baseinstdir}/program/libucpgio1lo.so
ca2b956
%{baseinstdir}/program/types/oovbaapi.rdb
8076325
#share unopkg
8076325
%dir %{baseinstdir}/share/extensions
8076325
%{baseinstdir}/share/extensions/package.txt
8076325
%{baseinstdir}/program/unopkg
8076325
%{baseinstdir}/program/unopkg.bin
8076325
%{baseinstdir}/program/bootstraprc
8076325
%{baseinstdir}/program/fundamentalrc
8076325
%{baseinstdir}/program/setuprc
4d87307
%{baseinstdir}/program/intro.png
4d87307
%{baseinstdir}/program/intro-highres.png
8076325
%{baseinstdir}/program/soffice
8076325
%{baseinstdir}/program/soffice.bin
8076325
%{baseinstdir}/program/sofficerc
8076325
%{baseinstdir}/program/unoinfo
042e702
%{baseinstdir}/program/oosplash
457672e
%{baseinstdir}/program/shell/
ca8f0c1
%dir %{baseinstdir}/share/filter
ca8f0c1
%{baseinstdir}/share/filter/oox-drawingml-adj-names
ca8f0c1
%{baseinstdir}/share/filter/oox-drawingml-cs-presets
ca8f0c1
%{baseinstdir}/share/filter/vml-shape-types
8076325
%{baseinstdir}/share/xdg/
8076325
%{baseinstdir}/program/redirectrc
8076325
%{_datadir}/applications/libreoffice-startcenter.desktop
8076325
#launchers
8076325
%{_bindir}/libreoffice
8076325
%{_bindir}/openoffice.org
8076325
%{_bindir}/soffice
8076325
%{_bindir}/ooffice
8076325
%{_bindir}/ooviewdoc
596b501
%{_mandir}/man1/libreoffice.1*
596b501
%{_mandir}/man1/openoffice.org.1*
596b501
%{_mandir}/man1/soffice.1*
596b501
%{_mandir}/man1/ooffice.1*
596b501
%{_mandir}/man1/ooviewdoc.1*
8076325
8076325
%files base
042e702
%{baseinstdir}/program/classes/hsqldb.jar
6222204
%{baseinstdir}/program/classes/reportbuilder.jar
07665a6
%{baseinstdir}/program/classes/reportbuilderwizard.jar
042e702
%{baseinstdir}/program/classes/sdbc_hsqldb.jar
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/base.abignore
9dd42ce
%endif
283df42
%{baseinstdir}/program/libabplo.so
283df42
%{baseinstdir}/program/libdbplo.so
042e702
%{baseinstdir}/program/libhsqldb.so
8dd8adf
%{baseinstdir}/program/librptlo.so
8dd8adf
%{baseinstdir}/program/librptuilo.so
8dd8adf
%{baseinstdir}/program/librptxmllo.so
042e702
%{baseinstdir}/share/registry/base.xcd
6222204
%{baseinstdir}/share/registry/reportbuilder.xcd
8076325
%{baseinstdir}/program/sbase
68955fb
%{_datadir}/metainfo/libreoffice-base.appdata.xml
8076325
%{_datadir}/applications/libreoffice-base.desktop
8076325
%{_bindir}/oobase
596b501
%{_mandir}/man1/oobase.1*
8076325
c8036c6
%if 0%{?fedora}
8076325
%files bsh
40ef2af
%{baseinstdir}/program/classes/ScriptProviderForBeanShell.jar
40ef2af
%{baseinstdir}/program/services/scriptproviderforbeanshell.rdb
042e702
%{baseinstdir}/share/Scripts/beanshell
8076325
8076325
%files rhino
40ef2af
%{baseinstdir}/program/classes/js.jar
40ef2af
%{baseinstdir}/program/classes/ScriptProviderForJavaScript.jar
40ef2af
%{baseinstdir}/program/services/scriptproviderforjavascript.rdb
042e702
%{baseinstdir}/share/Scripts/javascript
c8036c6
%endif
8076325
8076325
%files wiki-publisher
8076325
%docdir %{baseinstdir}/share/extensions/wiki-publisher/license
8076325
%{baseinstdir}/share/extensions/wiki-publisher
8076325
445e8d9
%files nlpsolver
445e8d9
%docdir %{baseinstdir}/share/extensions/nlpsolver/help
445e8d9
%{baseinstdir}/share/extensions/nlpsolver
445e8d9
5139033
%files officebean
5139033
%{baseinstdir}/program/classes/officebean.jar
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/officebean.abignore
9dd42ce
%endif
5139033
%{baseinstdir}/program/libofficebean.so
5139033
96f3a4e
%files officebean-common
96f3a4e
%{_javadir}/%{name}/officebean.jar
96f3a4e
8076325
%files ogltrans
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/ogltrans.abignore
9dd42ce
%endif
6222204
%{baseinstdir}/program/libOGLTranslo.so
5e3fd3b
%{baseinstdir}/program/opengl/basicFragmentShader.glsl
709c6aa
%{baseinstdir}/program/opengl/basicVertexShader.glsl
709c6aa
%{baseinstdir}/program/opengl/dissolveFragmentShader.glsl
5e3fd3b
%{baseinstdir}/program/opengl/fadeBlackFragmentShader.glsl
5e3fd3b
%{baseinstdir}/program/opengl/fadeFragmentShader.glsl
85ff9ac
%{baseinstdir}/program/opengl/glitterFragmentShader.glsl
85ff9ac
%{baseinstdir}/program/opengl/glitterVertexShader.glsl
85ff9ac
%{baseinstdir}/program/opengl/honeycombFragmentShader.glsl
85ff9ac
%{baseinstdir}/program/opengl/honeycombGeometryShader.glsl
85ff9ac
%{baseinstdir}/program/opengl/honeycombVertexShader.glsl
5e3fd3b
%{baseinstdir}/program/opengl/rippleFragmentShader.glsl
5e3fd3b
%{baseinstdir}/program/opengl/reflectionFragmentShader.glsl
5e3fd3b
%{baseinstdir}/program/opengl/reflectionVertexShader.glsl
709c6aa
%{baseinstdir}/program/opengl/staticFragmentShader.glsl
de71f14
%{baseinstdir}/program/opengl/vortexFragmentShader.glsl
de71f14
%{baseinstdir}/program/opengl/vortexGeometryShader.glsl
5e3fd3b
%{baseinstdir}/program/opengl/vortexVertexShader.glsl
042e702
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions-ogl.xml
042e702
%{baseinstdir}/share/registry/ogltrans.xcd
8076325
8076325
%files pdfimport
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/pdfimport.abignore
9dd42ce
%endif
6222204
%{baseinstdir}/program/libpdfimportlo.so
5f6a514
%{baseinstdir}/program/xpdfimport
5f6a514
%{baseinstdir}/share/registry/pdfimport.xcd
5f6a514
%dir %{baseinstdir}/share/xpdfimport
5f6a514
%{baseinstdir}/share/xpdfimport/xpdfimport_err.pdf
8076325
8076325
%_font_pkg -n %{fontname} opens___.ttf
78c68ee
%doc instdir/LICENSE
8076325
8076325
%files calc
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/calc.abignore
9dd42ce
%endif
283df42
%{baseinstdir}/program/libanalysislo.so
283df42
%{baseinstdir}/program/libcalclo.so
283df42
%{baseinstdir}/program/libdatelo.so
283df42
%{baseinstdir}/program/libforlo.so
283df42
%{baseinstdir}/program/libforuilo.so
135ee43
%{baseinstdir}/program/libnumbertextlo.so
402ae8c
%{baseinstdir}/program/libpricinglo.so
283df42
%{baseinstdir}/program/libsclo.so
283df42
%{baseinstdir}/program/libscdlo.so
283df42
%{baseinstdir}/program/libscfiltlo.so
283df42
%{baseinstdir}/program/libscuilo.so
283df42
%{baseinstdir}/program/libsolverlo.so
9bde8a9
%{baseinstdir}/program/libwpftcalclo.so
6222204
%{baseinstdir}/program/libvbaobjlo.so
f60e340
%{baseinstdir}/share/calc/styles.xml
042e702
%{baseinstdir}/share/registry/calc.xcd
042e702
%{baseinstdir}/program/pagein-calc
8076325
%{baseinstdir}/program/scalc
68955fb
%{_datadir}/metainfo/libreoffice-calc.appdata.xml
8076325
%{_datadir}/applications/libreoffice-calc.desktop
8076325
%{_bindir}/oocalc
596b501
%{_mandir}/man1/oocalc.1*
8076325
8076325
%files draw
042e702
%{baseinstdir}/share/registry/draw.xcd
042e702
%{baseinstdir}/program/pagein-draw
8076325
%{baseinstdir}/program/sdraw
68955fb
%{_datadir}/metainfo/libreoffice-draw.appdata.xml
8076325
%{_datadir}/applications/libreoffice-draw.desktop
8076325
%{_bindir}/oodraw
596b501
%{_mandir}/man1/oodraw.1*
8076325
8076325
%files emailmerge
042e702
%{baseinstdir}/program/mailmerge.py*
eb568c1
%{baseinstdir}/program/msgbox.py*
8076325
8076325
%files writer
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/writer.abignore
9dd42ce
%endif
283df42
%{baseinstdir}/program/libhwplo.so
283df42
%{baseinstdir}/program/liblwpftlo.so
283df42
%{baseinstdir}/program/libmswordlo.so
283df42
%{baseinstdir}/program/libswuilo.so
283df42
%{baseinstdir}/program/libt602filterlo.so
8dd8adf
%{baseinstdir}/program/libwpftwriterlo.so
283df42
%{baseinstdir}/program/libwriterfilterlo.so
f24ee66
%{baseinstdir}/program/libwriterlo.so
6222204
%{baseinstdir}/program/libvbaswobjlo.so
042e702
%{baseinstdir}/share/registry/writer.xcd
042e702
%{baseinstdir}/program/pagein-writer
8076325
%{baseinstdir}/program/swriter
68955fb
%{_datadir}/metainfo/libreoffice-writer.appdata.xml
8076325
%{_datadir}/applications/libreoffice-writer.desktop
8076325
%{_bindir}/oowriter
596b501
%{_mandir}/man1/oowriter.1*
8076325
8076325
%files impress
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/impress.abignore
9dd42ce
%endif
a0d2c2d
%{baseinstdir}/program/libPresentationMinimizerlo.so
6222204
%{baseinstdir}/program/libPresenterScreenlo.so
a0d2c2d
%{baseinstdir}/program/libwpftimpresslo.so
042e702
%dir %{baseinstdir}/share/config/soffice.cfg/simpress
042e702
%{baseinstdir}/share/config/soffice.cfg/simpress/effects.xml
a0d2c2d
%{baseinstdir}/share/config/soffice.cfg/simpress/layoutlist.xml
a0d2c2d
%{baseinstdir}/share/config/soffice.cfg/simpress/objectlist.xml
042e702
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions.xml
042e702
%{baseinstdir}/share/registry/impress.xcd
042e702
%{baseinstdir}/program/pagein-impress
8076325
%{baseinstdir}/program/simpress
68955fb
%{_datadir}/metainfo/libreoffice-impress.appdata.xml
8076325
%{_datadir}/applications/libreoffice-impress.desktop
8076325
%{_bindir}/ooimpress
596b501
%{_mandir}/man1/ooimpress.1*
8076325
8076325
%files math
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/math.abignore
9dd42ce
%endif
283df42
%{baseinstdir}/program/libsmlo.so
283df42
%{baseinstdir}/program/libsmdlo.so
042e702
%{baseinstdir}/share/registry/math.xcd
8076325
%{baseinstdir}/program/smath
8076325
%{_datadir}/applications/libreoffice-math.desktop
8076325
%{_bindir}/oomath
596b501
%{_mandir}/man1/oomath.1*
8076325
8076325
%files graphicfilter
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/graphicfilter.abignore
9dd42ce
%endif
283df42
%{baseinstdir}/program/libflashlo.so
6222204
%{baseinstdir}/program/libgraphicfilterlo.so
283df42
%{baseinstdir}/program/libsvgfilterlo.so
6222204
%{baseinstdir}/program/libwpftdrawlo.so
042e702
%{baseinstdir}/share/registry/graphicfilter.xcd
8076325
8076325
%files xsltfilter
6c9b42e
%{baseinstdir}/share/xslt
042e702
%{baseinstdir}/share/registry/xsltfilter.xcd
87c6375
%{_datadir}/applications/libreoffice-xsltfilter.desktop
8076325
518b615
%files postgresql
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/postgresql.abignore
9dd42ce
%endif
6222204
%{baseinstdir}/program/libpostgresql-sdbclo.so
6222204
%{baseinstdir}/program/libpostgresql-sdbc-impllo.so
518b615
%{baseinstdir}/program/postgresql-sdbc.ini
518b615
%{baseinstdir}/program/services/postgresql-sdbc.rdb
0b9af7f
%{baseinstdir}/share/registry/postgresql.xcd
518b615
cb73e55
%files ure
cb73e55
%{baseinstdir}/program/classes/java_uno.jar
cb73e55
%{baseinstdir}/program/classes/juh.jar
cb73e55
%{baseinstdir}/program/classes/jurt.jar
cb73e55
%{baseinstdir}/program/classes/ridl.jar
cb73e55
%{baseinstdir}/program/classes/unoloader.jar
cb73e55
%{baseinstdir}/program/javaldx
cb73e55
%{baseinstdir}/program/javavendors.xml
cb73e55
%{baseinstdir}/program/jvmfwk3rc
cb73e55
%{baseinstdir}/program/JREProperties.class
9dd42ce
%if 0%{?fedora}
3f651ad
%{baseinstdir}/program/ure.abignore
9dd42ce
%endif
cb73e55
%{baseinstdir}/program/libaffine_uno_uno.so
cb73e55
%{baseinstdir}/program/libbinaryurplo.so
cb73e55
%{baseinstdir}/program/libbootstraplo.so
cb73e55
%{baseinstdir}/program/libgcc3_uno.so
d217885
%{baseinstdir}/program/libi18nlangtag.so
cb73e55
%{baseinstdir}/program/libintrospectionlo.so
cb73e55
%{baseinstdir}/program/libinvocadaptlo.so
cb73e55
%{baseinstdir}/program/libinvocationlo.so
cb73e55
%{baseinstdir}/program/libiolo.so
cb73e55
%{baseinstdir}/program/libjava_uno.so
cb73e55
%{baseinstdir}/program/libjavaloaderlo.so
cb73e55
%{baseinstdir}/program/libjavavmlo.so
cb73e55
%{baseinstdir}/program/libjpipe.so
cb73e55
%{baseinstdir}/program/libjuh.so
cb73e55
%{baseinstdir}/program/libjuhx.so
cb73e55
%{baseinstdir}/program/libjvmaccesslo.so
cb73e55
%{baseinstdir}/program/libjvmfwklo.so
cb73e55
%{baseinstdir}/program/liblog_uno_uno.so
cb73e55
%{baseinstdir}/program/libnamingservicelo.so
cb73e55
%{baseinstdir}/program/libproxyfaclo.so
cb73e55
%{baseinstdir}/program/libreflectionlo.so
cb73e55
%{baseinstdir}/program/libreglo.so
cb73e55
%{baseinstdir}/program/libsal_textenclo.so
cb73e55
%{baseinstdir}/program/libstocserviceslo.so
cb73e55
%{baseinstdir}/program/libstorelo.so
cb73e55
%{baseinstdir}/program/libuno_cppu.so.3
cb73e55
%{baseinstdir}/program/libuno_cppuhelpergcc3.so.3
cb73e55
%{baseinstdir}/program/libuno_purpenvhelpergcc3.so.3
cb73e55
%{baseinstdir}/program/libuno_sal.so.3
cb73e55
%{baseinstdir}/program/libuno_salhelpergcc3.so.3
cb73e55
%{baseinstdir}/program/libunoidllo.so
cb73e55
%{baseinstdir}/program/libunsafe_uno_uno.so
cb73e55
%{baseinstdir}/program/libuuresolverlo.so