Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 560e8e1ee2359915aa7ade691f6c8d19 > files > 58

libreoffice-4.4.6.3-2.2.mga5.src.rpm

# download path contains version without the last (fourth) digit
%define libo_version 4.4.6
# Should contain .alphaX / .betaX, if this is pre-release (actually
# pre-RC) version. The pre-release string is part of tarball file names,
# so we need a way to define it easily at one place.
%define libo_prerelease %nil
%define vendoroption --with-vendor="Mageia"
# rhbz#465664 jar-repacking breaks help by reordering META-INF/MANIFEST.MF
%define __jar_repack %{nil}
%define Werror_cflags %nil
# make it easier to download sources from pre-release site
# http://dev-builds.libreoffice.org/pre-releases/src
# %%define source_url http://dev-builds.libreoffice.org/pre-releases/src
%define source_url http://download.documentfoundation.org/libreoffice/src/%{libo_version}
# URL for external projects' tarballs
%define external_url http://dev-www.libreoffice.org/src/

# get english only and no-langpacks for a faster smoketest build
# fedpkg compile/install/local/mockbuild does not handle --without ATM,
# so it is necessary to change this to bcond_with to achieve the same
# effect
%bcond_without langpacks

# remove workdir at the end of %%build, to allow build on space-constrained machines
%ifarch s390 s390x
%bcond_without smallbuild
%else
%bcond_with smallbuild
%endif

# generated by %%langpack definitions
%global langpack_langs %{nil}

%global bundling_options %{nil}

%global build_gtk3 1
%global build_kde 1
%define system_boost 1

%define with_mergedlibs 0
%global __requires_exclude libjawt.so|libmyspell.so|libstlport_gcc.so|libmono.so|mono|devel\\(libstlport_gcc\\)|libxmlreader.so|libcomphelp4gcc3.so|devel\\(libreglo\\)|devel\\(libxmlreaderlo\\)|devel\\(libreglo\\(64bit\\)\\)|devel\\(libxmlreaderlo\\(64bit\\)\\)|devel\\(libunoidllo\\)|devel\\(libunoidllo\\(64bit\\)\\)

%global __provides_exclude libsndfile.so|libportaudio.so|libdb-4.2.so|libdb_java-4.2.so|libmyspell.so|libstlport_gcc.so|librdf.so.0|libraptor.so.1|libxmlsec1-nss.so.1|libxmlsec1.so.1

%define _enable_debug_packages 0

Summary:        Free Software Productivity Suite
Name:           libreoffice
Version:        %{libo_version}.3
Release:        %mkrel 2.2%{?libo_prerelease}
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 Artistic and MPLv2.0 and CC0
Group:          Office/Suite
URL:            http://www.libreoffice.org/

Source0:        %{source_url}/libreoffice-%{version}%{?libo_prerelease}.tar.xz
Source1:        %{source_url}/libreoffice-help-%{version}%{?libo_prerelease}.tar.xz
Source2:        %{source_url}/libreoffice-translations-%{version}%{?libo_prerelease}.tar.xz
Source3:        http://dev-www.libreoffice.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll
Source4:        libreoffice-multiliblauncher.sh
Source5:        %{external_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
Source6:        %{external_url}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
Source7:        %{external_url}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
Source8:        %{external_url}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip

#Unfortunately later versions of hsqldb changed the file format, so if we use a later version we loose
#backwards compatability.
Source9:        %{external_url}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip

# Sources 10-39 are RHEL specific

Source40:       %{external_url}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2

# symbolic icons
Source42:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-base-symbolic.svg
Source43:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-calc-symbolic.svg
Source44:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-draw-symbolic.svg
Source45:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-impress-symbolic.svg
Source46:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-main-symbolic.svg
Source47:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-math-symbolic.svg
Source48:       https://raw.githubusercontent.com/gnome-design-team/gnome-icons/master/apps-symbolic/Adwaita/scalable/apps/libreoffice-writer-symbolic.svg

# build tools
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bc
BuildRequires: binutils
BuildRequires: bison
%if 0%{?rhel} && 0%{?rhel} < 7
BuildRequires: chrpath
%endif
BuildRequires: desktop-file-utils
BuildRequires: doxygen
BuildRequires: findutils
BuildRequires: flex
BuildRequires: gdb
BuildRequires: gcc-c++
BuildRequires: git
BuildRequires: gperf
BuildRequires: icu
BuildRequires: make
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(Digest::MD5)
BuildRequires: libappstream-glib-devel
BuildRequires: ucpp
# (tv) for xmllint:
BuildRequires: libxml2-utils
BuildRequires: zip

# libs / headers - common
BuildRequires: cups-devel
BuildRequires: pkgconfig(expat)
BuildRequires: fontpackages-devel
BuildRequires: hyphen-devel
BuildRequires: libicu-devel
BuildRequires: lpsolve-devel
BuildRequires: openldap-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig(cppunit)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(evolution-data-server-1.2)
BuildRequires: pkgconfig(freetype2)
%if %{build_gtk3}
BuildRequires: gtk+3-devel
%endif
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(hunspell)
%if %{build_kde}
BuildRequires: kdelibs4-devel
%endif
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libidn)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(neon)
BuildRequires: pkgconfig(nss)
BuildRequires: pkgconfig(poppler)
BuildRequires: pkgconfig(redland)
BuildRequires: pkgconfig(sane-backends)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(zlib)
BuildRequires: unixODBC-devel
BuildRequires: vigra-devel

# libs / headers - conditional
BuildRequires: firebird-devel
BuildRequires: firebird-server-common
BuildRequires: glm-devel
BuildRequires: kdelibs4-devel
BuildRequires: openCOLLADA-devel
BuildRequires: pkgconfig(glew) >= 1.10.0
BuildRequires: pkgconfig(libabw-0.1)
BuildRequires: pkgconfig(libcdr-0.1)
BuildRequires: pkgconfig(libe-book-0.1)
BuildRequires: pkgconfig(libeot)
BuildRequires: pkgconfig(libetonyek-0.1)
BuildRequires: pkgconfig(libfreehand-0.1)
BuildRequires: pkgconfig(libgltf-0.0)
BuildRequires: pkgconfig(libmspub-0.1)
BuildRequires: pkgconfig(libmwaw-0.3)
BuildRequires: pkgconfig(libodfgen-0.1)
BuildRequires: pkgconfig(liborcus-0.8)
BuildRequires: pkgconfig(libpagemaker-0.0)
BuildRequires: pkgconfig(librevenge-0.0)
BuildRequires: pkgconfig(libvisio-0.1)
BuildRequires: pkgconfig(libwpd-0.10)
BuildRequires: pkgconfig(libwpg-0.3)
BuildRequires: pkgconfig(libwps-0.3)

%if 0%{?system_boost}
BuildRequires: boost-devel
%endif
BuildRequires: pkgconfig(graphite2)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libclucene-core)
BuildRequires: pkgconfig(libcmis-0.5)
BuildRequires: pkgconfig(libexttextcat)
BuildRequires: pkgconfig(liblangtag)
BuildRequires: pkgconfig(mdds)
BuildRequires: pkgconfig(mythes)
BuildRequires: pkgconfig(poppler-cpp)
BuildRequires: postgresql-devel

# libs / headers - special cases
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)

BuildRequires: libjpeg-devel

BuildRequires: pkgconfig(bluez)
BuildRequires: pkgconfig(python3)
BuildRequires: rsync

# java stuff
BuildRequires: ant
BuildRequires: apache-commons-codec
BuildRequires: apache-commons-lang
BuildRequires: bsh
BuildRequires: hsqldb
BuildRequires: java-devel >= 1.6.0
BuildRequires: jakarta-commons-httpclient
BuildRequires: junit
BuildRequires: pentaho-reporting-flow-engine

# fonts needed for unit tests
BuildRequires: fonts-ttf-liberation

# libreoffice metapackage requires all of the programs
Requires: %{name}-base = %{version}
Requires: %{name}-calc = %{version}
Requires: %{name}-draw = %{version}
Requires: %{name}-impress = %{version}
Requires: %{name}-math = %{version}
Recommends: %{name}-pdfimport
Requires: %{name}-writer = %{version}
Provides:  openoffice.org = 1:%{version}-%{release}

# Fedora patches
# not upstreamed
Patch0:  openoffice.org-2.4.0.ooo86080.unopkg.bodge.patch
# not upstreamed
Patch1:  openoffice.org-3.1.0.oooXXXXX.solenv.allowmissing.patch
# not upstreamed
Patch2:  libreoffice-installfix.patch
# patches 2-11 are RHEL specific @RH/FC
# not upstreamed
Patch12: 0001-Resolves-rhbz-1035092-no-shortcut-key-for-Italian-To.patch
# not upstreamed
Patch13: 0001-disable-firebird-unit-test.patch
# not upstreamed
Patch14: 0001-never-run-autogen.sh.patch
# not upstreamed
Patch15: 0001-add-X-TryExec-entries-to-desktop-files.patch
# not upstreamed
Patch16: 0001-disable-PSD-import-test-which-deadlocks-on-ARM.patch
Patch17: 0001-Resolves-fdo-37559-revert-adding-extra-dummy-polygon.patch
Patch18: 0001-radio-check-top-center-bottom-alignment-for-table-ce.patch
Patch19: 0001-allow-comparing-documents-which-only-differ-by-frame.patch
Patch20: 0001-Use-the-same-advanced-Ellipse-and-Rectangle-shapes-i.patch
Patch21: 0001-add-accel.-to-switch-monitors-to-pres.-console.patch
Patch22: 0001-build-libetonyek-with-no-strict-aliasing.patch
Patch23: 0002-propagate-user-set-CFLAGS-to-build.patch
Patch24: 0001-gnome-745909-grab-ungrab-keyboard-for-menus.patch
Patch25: 0001-negative-after-text-indents-ignored-by-msword-for-ap.patch
Patch26: 0001-on-using-add-color-button-don-t-frighten-with-an-err.patch
Patch27: 0001-the-Edit-button-is-a-color-picker-rename-and-move.patch
Patch28: 0001-Use-new-color-selector-in-the-toolbar-for-area-fills.patch
Patch29: 0001-java-dir-for-powepc64-and-powepc64le-can-differ.patch
Patch30: 0002-java-dir-for-powepc64-and-powepc64le-can-differ.patch
Patch31: 0001-impress-right-click-to-insert-image.patch
Patch32: 0001-Resolves-tdf-89904-allow-the-options-color-page-to-l.patch
Patch33: 0001-Resolves-tdf-89905-don-t-copy-palettes-from-shared-t.patch
Patch34: 0001-Resolves-tdf-49407-enable-CaseMap-property-in-impres.patch
Patch35: 0001-rhbz-1233420-handle-inexistent-cond.-format.patch
Patch36: 0001-allow-slide-design-to-affect-multiple-standard-pages.patch
Patch37: 0001-implement-equalize-width-and-height-for-impress-draw.patch
Patch38: 0001-f22-openjdk-for-ppc64le-has-both-these-dirs-but-jawt.patch
Patch39: 0001-fix-langtag-test-with-liblangtag-0.5.7.patch
Patch40: 0001-implement-undo-for-equalize-marked-objects.patch
Patch41: 0001-time-stamp-object-selections-and-use-newest-as-ref-f.patch
Patch42: 0001-Resolves-rhbz-1256843-no-obvious-means-to-close-temp.patch
Patch43: 0001-implement-undo-of-delete-impress-cell-contents.patch
Patch44: 0001-implement-save-slide-background-for-impress.patch
Patch45: 0001-Related-tdf-72880-presumably-using-startcenter-as-ge.patch
Patch46: 0001-implement-dialog-control-over-enhanced-shape-control.patch
Patch47: 0001-afl-eventtesting-crash-on-undoing-insert-new-page-in.patch
Patch48: 0001-tdf-94871-sw-fix-a-frame-formatting-regression-that-.patch

#Mageia Patches
Patch1000: disable-tests.diff
#Patch1001: disable-tests2.diff


%define instdir %{_libdir}
%define baseinstdir %{instdir}/libreoffice
%define ureinstdir %{baseinstdir}/ure
%define sdkinstdir %{baseinstdir}/sdk
%define fontname opensymbol

%description
LibreOffice is an Open Source, community-developed, office productivity suite.
It includes the key desktop applications, such as a word processor,
spreadsheet, presentation manager, formula editor and drawing program, with a
user interface and feature set similar to other office suites.  Sophisticated
and flexible, LibreOffice also works transparently with a variety of file
formats, including Microsoft Office File Formats.


%package filters
Summary: All import / export filters
Group:   Office/Utilities 
Requires: %{name}-calc = %{version}-%{release}
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-draw = %{version}-%{release}
Requires: %{name}-graphicfilter = %{version}-%{release}
Requires: %{name}-impress = %{version}-%{release}
Requires: %{name}-math = %{version}-%{release}
Requires: %{name}-ure = %{version}-%{release}
Requires: %{name}-writer = %{version}-%{release}
Requires: %{name}-xsltfilter = %{version}-%{release}

%description filters
Metapackage to pull in all subpackages that contain import or export
filters.

%package core
Summary: Core modules for LibreOffice
Group: Office/Utilities
Requires: %{name}-%{fontname}-fonts = %{version}-%{release}
Requires: %{name}-ure = %{version}-%{release}
Requires: fonts-ttf-liberation
Requires: fonts-ttf-dejavu
Requires: google-crosextra-caladea-fonts, google-crosextra-carlito-fonts
Requires: hunspell
Requires: hyphen >= 2.4
Recommends: hyphen-en
Recommends: autocorr-en
Recommends: hunspell-en
Requires: java-headless >= 1:1.6
Requires: libexttextcat
Requires: %name-langpack = %version-%release
Provides:  openoffice.org-core =   1:%version-%release
Provides:  openoffice.org-common =   1:%version-%release
Provides:  openoffice.org-filter-binfilter = 1:%version-%release
Provides:  openoffice.org-help-en_US =   1:%version-%release
Provides:  openoffice.org-help-en_GB =   1:%version-%release
Obsoletes: libreoffice-langpack-ms < 1:3.3.99.1
Obsoletes: libreoffice-langpack-ur < 1:3.3.99.1
Provides:  libreoffice-style-tango = %{version}-%{release}
Provides:  libreoffice-style-oxygen = %{version}-%{release}
Conflicts: %name-ure < 3.3.2.2-7
Obsoletes: libreoffice-appdata < 1:4.3.3.0
Obsoletes: libreoffice-binfilter < 4.0.0.0
Obsoletes: libreoffice-headless < 1:4.4.0.0
Obsoletes: libreoffice-javafilter < 4.1.0.0
Obsoletes: autocorr-eu < 1:4.0.1.2
Provides: libreoffice-headless = %{version}-%{release}
Obsoletes: libreoffice-testtools < 3.4.99.1
Conflicts: %name-gdb-debug-support < 3.6.0-0.beta2.1

%description core
The shared core libraries and support files for LibreOffice.


%package pyuno
Summary: Python support for LibreOffice
Group: Development/Python 
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-ure = %{version}-%{release}
Requires: python3
Requires(pre):    %{name}-core
Requires(post):   %{name}-core
Requires(preun):  %{name}-core
Requires(postun): %{name}-core
Provides: openoffice.org-pyuno = 1:%version-%release
Conflicts: libreoffice-core < %version

%description pyuno
Python bindings for the LibreOffice UNO component model. Allows scripts both
external to LibreOffice and within the internal LibreOffice scripting framework
to be written in python.


%package base
Summary: Database front-end for LibreOffice
Group:    Databases 
Requires: postgresql-jdbc
Requires: %{name}-ure = %{version}-%{release}
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-calc = %{version}-%{release}
Requires: %{name}-pyuno = %{version}-%{release}
Recommends: %{name}-java-common = %{version}-%release
Obsoletes: %{name}-report-builder < 1:4.1.0.0
Provides:  openoffice.org-base = 1:%version-%release 
Provides:  openoffice.org-style = 1:%version-%release
Provides:  openoffice.org-style-crystal = 1:%version-%release
Provides:  openoffice.org-style-oxygen = 1:%version-%release

%description base
GUI database front-end for LibreOffice. Allows creation and management of 
databases through a GUI.


%package bsh
Summary: BeanShell support for LibreOffice
Group: Development/Java
Requires: bsh
Requires: %{name}-core = %{version}-%{release}
Requires(pre):    %{name}-core
Requires(post):   %{name}-core
Requires(preun):  %{name}-core
Requires(postun): %{name}-core
Provides:  openoffice.org-bsh < 1:%version-%release

%description bsh
Support BeanShell scripts in LibreOffice.


%package officebean
Summary: JavaBean for LibreOffice Components
Group: Development/C
Requires: %{name}-core = %{version}-%{release}

%description officebean
Allows embedding of LibreOffice documents within the Java environment. It
provides a Java AWT window into which the backend LibreOffice process draws
its visual representation

%package rhino
Summary: JavaScript support for LibreOffice
Group: Development/Java
Requires: %{name}-core = %{version}-%{release}
Requires(pre):    %{name}-core
Requires(post):   %{name}-core
Requires(preun):  %{name}-core
Requires(postun): %{name}-core


%description rhino
Support JavaScript scripts in LibreOffice.


%package wiki-publisher
Summary: Create Wiki articles on MediaWiki servers with LibreOffice
Group:   Office/Utilities 
Requires: apache-commons-codec, jakarta-commons-httpclient
Requires: apache-commons-lang, apache-commons-logging
Requires: %{name}-writer = %{version}-%{release}
Requires(pre):    %{name}-core
Requires(post):   %{name}-core
Requires(preun):  %{name}-core
Requires(postun): %{name}-core

%description wiki-publisher
The Wiki Publisher enables you to create Wiki articles on MediaWiki servers
without having to know the syntax of the MediaWiki markup language. Publish
your new and existing documents transparently with writer to a wiki page.

%package nlpsolver
Summary: Non-linear solver engine for LibreOffice Calc
Group:   Office/Utilities 
Requires: %{name}-calc = %{version}-%{release}
Requires(pre):    %{name}-core
Requires(post):   %{name}-core
Requires(preun):  %{name}-core
Requires(postun): %{name}-core

%description nlpsolver
A non-linear solver engine for Calc as an alternative to the default linear
programming model when more complex, nonlinear programming is required.

%package ogltrans
Summary: 3D OpenGL slide transitions for LibreOffice
Group:   Office/Utilities 
Requires: %{name}-impress = %{version}-%{release}
Requires(pre):    %{name}-core

%description ogltrans
OpenGL Transitions enable 3D slide transitions to be used in LibreOffice.
Requires good quality 3D support for your graphics card for best experience.

%package pdfimport
Summary: PDF Importer for LibreOffice Draw
Group: Office/Utilities
Requires: %{name}-draw = %{version}-%{release}
Requires(pre):    %{name}-core
Requires(post):   %{name}-core
Requires(preun):  %{name}-core
Requires(postun): %{name}-core

%description pdfimport
The PDF Importer imports PDF into drawing documents to preserve layout
and enable basic editing of PDF documents.


%package %{fontname}-fonts
Summary: LibreOffice dingbats font
Group:    System/Fonts/True type
Requires: fontpackages-filesystem
BuildArch: noarch

%description %{fontname}-fonts
A dingbats font, OpenSymbol, suitable for use by LibreOffice for bullets and
mathematical symbols. 


%package writer
Summary: LibreOffice Word Processor Application
Group: Office/Word processor
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-pyuno = %{version}-%{release}
Requires: %{name}-ure = %{version}-%{release}
Provides:  openoffice.org-writer = 1:%{version}-%{release}
Provides:  openoffice.org-writer2latex = 1:%{version}-%{release}
Provides:  openoffice.org-writer2xhtml = 1:%{version}-%{release}

%description writer
The LibreOffice Word Processor application.


%package emailmerge
Summary: Email mail-merge component for LibreOffice 
Group: Networking/Mail 
Requires: %{name}-writer = %{version}-%{release}
Requires: %{name}-pyuno = %{version}-%{release}

%description emailmerge
Enables the LibreOffice writer module to mail-merge to email.


%package calc
Summary: LibreOffice Spreadsheet Application
Group: Office/Spreadsheet
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-pyuno = %{version}-%{release}
Requires: %{name}-ure = %{version}-%{release}

%description calc
The LibreOffice Spreadsheet application.


%package draw
Summary: LibreOffice Drawing Application
Group: Graphics/Editors and Converters
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-pyuno = %{version}-%{release}
Requires: %{name}-ure = %{version}-%{release}
Requires: %{name}-pdfimport = %{version}-%{release}
Requires: %{name}-graphicfilter = %{version}-%{release}
provides:  openoffice.org-draw = 1:%{version}-%{release}

%description draw
The LibreOffice Drawing Application.


%package impress
Summary: LibreOffice Presentation Application
Group: Office/Utilities
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-pyuno = %{version}-%{release}
Requires: %{name}-ure = %{version}-%{release}
Requires: %{name}-ogltrans = %{version}-%{release}
%rename %{name}-presentation-minimizer = %{version}-%{release}
%rename %{name}-presenter-screen = %{version}-%{release}
Provides:  openoffice.org-impress = 1:%{version}-%{release}

%description impress
The LibreOffice Presentation Application.


%package math
Summary: LibreOffice Equation Editor Application
Group: Sciences/Mathematics
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-pyuno = %{version}-%{release}
Requires: %{name}-ure = %{version}-%{release}

%description math 
The LibreOffice Equation Editor Application.


%package graphicfilter
Summary: LibreOffice Extra Graphic filters
Group: Office/Utilities
Requires: %{name}-ure = %{version}-%{release}
Requires: %{name}-core = %{version}-%{release}

%description graphicfilter
The graphicfilter module for LibreOffice provides graphic filters, e.g. svg and
flash filters.


%package xsltfilter
Summary: Optional xsltfilter module for LibreOffice
Group: Office/Utilities
Requires: %{name}-core = %{version}-%{release}

%description xsltfilter
The xsltfilter module for LibreOffice, provides additional docbook and
xhtml export transforms. Install this to enable docbook export.


%package postgresql
Summary: PostgreSQL connector for LibreOffice
Group: Office/Utilities
Requires: %{name}-base = %{version}-%{release}
Requires: postgresql-libs

%description postgresql
A PostgreSQL connector for the database front-end for LibreOffice. Allows
creation and management of PostgreSQL databases through a GUI.


%package ure
Summary: UNO Runtime Environment
Group: Development/Other 
#rhbz#1164551 we want to ensure that a libjvm.so of this arch is available
%if 0%{?__isa_bits} == 64
%global mark64 ()(64bit)
%endif
Requires: unzip, libjvm.so%{?mark64}
Recommends: %name-java-common = %version-%release
Conflicts: libreoffice-core <= 3.3.2.2-5

%description ure
UNO is the component model of LibreOffice. UNO offers interoperability between
programming languages, other components models and hardware architectures,
either in process or over process boundaries, in the Intranet as well as in the
Internet. UNO components may be implemented in and accessed from any
programming language for which a UNO implementation (AKA language binding) and
an appropriate bridge or adapter exists


%package java-common
Group: Office/Utilities
Summary: LibreOffice office suite Java support arch. independent files
Requires: %{name}-core = %{version}-%{release}
#Requires: %{name}-common = %{version}-%{release}
Requires: jre-headless
Conflicts: %name-core < 3.3.2.2-8
Provides:  openoffice.org-java-common = 1:%version-%release

%description java-common
LibreOffice is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the architecture-independent files of the Java support
for Libreoffice (Java classes, scripts, config snippets).

Also contains the Libreoffice Office Bean for embedding Libreoffice in
custom Java applications.


%package sdk
Summary: Software Development Kit for LibreOffice
Group: Development/Other 
Requires: %{name}-ure = %{version}-%{release}
Requires: %{name}-core = %{version}-%{release}
Requires: unzip, java-devel

%description sdk
The LibreOffice SDK is an add-on for the LibreOffice office suite. It provides
the necessary tools for programming using the LibreOffice APIs and for creating
extensions (UNO components) for LibreOffice.  To set the build environment for
building against the sdk use %{sdkinstdir}/setsdkenv_unix.sh.


%package sdk-doc
Summary: Software Development Kit documentation for LibreOffice
Group: Development/Other
Requires: %{name}-sdk = %{version}-%{release}

%description sdk-doc
This provides documentation for programming using the LibreOffice APIs
and examples of creating extensions (UNO components) for LibreOffice.

%package glade
Summary: Support for creating LibreOffice dialogs in glade
Group: Development/GNOME and GTK+
Requires: %{name}-ure = %{version}-%{release}
Requires: %{name}-core = %{version}-%{release}
Requires: %mklibname gladeui 1 11

%description glade
%{name}-glade contains a catalog of LibreOffice-specific widgets for
glade and ui-previewer tool to check the visual appearance of dialogs.

%package librelogo
Summary: LibreLogo scripting language
Group:   Office/Utilities 
Requires: %{name}-writer = %{version}-%{release}
Requires: %{name}-pyuno = %{version}-%{release}

%description librelogo
Enables LibreLogo scripting in Writer. LibreLogo is a Logo-like
programming language with interactive vectorgraphics for education and
DTP.

%if %{build_kde}
%package kde
Summary: LibreOffice KDE integration plug-in
Group:   Graphical desktop/KDE
Requires: %{name}-core = %{version}-%{release}
Provides:  openoffice.org-kde4 = 1:%version-%release

%description kde
A plug-in for LibreOffice that enables integration into the KDE desktop environment.
%endif

%if 0%{?_enable_debug_packages}

%define debug_package %{nil}
%global __debug_package 1

%package debuginfo
Summary: Debug information for package %{name}
Group: Development/Debug
AutoReqProv: 0
Requires: libreoffice-core = %{version}-%{release}
Recommends: libreoffice-gdb-debug-support = %{version}-%{release}

%description debuginfo
This package provides debug information for package %{name}.
Debug information is useful when developing applications that use this
package or when debugging this package.


%files debuginfo -f debugfiles.list

%package gdb-debug-support
Summary: Additional support for debugging with gdb
Group: Development/Other
Requires: gdb
Requires: python3-six
AutoReqProv: 0

%description gdb-debug-support
This package provides gdb pretty printers for package %{name}.

# Update the screenshot shown in the software center
#
# NOTE: It would be *awesome* if this file was pushed upstream.
#
# See http://people.freedesktop.org/~hughsient/appdata/#screenshots for more details.
#
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/libreoffice-writer.appdata.xml \
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-writer/a.png \
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-writer/b.png 
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/libreoffice-calc.appdata.xml \
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-calc/a.png 
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/libreoffice-draw.appdata.xml \
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-draw/a.png 
appstream-util replace-screenshots $RPM_BUILD_ROOT%{_datadir}/appdata/libreoffice-impress.appdata.xml \
  https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/libreoffice-impress/a.png 

%files gdb-debug-support
%{_datadir}/gdb/auto-load%{baseinstdir}
%{_datadir}/libreoffice/gdb

%endif

%define _langpack_common() \
%{baseinstdir}/program/resource/*%{1}.res \
%{baseinstdir}/share/config/soffice.cfg/modules/*/ui/res/%{1}.zip \
%{baseinstdir}/share/config/soffice.cfg/*/ui/res/%{1}.zip \
%{baseinstdir}/share/template/%{1} \
%{baseinstdir}/share/registry/Langpack-%{1}.xcd \
%{baseinstdir}/share/registry/res/registry_%{1}.xcd \
%{baseinstdir}/share/registry/res/fcfg_langpack_%{1}.xcd \
%{nil}

# Defines a language pack subpackage.
#
# It's necessary to define language code (-l) and language name (-n).
# Additionally, it's possible
# * to require autocorr, hunspell, hyphen or mythes package or font for
#   given language,
# * to obsolete openoffice.org-langpack package,
# * to provide libreoffice-langpack-loc package, where loc is glibc
#   locale--this is necessary for urpmi to pick it automatically,
# * to require other, unrelated, packages,
# * to specify file serving as file list.
# For these, lower case character argument takes an argument specifying
# language, upper case character argument uses language from -l.
#
# All remaining arguments are considered to be files and added to the file
# list.
#
# Aa:  autocorr dependency
# c:   additional config file (just the name stem)
# E    the package does not contain any files (i.e., has empty filelist)
# Ff:  font language dependency
# Hh:  hunspell dependency
# i:   additional language added to this package
# L:   internal (LibreOffice) language code, used in file names
# l:   language code, e.g., cs
# Mm:  mythes dependency
# n:   language name, e.g., Czech
# Oo:  Obsoletes: of openoffice.org-langpack
# Vv:  Very archaic Obsoletes: of openoffice.org-langpack
# Ww:  Archaic Obsoletes: of openoffice.org2-langpack
# p:   Provides: of libreoffice-langpack
# r:   comma-separated list of additional requires
# S:s: script classification (cjk, ctl). -S is only a marker, as it does
#      not add any .xcd into the package (the file does not exist for at
#      least one CTL-using locale, si)
# T    has help files
# u:   requires locales-XX (w/o, we requires the proper locales-XX automatically) (MGA)
# Xx:  has autotext definitions
# Yy:  hyphen dependency
#
# Example:
# libreoffice-langpack-cs: langpack for Czech lang. requiring hyphen-cs,
# autocorr-cs, mythes-cs-CZ and suitable font, obsoleting
# openoffice.org-langpack-cs_CZ:
# %%langpack -l cs -n Czech -H -A -m cs-CZ
#  b de g  jk     q  tu    z BCD  G IJK  N PQR       Z0123456789
%define langpack(Aa:c:EFf:Hh:i:L:l:Mm:n:p:Oo:r:S:s:TVv:u:Ww:Xx:Yy:) \
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
%define _langpack_lang %{-L:%{-L*}}%{!-L:%{lang}} \
%define pkgname langpack-%{lang} \
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
\
%global langpack_langs %{langpack_langs} %{_langpack_lang} %{-i:%{-i*}} \
\
%package %{pkgname} \
Summary: %{langname} language pack for LibreOffice \
Group: System/Internationalization \
Requires: %{name}-core = %{version}-%{release} \
Provides:  %name-langpack = %version-%release \
%{-a:Requires: autocorr-%{-a*}}%{!-a:%{-A:Requires: autocorr-%{lang}}} \
%{-f:Requires: font(:lang=%{-f*})}%{!-f:%{-F:Requires: font(:lang=%{lang})}} \
%{-h:Requires: hunspell-%{-h*}}%{!-h:%{-H:Requires: hunspell-%{lang}}} \
%{-m:Requires: mythes-%{-m*}}%{!-m:%{-M:Requires: mythes-%{lang}}} \
%{-u:Requires: locales-%{-u*}}%{!-u:Requires: locales-%{lang}} \
%{-y:Requires: hyphen-%{-y*}}%{!-y:%{-Y:Requires: hyphen-%{lang}}} \
%{-r:Requires: %{-r*}} \
%{-o:Obsoletes: openoffice.org-langpack-%{-o*} < 1:3.3.1}%{!-o:%{-O:Obsoletes: openoffice.org-langpack-%{lang} < 1:3.3.1}} \
#%{-w:Obsoletes: openoffice.org2-langpack-%{-x*} < 1:3.0.0}%{!-x:%{-W:Obsoletes: openoffice.org2-langpack-%{lang} < 1:3.0.0}} \
%{-v:Obsoletes: openoffice.org-langpack-%{-v*} < 1:2.0.3}%{!-v:%{-V:Obsoletes: openoffice.org-langpack-%{lang} < 2.0.3}} \
%{-p:Provides: %{name}-langpack-%{-p*}} \
\
%description %{pkgname} \
Provides additional %{langname} translations and resources for LibreOffice. \
\
%files %{pkgname} \
%{!-E: \
%{expand:%%_langpack_common %{_langpack_lang}} \
%{-x:%{baseinstdir}/share/autotext/%{-x*}}%{!-x:%{-X:%{baseinstdir}/share/autotext/%{_langpack_lang}}} \
%{-c:%{baseinstdir}/share/registry/%{-c*}.xcd} \
%{-s:%{baseinstdir}/share/registry/%{-s*}_%{_langpack_lang}.xcd} \
%{-T: \
%docdir %{baseinstdir}/help/%{_langpack_lang} \
%{baseinstdir}/help/%{_langpack_lang} \
} \
%{-i:%{expand:%%_langpack_common %{-i*}}} \
} \
%{nil}

# Defines an auto-correction subpackage.
#
# i: add autocorrections from additional language
# l: language code
# n: language name
# L  the filename does not contain country code
#
# All remaining arguments are considered to be files and added to the file
# list.
%define autocorr(i:Ll:n:) \
%define lang %{-l:%{-l*}}%{!-l:%{error:Language code not defined}} \
%define pkgname autocorr-%{lang} \
%define langname %{-n:%{-n*}}%{!-n:%{error:Language name not defined}} \
\
%package -n %{pkgname} \
Summary: %{langname} auto-correction rules \
Group: Text tools  \
Requires: locales-%{lang} \
BuildArch: noarch \
\
%description -n %{pkgname} \
Rules for auto-correcting common %{langname} typing errors. \
\
%files -n %{pkgname} \
%doc instdir/LICENSE \
%dir %{_datadir}/autocorr \
%{-L:%{_datadir}/autocorr/acor_%{lang}.dat} \
%{!-L:%{_datadir}/autocorr/acor_%{lang}-*.dat} \
%{-i:%{_datadir}/autocorr/acor_%{-i*}-*.dat} \
%{nil}
 
%langpack -l en -n English -F -H -Y -M -A -E -L en-US -O

%if %{with langpacks}
%langpack -l af -n Afrikaans -F -H -Y -A -o af_ZA -V -w af_ZA
%langpack -l ar -n Arabic -F -H -s ctl -O -W
%langpack -l as -n Assamese -F -H -Y -o as_IN -w as_IN
%langpack -l bg -n Bulgarian -F -H -Y -M -A -T -X -o bg_BG -V -w bg_BG
%langpack -l bn -n Bengali -F -H -Y -T -O -v bn_IN -W
%langpack -l br -n Breton -F -H -T
%langpack -l ca -n Catalan -F -H -Y -M -A -T -o ca_ES -V -w ca_ES -X
%langpack -l cs -n Czech -F -H -Y -M -A -T -X -o cs_CZ -V -w cs_CZ
%langpack -l cy -n Welsh -F -H -Y -o cy_GB -V -w cy_GB
%langpack -l da -n Danish -F -H -Y -M -A -T -X -o da_DK -V -w da_DK
%langpack -l de -n German -F -H -Y -M -A -T -X -O -W
%langpack -l dz -n Dzongkha -F -s ctl -T -O
%langpack -l el -n Greek -F -H -Y -M -T -o el_GR -V -w el_GR
%langpack -l es -n Spanish -F -H -Y -M -A -T -X -O -W
%langpack -l et -n Estonian -F -H -Y -T -o et_EE -V -w et_EE
%langpack -l eu -n Basque -F -H -Y -T -o eu_ES -V -w eu_ES
%langpack -l fa -n Farsi -A -H -Y -s ctl -X
%langpack -l fi -n Finnish -F -r libreoffice-voikko -A -T -o fi_FI -V -w fi_FI -X
%langpack -l fr -n French -F -H -Y -M -A -T -X -O -W
%langpack -l ga -n Irish -F -H -Y -M -A -o ga_IE -w ga_IE
%langpack -l gl -n Galician -F -H -Y -T -o gl_ES -V -w gl_ES
%langpack -l gu -n Gujarati -F -H -Y -s ctl -o gu_IN -w gu_IN -T
%langpack -l he -n Hebrew -F -H -s ctl -o he_IL -V -w he_IL -T
%langpack -l hi -n Hindi -F -H -Y -s ctl -T -o hi_IN -v hi-IN -w hi_IN -X
%langpack -l hr -n Croatian -F -H -Y -A -o hr_HR -V -w hr_HR -T -X
%langpack -l hu -n Hungarian -F -H -Y -M -A -T -X -o hu_HU -V -w hu_HU
%langpack -l it -n Italian -F -H -Y -M -A -T -X -O -W
%langpack -l ja -n Japanese -F -A -s cjk -T -X -o ja_JP -V -w ja_JP
%langpack -l kk -n Kazakh -F -H
%langpack -l kn -n Kannada -F -H -Y -o kn_IN -w ka_IN
%langpack -l ko -n Korean -F -H -A -s cjk -T -X -o ko_KR -V -w ko_KR
%langpack -l lt -n Lithuanian -F -H -Y -A -o lt_LT -V -w lt_LT -X
%langpack -l lv -n Latvian -F -H -Y -M
%langpack -l mai -n Maithili -F -o mai_IN
%langpack -l ml -n Malayalam -F -H -Y -o ml_IN -w ml_IN
%langpack -l mr -n Marathi -F -H -Y -o mr_IN -w mr_IN
%langpack -l nb -n Bokmal -F -H -Y -M -T -o nb_NO -V -w nb_NO -u no
%langpack -l nl -n Dutch -F -H -Y -M -A -T -X -O -W
%langpack -l nn -n Nynorsk -F -H -Y -M -T -o nn_NO -V -w nn_NO -u no
%define langpack_lang Southern Ndebele
%langpack -l nr -n %{langpack_lang} -F -H -o nr_ZA
%define langpack_lang Northern Sotho
%langpack -l nso -n %{langpack_lang} -F -H -o nso_ZA -w nso_ZA
%langpack -l or -n Odia -F -H -Y -s ctl -o or_IN -w or_IN
%langpack -l pa -n Punjabi -F -H -Y -s ctl -L pa-IN -O -v pa_IN -w pa_IN
%langpack -l pl -n Polish -F -H -Y -M -A -T -X -o pl_PL -V -w pl_PL
%define langpack_lang Brazilian Portuguese
%langpack -l pt_BR -n %{langpack_lang} -f pt -h pt -y pt -m pt -a pt -p pt_BR -T -X -o pt_BR -V -w pt_BR -L pt-BR -u pt
%langpack -l pt -n Portuguese -f pt -h pt -y pt -m pt -a pt -p pt_PT -T -L pt -X -u pt -o pt_PT -v pt -W
%langpack -l ro -n Romanian -A -F -H -Y -M -O -X
%langpack -l ru -n Russian -F -H -Y -M -A -T -X -O -W
%langpack -l si -n Sinhalese -F -H -S ctl -T -O
%langpack -l sk -n Slovak -F -H -Y -M -A -T -X -o sk_SK -V -w sk_SK
%langpack -l sl -n Slovenian -F -H -Y -M -A -T -X -o sl_SI -V -w sl_SI
%{baseinstdir}/share/wordbook/sl.dic

%langpack -l sr -n Serbian -F -H -Y -A -i sr-Latn -O -v sr_CS -w sr_CS
%langpack -l ss -n Swati -F -H -o ss_ZA
%define langpack_lang Southern Sotho
%langpack -l st -n %{langpack_lang} -F -H -o st_ZA
%langpack -l sv -n Swedish -F -H -Y -M -A -T -X -O -W
%langpack -l ta -n Tamil -F -H -Y -s ctl -o ta_IN -w ta_IN
%langpack -l te -n Telugu -F -H -Y -o te_IN -w te_IN
%langpack -l th -n Thai -F -H -s ctl -c ctlseqcheck_th -o th_TH -V -w th_TH
%langpack -l tn -n Tswana -F -H -o tn_ZA -V -w tn_ZA
%langpack -l tr -n Turkish -F -A -T -X -o tr_TR -V -W
%langpack -l ts -n Tsonga -F -H -o ts_ZA -V -w ts_ZA
%langpack -l uk -n Ukrainian -F -H -Y -M -T -O
%langpack -l ve -n Venda -F -H -o ve_ZA
%langpack -l xh -n Xhosa -F -H -o xh_ZA
%define langpack_lang Simplified Chinese
%langpack -l zh_CN -n %{langpack_lang} -f zh-cn -a zh -p zh_CN -s cjk -T -L zh-CN -X -o zh_CN -v zh-CN -w zh_CN -u zh
%define langpack_lang Traditional Chinese
%langpack -l zh_TW -n %{langpack_lang} -f zh-tw -a zh -p zh_TW -s cjk -T -L zh-TW -X -o zh_TW -v zh-TW -w zh_TW -u zh
%langpack -l zu -n Zulu -F -H -Y -o zu_ZA -V -w zu_ZA
%undefine langpack_lang
%endif
%autocorr -l en -n English

%if %{with langpacks}
%autocorr -l af -n Afrikaans
%autocorr -l bg -n Bulgarian
%autocorr -l ca -n Catalan
%autocorr -l cs -n Czech
%autocorr -l da -n Danish
%autocorr -l de -n German -L
%autocorr -l es -n Spanish -L
%autocorr -l fa -n Farsi
%autocorr -l fi -n Finnish
%autocorr -l fr -n French -L
%autocorr -l ga -n Irish
%autocorr -l hr -n Croatian
%autocorr -l hu -n Hungarian
%autocorr -l is -n Icelandic
%autocorr -l it -n Italian -L
%autocorr -l ja -n Japanese
%autocorr -l ko -n Korean
%autocorr -l lb -n Luxembourgish
%autocorr -l lt -n Lithuanian
%autocorr -l mn -n Mongolian
%autocorr -l nl -n Dutch
%autocorr -l pl -n Polish
%autocorr -l pt -n Portuguese
%autocorr -l ro -n Romanian
%autocorr -l ru -n Russian
%autocorr -l sk -n Slovak
%autocorr -l sl -n Slovenian
#rhbz#452379 clump serbian autocorrections together
%autocorr -l sr -n Serbian -i sr-Latn
%autocorr -l sv -n Swedish
%autocorr -l tr -n Turkish
%autocorr -l vi -n Vietnamese
%autocorr -l zh -n Chinese
%endif

%define make_autocorr_aliases(l:) \
%{?-l: \
for lang in %{*}; do \
    ln -sf acor_%{-l*}.dat acor_$lang.dat \
done \
} \
%{!?-l:%{error:-l must be present}}

%prep
echo %patches
%setup -q -n %{name}-%{version}%{?libo_prerelease} -b 1 -b 2
rm -rf git-hooks */git-hooks

# set up git repo
git init
git config user.name rpmbuild
git config user.email rpmbuild@fedoraproject.org
git config gc.auto 0 # disable auto packing
git add -A
git commit -q -a -m %{name}-%{version}

#Customize Palette to add Red Hat colours
#TODO: have and add mageia colours
(head -n -1 extras/source/palettes/standard.soc && \
 echo -e '  <draw:color draw:name="Mageia 1" draw:color="#cc0000"/>
  <draw:color draw:name="Mageia 2" draw:color="#0093d9"/>
  <draw:color draw:name="Mageia 3" draw:color="#ff8d00"/>
  <draw:color draw:name="Mageia 4" draw:color="#abb400"/>
  <draw:color draw:name="Mageia 5" draw:color="#4e376b"/>' && \
 tail -n 1 extras/source/palettes/standard.soc) > mageia.soc
mv -f mageia.soc extras/source/palettes/standard.soc

git commit -q -a -m 'add Red Hat colors to palette'

# apply patches
git am %{patches}

# Seeing .git dir makes some of the build tools change their behavior.
# We do not want that. Note: it is still possible to use
# git --git-dir=.git-rpm
mv .git .git-rpm

%build
echo build start time is `date`, diskspace: `df -h . | tail -n 1`
echo building localizations: %{langpack_langs}

# path to external tarballs
EXTSRCDIR=`dirname %{SOURCE0}`

# KDE bits
export QT4DIR=%{qt4dir}
export KDE4DIR=%{_kde_prefix}
export PATH=$QT4DIR/bin:$PATH

#use the RPM_OPT_FLAGS but remove the OOo overridden ones
for i in $RPM_OPT_FLAGS; do
        case "$i" in
                -pipe|-Wall|-Werror*|-g|-fexceptions) continue;;
        esac
        ARCH_FLAGS="$ARCH_FLAGS $i"
done
export ARCH_FLAGS
# Do not compile LO with -fomit-frame-pointer flags, or it will crash at start.
export CFLAGS="$(echo $ARCH_FLAGS | sed -e 's/-fomit-frame-pointer//')"
export CXXFLAGS="$(echo $ARCH_FLAGS | sed -e 's/-fomit-frame-pointer//')"
export FFLAGS="$(echo $FFLAGS | sed -e 's/-fomit-frame-pointer//')"

%if %{build_kde}
%define distrooptions --enable-kde4 --disable-gstreamer-0-10 --enable-gstreamer-1.0 --with-system-mythes --with-system-opencollada
%else
%define distrooptions --disable-kde4 --disable-gstreamer-0-10 --enable-gstreamer-1.0 --with-system-mythes --with-system-opencollada
%endif
export OPENCOLLADA_CFLAGS='-I/usr/include/COLLADABaseUtils -I/usr/include/COLLADAFramework -I/usr/include/COLLADASaxFrameworkLoader -I/usr/include/GeneratedSaxParser'
export OPENCOLLADA_LIBS='-lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser'

%if %{with langpacks}
%define with_lang --with-lang='%{langpack_langs}'
%endif

aclocal -I m4
autoconf

# TODO: enable coinmp?
# avoid running autogen.sh on make
touch autogen.lastrun

%configure2_5x \
 %vendoroption \
 %{?_smp_mflags:--with-parallelism="`getconf _NPROCESSORS_ONLN`"} \
 %{?with_lang} \
 --disable-coinmp \
 --disable-fetch-external \
 --disable-gnome-vfs \
 --disable-openssl \
 --enable-eot \
 --enable-evolution2 \
 --enable-ext-nlpsolver \
 --enable-ext-wiki-publisher \
 --enable-release-build \
 --enable-scripting-beanshell \
 --enable-scripting-javascript \
 --enable-symbols \
 --with-build-version="%{version}-%{release}" \
 --with-external-dict-dir=/usr/share/myspell \
 --with-external-tar="$EXTSRCDIR" \
 --with-help \
 --with-system-dicts  \
 --with-system-libs \
 --with-system-ucpp \
 --without-fonts \
 --without-ppds \
 --without-system-npapi-headers \
 --with-gdrive-client-secret="GYWrDtzyZQZ0_g5YoBCC6F0I" \
 --with-gdrive-client-id="457862564325.apps.googleusercontent.com" \
%if %{build_gtk3}
 --enable-gtk3 \
%endif
%if 0%{?system_boost}
%else
  --without-system-boost \
%endif
%if %with_mergedlibs
 --enable-mergelibs \
%endif
 %{distrooptions}

ulimit -c unlimited
make VERBOSE=true

#generate the icons and mime type stuff
export DESTDIR=../output
export KDEMAINDIR=/usr
export GNOMEDIR=/usr
export GNOME_MIME_THEME=hicolor
export PREFIXDIR=/usr
# TODO use empty variables? Should make the renaming hacks in %%install
# unnecessary.
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION WORKDIR
pushd $WORKDIR/CustomTarget/sysui/share/libreoffice
./create_tree.sh
popd
mkdir $WORKDIR/os-integration
cp -pr $WORKDIR/CustomTarget/sysui/share/output/usr/share/* $WORKDIR/os-integration

%if %{with smallbuild}
# remove the biggest offenders
# NOTE: not removing complete LinkTarget, as some libs are needed for smoketest
rm -rf $WORKDIR/CxxObject $WORKDIR/GenCxxObject $WORKDIR/HelpTarget $WORKDIR/LinkTarget/CppunitTest
%endif

echo build end time is `date`, diskspace: `df -h . | tail -n 1`

%install
# TODO investigate use of make distro-pack-install
#figure out the icon version
. ./bin/get_config_variables PRODUCTVERSIONSHORT PRODUCTVERSION SRCDIR WORKDIR
export PRODUCTVERSIONSHORT PRODUCTVERSION

# installation

install -m 0755 -d %{buildroot}%{instdir}
if ! make instsetoo_native PKGFORMAT=installed EPM=not-used-but-must-be-set; then
    echo - ---dump log start---
    cat $ WORKDIR/installation/LibreOffice/installed/logging/en-US/log_*_en-US.log
    echo - ---dump log end---
    echo - ---dump log start -- SDK---
    cat $ WORKDIR/installation/LibreOffice_SDK/installed/logging/en-US/log_*_en-US.log
    echo - ---dump log end -- SDK---
    echo - ---dump log start -- languagepacks---
    cat $ WORKDIR/installation/LibreOffice_languagepack/installed/logging/en-US/log_*_en-US.log
    echo - ---dump log end -- languagepacks---
    exit 1
fi
install -m 0755 -d %{buildroot}%{baseinstdir}
mv $WORKDIR/installation/LibreOffice/installed/install/en-US/* %{buildroot}%{baseinstdir}
%if %{with langpacks}
for langpack in $WORKDIR/installation/LibreOffice_languagepack/installed/install/*; do
  [ `basename $langpack` = log ] && continue
  cp -rp $langpack/* %{buildroot}%{baseinstdir}
  rm -rf $langpack
done
%endif
mv $WORKDIR/installation/LibreOffice_SDK/installed/install/en-US/sdk %{buildroot}%{sdkinstdir}
chmod -R +w %{buildroot}%{baseinstdir}

# postprocessing and tweaks

# The installer currently sets UserInstallation to
# $ORIGIN/../libreoffice/4, which is of course total nonsense. Because I
# have no inclination to crawl through mountains of perl code to figure out
# where it comes from, I am just going to replace it by a sensible
# value here.
sed -i -e '/UserInstallation/s@\$ORIGIN/..@$SYSUSERCONFIG@' %{buildroot}%{baseinstdir}/program/bootstraprc

#configure sdk
pushd %{buildroot}%{sdkinstdir}
    sed -e "s,@OO_SDK_NAME@,sdk," \
        -e "s,@OO_SDK_HOME@,%{sdkinstdir}," \
        -e "s,@OFFICE_HOME@,%{baseinstdir}," \
        -e "s,@OO_SDK_URE_HOME@,%{ureinstdir}," \
        -e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \
        -e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \
        -e "s,@OO_SDK_CPP_HOME@,/usr/bin," \
        -e "s,@OO_SDK_CC_55_OR_HIGHER@,," \
        -e "s,@OO_SDK_JAVA_HOME@,$JAVA_HOME," \
        -e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \
        -e "s,@SDK_AUTO_DEPLOYMENT@,NO," \
        setsdkenv_unix.sh.in > setsdkenv_unix.sh
    chmod 755 setsdkenv_unix.sh
    # we don't want to install the input file
    rm -f setsdkenv_unix.sh.in
# TODO: is this still necessary?
#fix permissions
    find examples -type f -exec chmod -x {} \;
popd

#ensure a template dir for each lang
pushd %{buildroot}%{baseinstdir}/share/template
for I in %{langpack_langs}; do
    mkdir -p $I
done
popd

#Set some aliases to canonical autocorrect language files for locales with matching languages
pushd %{buildroot}%{baseinstdir}/share/autocorr

%make_autocorr_aliases -l en-GB en-AG en-AU en-BS en-BW en-BZ en-CA en-DK en-GH en-HK en-IE en-IN en-JM en-NG en-NZ en-SG en-TT
%make_autocorr_aliases -l en-US en-PH
#en-ZA exists and has a good autocorrect file with two or three extras that make sense for 
#neighbouring english speaking territories
%make_autocorr_aliases -l en-ZA en-NA en-ZW
%if %{with langpacks}
%make_autocorr_aliases -l af-ZA af-NA
%make_autocorr_aliases -l nl-NL nl-AW
%make_autocorr_aliases -l sv-SE sv-FI
%else
rm -f acor_[a-df-z]*.dat acor_e[su]*.dat
%endif
popd
#rhbz#484055 make these shared across multiple applications
install -m 0755 -d %{buildroot}%{_datadir}
mv -f %{buildroot}%{baseinstdir}/share/autocorr %{buildroot}%{_datadir}/autocorr
chmod 755 %{buildroot}%{_datadir}/autocorr
ln -s %{_datadir}/autocorr %{buildroot}%{baseinstdir}/share/autocorr

#remove it in case we didn't build with gcj
rm -f %{buildroot}%{baseinstdir}/program/classes/sandbox.jar

#remove dummy .dat files
rm -f %{buildroot}%{baseinstdir}/program/root?.dat

#set standard permissions for rpmlint
find %{buildroot}%{baseinstdir} -exec chmod +w {} \;
find %{buildroot}%{baseinstdir} -type d -exec chmod 0755 {} \;

# move python bits into site-packages
install -m 0755 -d %{buildroot}%{python3_sitearch}
pushd %{buildroot}%{python3_sitearch}
echo "import sys, os" > uno.py
echo "sys.path.append('%{baseinstdir}/program')" >> uno.py
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{baseinstdir}/program/fundamentalrc')" >> uno.py
cat %{buildroot}%{baseinstdir}/program/uno.py >> uno.py
rm -f %{buildroot}%{baseinstdir}/program/uno.py*
mv -f %{buildroot}%{baseinstdir}/program/unohelper.py* .
mv -f %{buildroot}%{baseinstdir}/program/officehelper.py* .
popd

# rhbz#477435 package opensymbol separately
pushd %{buildroot}%{baseinstdir}/share/fonts/truetype
install -d -m 0755 %{buildroot}%{_fontdir}
install -p -m 0644 *.ttf %{buildroot}%{_fontdir}
popd
rm -rf %{buildroot}%{baseinstdir}/share/fonts

#ensure that no sneaky un-prelinkable, un-fpic or non executable shared libs 
#have snuck through
pic=0
executable=0
for foo in `find %{buildroot}%{instdir} -name "*" -exec file {} \;| grep ": ELF" | cut -d: -f 1` ; do
    chmod +wx $foo
    ls -asl $foo
    result=`readelf -d $foo | grep TEXTREL` || true
    if [ "$result" != "" ]; then
        echo "TEXTREL Warning: $foo is b0rked (-fpic missing)"
        pic=1
    fi
    result=`readelf -l $foo | grep GNU_STACK | grep RWE` || true
    if [ "$result" != "" ]; then
        echo "GNU_STACK Warning: $foo is b0rked (-noexecstack missing)"
        executable=1
    fi
done
if [ $pic == 1 ]; then false; fi
if [ $executable == 1 ]; then false; fi

#make up some /usr/bin scripts
install -m 0755 -d %{buildroot}%{_bindir}

pushd %{buildroot}%{_bindir}
echo \#\!/bin/sh > ooffice
echo exec libreoffice \"\$@\" >> ooffice
chmod a+x ooffice

echo \#\!/bin/sh > ooviewdoc
echo exec libreoffice --view \"\$@\" >> ooviewdoc
chmod a+x ooviewdoc

for app in base calc draw impress math writer; do
    echo \#\!/bin/sh > oo$app
    echo exec libreoffice --$app \"\$@\" >> oo$app
    chmod a+x oo$app
done

sed -e s/LAUNCHER/unopkg/g -e s/BRAND/libreoffice/g %{SOURCE4} > unopkg
chmod a+x unopkg

sed -e s/LAUNCHER/soffice/g -e s/BRAND/libreoffice/g %{SOURCE4} > libreoffice
chmod a+x libreoffice

# rhbz#499474 provide a /usr/bin/soffice for .recently-used.xbel
ln -s %{baseinstdir}/program/soffice soffice
# rhbz#499474 provide a /usr/bin/openoffice.org for backwards compat
ln -s libreoffice openoffice.org
popd

pushd %{buildroot}%{baseinstdir}/share/xdg/
chmod u+w *.desktop
ICONVERSION=`echo $PRODUCTVERSION | sed -e 's/\.//'`
for file in *.desktop; do
    # rhbz#156677 remove the version from Name=
    # rhbz#156067 don't version the icons
    sed -i -e "s/ *$PRODUCTVERSION//g" \
	-e "s/$ICONVERSION//g" \
        -e "s/$PRODUCTVERSIONSHORT//g" \
        $file
done
# rhbz#156677 / rhbz#186515 do not show math and startcenter
#sed -i -e /NoDisplay/s/false/true/ math.desktop startcenter.desktop
# relocate the .desktop and icon files
install -m 0755 -d %{buildroot}%{_datadir}/applications
for app in base calc draw impress math startcenter writer xsltfilter; do
    sed -i -e 's/\${UNIXBASISROOTNAME}/%{name}/' $app.desktop
    desktop-file-validate $app.desktop
    install -m 0644 -p $app.desktop %{buildroot}%{_datadir}/applications/libreoffice-$app.desktop
done
popd

%if 0
# desktop files
desktop-file-install --vendor="" \
  --add-mime-type="application/vnd.ms-works;application/x-msworks-wp;zz-application/zz-winassoc-wps" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*writer*desktop
%endif

# disabled: web template
for i in calc draw impress math writer; do
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-CrossDesktop" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*${i}*desktop
done

%if 0
## MS OOXML (#36465)
desktop-file-install \
  --add-mime-type="application/vnd.openxmlformats-officedocument.wordprocessingml.document" \
  --add-mime-type="application/vnd.ms-word.document.macroEnabled.12" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/writer*desktop

desktop-file-install \
  --add-mime-type="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" \
  --add-mime-type="application/vnd.ms-excel.sheet.macroEnabled.12" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/calc*desktop

desktop-file-install \
  --add-mime-type="application/vnd.openxmlformats-officedocument.presentationml.presentation" \
  --add-mime-type="application/vnd.ms-powerpoint.presentation.macroEnabled.12" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/impress*desktop
%endif

for app in base calc draw impress math writer startcenter ; do
        sed -i -e "s/Icon=$app/Icon=libreoffice-$app/g" %{buildroot}%_datadir/applications/%name-${app}.desktop
done

pushd $WORKDIR/os-integration
#get rid of the gnome icons and other unneeded files
rm -rf icons/gnome applications application-registry

#relocate the rest of them
# rhbz#901346 512x512 icons are not used by anything
for icon in `find icons -path '*/512x512' -prune -o -type f -print`; do
    install -m 0755 -d %{buildroot}%{_datadir}/`dirname $icon`
    install -m 0644 -p $icon %{buildroot}%{_datadir}/`echo $icon | sed -e s@libreoffice$ICONVERSION-@libreoffice-@ | sed -e s@libreoffice$PRODUCTVERSION-@libreoffice-@`
done
install -m 0755 -d %{buildroot}%{_datadir}/mime-info
install -m 0644 -p mime-info/libreoffice$PRODUCTVERSION.keys %{buildroot}%{_datadir}/mime-info/libreoffice.keys
install -m 0644 -p mime-info/libreoffice$PRODUCTVERSION.mime %{buildroot}%{_datadir}/mime-info/libreoffice.mime
#add our mime-types, e.g. for .oxt extensions
install -m 0755 -d %{buildroot}%{_datadir}/mime/packages
install -m 0644 -p mime/packages/libreoffice$PRODUCTVERSION.xml %{buildroot}%{_datadir}/mime/packages/libreoffice.xml
popd

rm -rf %{buildroot}%{baseinstdir}/readmes
rm -rf %{buildroot}%{baseinstdir}/licenses

# to-do, remove this in libreoffice 4.4 when --without-ppds is gone, it'll do the right thing on its own then
install -m 0755 -d %{buildroot}%{baseinstdir}/share/psprint/driver
install -m 0644 -p vcl/unx/generic/printer/configuration/ppds/SGENPRT.PS %{buildroot}%{baseinstdir}/share/psprint/driver/SGENPRT.PS

# rhbz#452385 to auto have postgres in classpath if subsequently installed
sed -i -e "s#URE_MORE_JAVA_CLASSPATH_URLS.*#& file:///usr/share/java/postgresql-jdbc.jar#" %{buildroot}%{baseinstdir}/program/fundamentalrc
# Br translation doesn't have any help
# Better use fr ones for now ( and check if this is still valid for next update )
pushd %buildroot%_libdir/libreoffice/help
ln -s fr br
popd

# move glade catalog to system glade dir
install -m 0755 -d %{buildroot}%{_datadir}/glade3/catalogs
mv %{buildroot}%{baseinstdir}/share/glade/libreoffice-catalog.xml %{buildroot}%{_datadir}/glade3/catalogs

# rhbz#1049543 install appdata
install -m 0755 -d %{buildroot}%{_datadir}/appdata
install -m 0644 -p sysui/desktop/appstream-appdata/*.appdata.xml %{buildroot}%{_datadir}/appdata

# rhbz#1215800 install symbolic icons
install -m 0755 -d %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
install -m 0644 -p %{SOURCE42} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
install -m 0644 -p %{SOURCE43} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
install -m 0644 -p %{SOURCE44} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
install -m 0644 -p %{SOURCE45} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
install -m 0644 -p %{SOURCE46} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
install -m 0644 -p %{SOURCE47} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
install -m 0644 -p %{SOURCE48} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps

# install man pages
install -m 0755 -d %{buildroot}%{_mandir}/man1
install -m 0644 -p sysui/desktop/man/*.1 %{buildroot}%{_mandir}/man1
for app in oobase oocalc oodraw ooffice ooimpress oomath ooviewdoc oowriter openoffice.org soffice; do
    echo '.so man1/libreoffice.1' > $app.1
    install -m 0644 -p $app.1 %{buildroot}%{_mandir}/man1
done

%if 0%{?_enable_debug_packages}
export DESTDIR=%{buildroot}
make cmd cmd="install-gdb-printers -a %{_datadir}/gdb/auto-load%{baseinstdir} -c -i %{baseinstdir} -p %{_datadir}/libreoffice/gdb"
%endif

cat> %{buildroot}%_bindir/libreoffice-gtk3 <<EOF
#!/bin/sh
SAL_USE_VCLPLUGIN=gtk3 exec oowriter
EOF
chmod +x %{buildroot}%_bindir/libreoffice-gtk3

%check
exit 0
ulimit -c unlimited
unset WITH_LANG
# work around flawed accessibility check
export JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY="1"
# TODO is the timeout still needed?
# FIXME find what is the problem
# timeout -k 2m 2h make smoketest.subsequentcheck VERBOSE=t

%files

%files filters

%files core
%dir %{baseinstdir}
%dir %{baseinstdir}/help
%docdir %{baseinstdir}/help/en-US
%dir %{baseinstdir}/help/en-US
%{baseinstdir}/help/en-US/default.css
%{baseinstdir}/help/en-US/err.html
%{baseinstdir}/help/en-US/highcontrast1.css
%{baseinstdir}/help/en-US/highcontrast2.css
%{baseinstdir}/help/en-US/highcontrastblack.css
%{baseinstdir}/help/en-US/highcontrastwhite.css
%{baseinstdir}/help/en-US/sbasic.*
%{baseinstdir}/help/en-US/schart.*
%{baseinstdir}/help/en-US/shared.*
%{baseinstdir}/help/idxcaption.xsl
%{baseinstdir}/help/idxcontent.xsl
%{baseinstdir}/help/main_transform.xsl
%{baseinstdir}/presets
%dir %{baseinstdir}/program
%{baseinstdir}/program/libbasprovlo.so
%{baseinstdir}/program/libcairocanvaslo.so
%{baseinstdir}/program/libcanvasfactorylo.so
%dir %{baseinstdir}/program/classes
%{baseinstdir}/program/classes/commonwizards.jar
%{baseinstdir}/program/classes/form.jar
%{baseinstdir}/program/classes/query.jar
%{baseinstdir}/program/classes/report.jar
%{baseinstdir}/program/classes/ScriptFramework.jar
%{baseinstdir}/program/classes/ScriptProviderForJava.jar
%{baseinstdir}/program/classes/table.jar
%{baseinstdir}/program/classes/unoil.jar
%{baseinstdir}/program/classes/XMergeBridge.jar
%{baseinstdir}/program/classes/xmerge.jar
%{baseinstdir}/program/libcmdmaillo.so
%{baseinstdir}/program/libdeployment.so
%{baseinstdir}/program/libdeploymentgui.so
%{baseinstdir}/program/libdlgprovlo.so
%{baseinstdir}/program/libexpwraplo.so
%{baseinstdir}/program/flat_logo.svg
%{baseinstdir}/program/libfps_officelo.so
%{baseinstdir}/program/gdbtrace
%{baseinstdir}/program/gengal
%{baseinstdir}/program/gengal.bin
%{baseinstdir}/program/gnome-open-url
%{baseinstdir}/program/libi18nsearchlo.so
%{baseinstdir}/program/libldapbe2lo.so
%{baseinstdir}/program/libacclo.so
%{baseinstdir}/program/libavmedia*.so
%{baseinstdir}/program/libbasebmplo.so
%{baseinstdir}/program/libbasctllo.so
%{baseinstdir}/program/libbiblo.so
%{baseinstdir}/program/libcached1.so
%{baseinstdir}/program/libcanvastoolslo.so
%{baseinstdir}/program/libchart*lo.so
%{baseinstdir}/program/libcollator_data.so
%{baseinstdir}/program/libcppcanvaslo.so
%{baseinstdir}/program/libctllo.so
%{baseinstdir}/program/libcuilo.so
%{baseinstdir}/program/libdbalo.so
%{baseinstdir}/program/libdbaselo.so
%{baseinstdir}/program/libdbaxmllo.so
%{baseinstdir}/program/libdbmmlo.so
%{baseinstdir}/program/libdbpool2.so
%{baseinstdir}/program/libdbtoolslo.so
%{baseinstdir}/program/libdbulo.so
%{baseinstdir}/program/libdeploymentmisclo.so
%{baseinstdir}/program/libdesktop_detectorlo.so
%{baseinstdir}/program/libdict_ja.so
%{baseinstdir}/program/libdict_zh.so
%{baseinstdir}/program/libdrawinglayerlo.so
%{baseinstdir}/program/libeditenglo.so
%{baseinstdir}/program/libembobj.so
%{baseinstdir}/program/libemboleobj.so
%{baseinstdir}/program/libevoab*.so
%{baseinstdir}/program/libevtattlo.so
%{baseinstdir}/program/libegilo.so
%{baseinstdir}/program/libemelo.so
%{baseinstdir}/program/libepblo.so
%{baseinstdir}/program/libepglo.so
%{baseinstdir}/program/libepplo.so
%{baseinstdir}/program/libepslo.so
%{baseinstdir}/program/libeptlo.so
%{baseinstdir}/program/liberalo.so
%{baseinstdir}/program/libetilo.so
%{baseinstdir}/program/libexplo.so
%{baseinstdir}/program/libfirebird_sdbclo.so
%{baseinstdir}/program/libicdlo.so
%{baseinstdir}/program/libicglo.so
%{baseinstdir}/program/libidxlo.so
%{baseinstdir}/program/libimelo.so
%{baseinstdir}/program/libindex_data.so
%{baseinstdir}/program/libipblo.so
%{baseinstdir}/program/libipdlo.so
%{baseinstdir}/program/libipslo.so
%{baseinstdir}/program/libiptlo.so
%{baseinstdir}/program/libipxlo.so
%{baseinstdir}/program/libiralo.so
%{baseinstdir}/program/libitglo.so
%{baseinstdir}/program/libitilo.so
%{baseinstdir}/program/libfilelo.so
%{baseinstdir}/program/libfilterconfiglo.so
%{baseinstdir}/program/libflatlo.so
%{baseinstdir}/program/libfrmlo.so
%{baseinstdir}/program/libguesslanglo.so
%{baseinstdir}/program/libhelplinkerlo.so
%{baseinstdir}/program/libhyphenlo.so
%{baseinstdir}/program/libjdbclo.so
# TODO: move elsewhere?
%{baseinstdir}/program/liblibreofficekitgtk.so
%{baseinstdir}/program/liblnglo.so
%{baseinstdir}/program/libloglo.so
%{baseinstdir}/program/liblocaledata_en.so
%{baseinstdir}/program/liblocaledata_es.so
%{baseinstdir}/program/liblocaledata_euro.so
%{baseinstdir}/program/liblocaledata_others.so
%{baseinstdir}/program/libmcnttype.so
%{baseinstdir}/program/libmorklo.so
%{baseinstdir}/program/libmozbootstraplo.so
%{baseinstdir}/program/libmsfilterlo.so
%{baseinstdir}/program/libmtfrendererlo.so
%{baseinstdir}/program/libmysqllo.so
%{baseinstdir}/program/libodbclo.so
%{baseinstdir}/program/liboglcanvaslo.so
%{baseinstdir}/program/liboffacclo.so
%{baseinstdir}/program/libooxlo.so
%{baseinstdir}/program/libpcrlo.so
%{baseinstdir}/program/libpdffilterlo.so
%{baseinstdir}/program/libpllo.so
%{baseinstdir}/program/libprotocolhandlerlo.so
%{baseinstdir}/program/libqstart_gtklo.so
%{baseinstdir}/program/librecentfile.so
%{baseinstdir}/program/libreslo.so
%{baseinstdir}/program/libsaxlo.so
%{baseinstdir}/program/libscnlo.so
%{baseinstdir}/program/libscriptframe.so
%{baseinstdir}/program/libsdlo.so
%{baseinstdir}/program/libsdfiltlo.so
%{baseinstdir}/program/libsdbc2.so
%{baseinstdir}/program/libsdbtlo.so
%{baseinstdir}/program/libsddlo.so
%{baseinstdir}/program/libsduilo.so
%{baseinstdir}/program/libspelllo.so
%{baseinstdir}/program/libsrtrs1.so
%{baseinstdir}/program/libstoragefdlo.so
%{baseinstdir}/program/libsvgiolo.so
%{baseinstdir}/program/libsvxlo.so
%{baseinstdir}/program/libsvxcorelo.so
%{baseinstdir}/program/libswdlo.so
%{baseinstdir}/program/libswlo.so
%{baseinstdir}/program/libtextconv_dict.so
%{baseinstdir}/program/libtextconversiondlgslo.so
%{baseinstdir}/program/libtextfdlo.so
%{baseinstdir}/program/libodfflatxmllo.so
# TODO: shouldn't it have lo suffix?
%{baseinstdir}/program/libucbhelper.so
%{baseinstdir}/program/libucpchelp1.so
%{baseinstdir}/program/libucpdav1.so
%{baseinstdir}/program/libucpftp1.so
%{baseinstdir}/program/libucphier1.so
%{baseinstdir}/program/libucppkg1.so
%{baseinstdir}/program/libunordflo.so
%{baseinstdir}/program/libunopkgapp.so
%{baseinstdir}/program/libunoxmllo.so
%{baseinstdir}/program/libuuilo.so
%{baseinstdir}/program/libvbahelperlo.so
%{baseinstdir}/program/libvclplug_genlo.so
%{baseinstdir}/program/libvclplug_gtklo.so
%if %{build_gtk3}
%{baseinstdir}/program/libvclplug_gtk3lo.so
%endif
%{baseinstdir}/program/libvclplug_svplo.so
%{baseinstdir}/program/libxmlfalo.so
%{baseinstdir}/program/libxmlfdlo.so
%{baseinstdir}/program/libxoflo.so
%{baseinstdir}/program/libxsec_fw.so
%{baseinstdir}/program/libxsec_xmlsec.so
%{baseinstdir}/program/libxsltdlglo.so
%{baseinstdir}/program/libxsltfilterlo.so
%{baseinstdir}/program/libxstor.so
# TODO how useful this is ?
%{baseinstdir}/program/liblosessioninstalllo.so
%{baseinstdir}/program/libmigrationoo2lo.so
%{baseinstdir}/program/libmigrationoo3lo.so
%{baseinstdir}/program/libmsformslo.so
%dir %{baseinstdir}/program/opengl
%{baseinstdir}/program/opengl/areaScaleFragmentShader.glsl
%{baseinstdir}/program/opengl/areaScaleFastFragmentShader.glsl
%{baseinstdir}/program/opengl/backgroundFragmentShader.glsl
%{baseinstdir}/program/opengl/backgroundVertexShader.glsl
%{baseinstdir}/program/opengl/blendedTextureFragmentShader.glsl
%{baseinstdir}/program/opengl/blendedTextureVertexShader.glsl
%{baseinstdir}/program/opengl/commonFragmentShader.glsl
%{baseinstdir}/program/opengl/commonVertexShader.glsl
%{baseinstdir}/program/opengl/convolutionFragmentShader.glsl
%{baseinstdir}/program/opengl/debugFragmentShader.glsl
%{baseinstdir}/program/opengl/debugVertexShader.glsl
%{baseinstdir}/program/opengl/diffTextureFragmentShader.glsl
%{baseinstdir}/program/opengl/dumbVertexShader.glsl
%{baseinstdir}/program/opengl/dummyVertexShader.glsl
%{baseinstdir}/program/opengl/linearGradientFragmentShader.glsl
%{baseinstdir}/program/opengl/linearMultiColorGradientFragmentShader.glsl
%{baseinstdir}/program/opengl/linearTwoColorGradientFragmentShader.glsl
%{baseinstdir}/program/opengl/maskedTextureFragmentShader.glsl
%{baseinstdir}/program/opengl/maskFragmentShader.glsl
%{baseinstdir}/program/opengl/pickingFragmentShader.glsl
%{baseinstdir}/program/opengl/pickingVertexShader.glsl
%{baseinstdir}/program/opengl/radialGradientFragmentShader.glsl
%{baseinstdir}/program/opengl/radialMultiColorGradientFragmentShader.glsl
%{baseinstdir}/program/opengl/radialTwoColorGradientFragmentShader.glsl
%{baseinstdir}/program/opengl/rectangularMultiColorGradientFragmentShader.glsl
%{baseinstdir}/program/opengl/rectangularTwoColorGradientFragmentShader.glsl
%{baseinstdir}/program/opengl/renderTextureFragmentShader.glsl
%{baseinstdir}/program/opengl/renderTextureVertexShader.glsl
%{baseinstdir}/program/opengl/replaceColorFragmentShader.glsl
%{baseinstdir}/program/opengl/screenTextFragmentShader.glsl
%{baseinstdir}/program/opengl/screenTextVertexShader.glsl
%{baseinstdir}/program/opengl/shape3DFragmentShader.glsl
%{baseinstdir}/program/opengl/shape3DFragmentShaderBatch.glsl
%{baseinstdir}/program/opengl/shape3DFragmentShaderBatchScroll.glsl
%{baseinstdir}/program/opengl/shape3DFragmentShaderV300.glsl
%{baseinstdir}/program/opengl/shape3DVertexShader.glsl
%{baseinstdir}/program/opengl/shape3DVertexShaderBatch.glsl
%{baseinstdir}/program/opengl/shape3DVertexShaderBatchScroll.glsl
%{baseinstdir}/program/opengl/shape3DVertexShaderV300.glsl
%{baseinstdir}/program/opengl/solidFragmentShader.glsl
%{baseinstdir}/program/opengl/symbolFragmentShader.glsl
%{baseinstdir}/program/opengl/symbolVertexShader.glsl
%{baseinstdir}/program/opengl/textFragmentShader.glsl
%{baseinstdir}/program/opengl/textFragmentShaderBatch.glsl
%{baseinstdir}/program/opengl/textVertexShader.glsl
%{baseinstdir}/program/opengl/textVertexShaderBatch.glsl
%{baseinstdir}/program/opengl/textureFragmentShader.glsl
%{baseinstdir}/program/opengl/textureVertexShader.glsl
%{baseinstdir}/program/opengl/transformedTextureVertexShader.glsl
%{baseinstdir}/program/open-url
%{baseinstdir}/program/types/offapi.rdb
%{baseinstdir}/program/libpasswordcontainerlo.so
%{baseinstdir}/program/pagein-common
%{baseinstdir}/program/pluginapp.bin
%dir %{baseinstdir}/program/resource
%{baseinstdir}/program/resource/avmediaen-US.res
%{baseinstdir}/program/resource/accen-US.res
%{baseinstdir}/program/resource/basctlen-US.res
%{baseinstdir}/program/resource/biben-US.res
%{baseinstdir}/program/resource/chartcontrolleren-US.res
%{baseinstdir}/program/resource/cuien-US.res
%{baseinstdir}/program/resource/dbaen-US.res
%{baseinstdir}/program/resource/dbmmen-US.res
%{baseinstdir}/program/resource/dbuen-US.res
%{baseinstdir}/program/resource/dbwen-US.res
%{baseinstdir}/program/resource/deploymenten-US.res
%{baseinstdir}/program/resource/deploymentguien-US.res
%{baseinstdir}/program/resource/dkten-US.res
%{baseinstdir}/program/resource/editengen-US.res
%{baseinstdir}/program/resource/epsen-US.res
%{baseinstdir}/program/resource/euren-US.res
%{baseinstdir}/program/resource/fps_officeen-US.res
%{baseinstdir}/program/resource/frmen-US.res
%{baseinstdir}/program/resource/fween-US.res
%{baseinstdir}/program/resource/galen-US.res
%{baseinstdir}/program/resource/impen-US.res
%{baseinstdir}/program/resource/ofaen-US.res
%{baseinstdir}/program/resource/pcren-US.res
%{baseinstdir}/program/resource/pdffilteren-US.res
%{baseinstdir}/program/resource/sben-US.res
%{baseinstdir}/program/resource/scnen-US.res
%{baseinstdir}/program/resource/sden-US.res
%{baseinstdir}/program/resource/sfxen-US.res
%{baseinstdir}/program/resource/sdbten-US.res
%{baseinstdir}/program/resource/svlen-US.res
%{baseinstdir}/program/resource/svten-US.res
%{baseinstdir}/program/resource/svxen-US.res
%{baseinstdir}/program/resource/swen-US.res
%{baseinstdir}/program/resource/tplen-US.res
%{baseinstdir}/program/resource/uuien-US.res
%{baseinstdir}/program/resource/upden-US.res
%{baseinstdir}/program/resource/vclen-US.res
%{baseinstdir}/program/resource/wzien-US.res
%{baseinstdir}/program/resource/xmlsecen-US.res
%{baseinstdir}/program/resource/xsltdlgen-US.res
%{baseinstdir}/program/senddoc
%dir %{baseinstdir}/program/services
%{baseinstdir}/program/services/services.rdb
%{baseinstdir}/program/libsimplecanvaslo.so
%{baseinstdir}/program/libslideshowlo.so
%{baseinstdir}/program/libsofficeapp.so
%{baseinstdir}/program/libstringresourcelo.so
%{baseinstdir}/program/libsysshlo.so
%{baseinstdir}/program/libucpcmis1lo.so
%{baseinstdir}/program/libucpexpand1lo.so
%{baseinstdir}/program/libucpextlo.so
%{baseinstdir}/program/libucptdoc1lo.so
%{baseinstdir}/program/lounorc
%{baseinstdir}/program/libupdatefeedlo.so
%{baseinstdir}/ure-link
%{baseinstdir}/program/uri-encode
%{baseinstdir}/program/libvbaeventslo.so
%{baseinstdir}/program/libvclcanvaslo.so
%{baseinstdir}/program/versionrc
%{baseinstdir}/program/xid-fullscreen-on-all-monitors
%dir %{baseinstdir}/share
%dir %{baseinstdir}/share/Scripts
%{baseinstdir}/share/Scripts/java
%dir %{baseinstdir}/share/autotext
%dir %{_datadir}/autocorr
%{baseinstdir}/share/autocorr
%{baseinstdir}/share/autotext/en-US
%{baseinstdir}/share/basic
%dir %{baseinstdir}/share/config
%{baseinstdir}/share/config/images_crystal.zip
%{baseinstdir}/share/config/images_galaxy.zip
%{baseinstdir}/share/config/images_hicontrast.zip
%{baseinstdir}/share/config/images_oxygen.zip
%{baseinstdir}/share/config/images_sifr.zip
%{baseinstdir}/share/config/images_tango.zip
%dir %{baseinstdir}/share/config/soffice.cfg
%{baseinstdir}/share/config/soffice.cfg/modules
%if %{with langpacks}
# UI translations go into langpacks
%exclude %{baseinstdir}/share/config/soffice.cfg/modules/*/ui/res
%endif
%{baseinstdir}/share/config/soffice.cfg/*/ui
%if %{with langpacks}
# UI translations go into langpacks
%exclude %{baseinstdir}/share/config/soffice.cfg/*/ui/res
%endif
%{baseinstdir}/share/config/webcast
%{baseinstdir}/share/config/wizard
%dir %{baseinstdir}/share/dtd
%{baseinstdir}/share/dtd/officedocument
%{baseinstdir}/share/gallery
%dir %{baseinstdir}/share/labels
%{baseinstdir}/share/labels/labels.xml
%dir %{baseinstdir}/share/psprint
%config %{baseinstdir}/share/psprint/psprint.conf
%{baseinstdir}/share/palette
%{baseinstdir}/share/psprint/driver
%dir %{baseinstdir}/share/registry
%{baseinstdir}/share/registry/gnome.xcd
%{baseinstdir}/share/registry/lingucomponent.xcd
%{baseinstdir}/share/registry/main.xcd
%{baseinstdir}/share/registry/oo-ad-ldap.xcd.sample
%{baseinstdir}/share/registry/oo-ldap.xcd.sample
%{baseinstdir}/share/registry/Langpack-en-US.xcd
%dir %{baseinstdir}/share/registry/res
%{baseinstdir}/share/registry/res/fcfg_langpack_en-US.xcd
%dir %{baseinstdir}/share/template
%{baseinstdir}/share/template/en-US
%dir %{baseinstdir}/share/template/common
%{baseinstdir}/share/template/common/internal
%{baseinstdir}/share/template/common/layout
%{baseinstdir}/share/template/common/officorr
%{baseinstdir}/share/template/common/offimisc
%{baseinstdir}/share/template/common/personal
%{baseinstdir}/share/template/common/presnt
%{baseinstdir}/share/template/common/wizard
%{baseinstdir}/share/template/wizard
%dir %{baseinstdir}/share/wordbook
%{baseinstdir}/share/wordbook/en-GB.dic
%{baseinstdir}/share/wordbook/en-US.dic
%{baseinstdir}/share/wordbook/technical.dic
%{baseinstdir}/program/liblnthlo.so
%{_bindir}/unopkg
%{_mandir}/man1/unopkg.1*
#icons and mime
%{_datadir}/icons/*/*/*/libreoffice*
%{_datadir}/mime-info/libreoffice.*
%{baseinstdir}/program/libxmlsecurity.so
%{_datadir}/mime/packages/libreoffice.xml
%{baseinstdir}/program/libconfigmgrlo.so
%{baseinstdir}/program/libdesktopbe1lo.so
%{baseinstdir}/program/libfsstoragelo.so
%{baseinstdir}/program/libgconfbe1lo.so
%{baseinstdir}/program/libi18npoollo.so
%{baseinstdir}/program/libbasegfxlo.so
# TODO: shouldn't it have lo suffix?
%{baseinstdir}/program/libcomphelper.so
%{baseinstdir}/program/libfwelo.so
%{baseinstdir}/program/libfwilo.so
%{baseinstdir}/program/libfwklo.so
%{baseinstdir}/program/libfwllo.so
%{baseinstdir}/program/libfwmlo.so
%{baseinstdir}/program/libi18nlangtag.so
# TODO: shouldn't it have lo suffix?
%{baseinstdir}/program/libi18nutil.so
%{baseinstdir}/program/libpackage2.so
%{baseinstdir}/program/libsblo.so
%{baseinstdir}/program/libsfxlo.so
%{baseinstdir}/program/libsotlo.so
%{baseinstdir}/program/libspllo.so
%{baseinstdir}/program/libsvllo.so
%{baseinstdir}/program/libsvtlo.so
%{baseinstdir}/program/libtklo.so
%{baseinstdir}/program/libtllo.so
%{baseinstdir}/program/libucb1.so
%{baseinstdir}/program/libucpfile1.so
%{baseinstdir}/program/libutllo.so
%{baseinstdir}/program/libvcllo.so
%{baseinstdir}/program/libwriterperfectlo.so
%{baseinstdir}/program/libxmlscriptlo.so
%{baseinstdir}/program/libxolo.so
%{baseinstdir}/program/liblocalebe1lo.so
%{baseinstdir}/program/libucpgio1lo.so
%{baseinstdir}/program/types/oovbaapi.rdb
%if %with_mergedlibs
%{baseinstdir}/program/libmergedlo.so
%endif
#share unopkg
%dir %{baseinstdir}/share/extensions
%{baseinstdir}/share/extensions/package.txt
%{baseinstdir}/program/unopkg
%{baseinstdir}/program/unopkg.bin
%{baseinstdir}/program/bootstraprc
%{baseinstdir}/program/fundamentalrc
%{baseinstdir}/program/setuprc
%doc %{baseinstdir}/CREDITS.fodt
%doc %{baseinstdir}/LICENSE
%doc %{baseinstdir}/LICENSE.html
%doc %{baseinstdir}/LICENSE.fodt
%doc %{baseinstdir}/NOTICE
%{baseinstdir}/program/intro.*
%{baseinstdir}/program/soffice
%{baseinstdir}/program/soffice.bin
%{baseinstdir}/program/sofficerc
%{baseinstdir}/program/unoinfo
%{baseinstdir}/program/oosplash
%{baseinstdir}/program/shell/
%dir %{baseinstdir}/share/filter
%{baseinstdir}/share/filter/oox-drawingml-adj-names
%{baseinstdir}/share/filter/oox-drawingml-cs-presets
%{baseinstdir}/share/filter/vml-shape-types
%{baseinstdir}/share/xdg/
%{baseinstdir}/program/redirectrc
%{_datadir}/applications/libreoffice-startcenter.desktop
#launchers
%{_bindir}/libreoffice
%if %{build_gtk3}
%{_bindir}/libreoffice-gtk3
%endif
%{_bindir}/openoffice.org
%{_bindir}/soffice
%{_bindir}/ooffice
%{_bindir}/ooviewdoc

# Exclude files that are already in libreoffice-java-common
%exclude %{baseinstdir}/program/classes/commonwizards.jar
%exclude %{baseinstdir}/program/classes/form.jar
%exclude %{baseinstdir}/program/classes/query.jar
%exclude %{baseinstdir}/program/classes/officebean.jar
%exclude %{baseinstdir}/program/classes/report.jar
%{_mandir}/man1/libreoffice.1*
%{_mandir}/man1/openoffice.org.1*
%{_mandir}/man1/soffice.1*
%{_mandir}/man1/ooffice.1*
%{_mandir}/man1/ooviewdoc.1*
%exclude %{baseinstdir}/program/classes/ScriptFramework.jar
%exclude %{baseinstdir}/program/classes/ScriptProviderForJava.jar
%exclude %{baseinstdir}/program/classes/table.jar
%exclude %{baseinstdir}/program/classes/unoil.jar
%exclude %{baseinstdir}/program/classes/XMergeBridge.jar
%exclude %{baseinstdir}/program/classes/xmerge.jar
%exclude %{baseinstdir}/program/libofficebean.so
%exclude %{baseinstdir}/share/Scripts/java

%files base
%{baseinstdir}/help/en-US/sdatabase.*
%{baseinstdir}/program/classes/hsqldb.jar
%{baseinstdir}/program/classes/reportbuilder.jar
%{baseinstdir}/program/classes/sdbc_hsqldb.jar
%{baseinstdir}/program/libabplo.so
%{baseinstdir}/program/libdbplo.so
%{baseinstdir}/program/libhsqldb.so
%{baseinstdir}/program/librptlo.so
%{baseinstdir}/program/librptuilo.so
%{baseinstdir}/program/librptxmllo.so
%{baseinstdir}/program/resource/abpen-US.res
%{baseinstdir}/program/resource/cnren-US.res
%{baseinstdir}/program/resource/dbpen-US.res
%{baseinstdir}/program/resource/rpten-US.res
%{baseinstdir}/program/resource/rptuien-US.res
%{baseinstdir}/program/resource/sdbclen-US.res
%{baseinstdir}/program/resource/sdberren-US.res
%{baseinstdir}/share/registry/base.xcd
%{baseinstdir}/share/registry/reportbuilder.xcd
%{baseinstdir}/program/sbase
%{_datadir}/appdata/libreoffice-base.appdata.xml
%{_datadir}/applications/libreoffice-base.desktop
%{_bindir}/oobase
%{_mandir}/man1/oobase.1*

%files bsh
%{baseinstdir}/program/classes/ScriptProviderForBeanShell.jar
%{baseinstdir}/program/services/scriptproviderforbeanshell.rdb
%{baseinstdir}/share/Scripts/beanshell

%files rhino
%{baseinstdir}/program/classes/js.jar
%{baseinstdir}/program/classes/ScriptProviderForJavaScript.jar
%{baseinstdir}/program/services/scriptproviderforjavascript.rdb
%{baseinstdir}/share/Scripts/javascript

%files wiki-publisher
%docdir %{baseinstdir}/share/extensions/wiki-publisher/license
%{baseinstdir}/share/extensions/wiki-publisher

%files nlpsolver
%docdir %{baseinstdir}/share/extensions/nlpsolver/help
%{baseinstdir}/share/extensions/nlpsolver

%files officebean
%{baseinstdir}/program/classes/officebean.jar
%{baseinstdir}/program/libofficebean.so

%files ogltrans
%{baseinstdir}/program/libOGLTranslo.so
%{baseinstdir}/program/opengl/basicVertexShader.glsl
%{baseinstdir}/program/opengl/dissolveFragmentShader.glsl
%{baseinstdir}/program/opengl/staticFragmentShader.glsl
%dir %{baseinstdir}/share/config/soffice.cfg/simpress
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions-ogl.xml
%{baseinstdir}/share/registry/ogltrans.xcd

%files pdfimport
%{baseinstdir}/program/libpdfimportlo.so
%{baseinstdir}/program/xpdfimport
%{baseinstdir}/share/registry/pdfimport.xcd
%dir %{baseinstdir}/share/xpdfimport
%{baseinstdir}/share/xpdfimport/xpdfimport_err.pdf

%_font_pkg -n %{fontname} opens___.ttf
%doc instdir/LICENSE

%files calc
%{baseinstdir}/help/en-US/scalc.*
%{baseinstdir}/program/libanalysislo.so
%{baseinstdir}/program/libcalclo.so
%{baseinstdir}/program/libclewlo.so
%{baseinstdir}/program/libdatelo.so
%{baseinstdir}/program/libforlo.so
%{baseinstdir}/program/libforuilo.so
%{baseinstdir}/program/libopencllo.so
%{baseinstdir}/program/libpricinglo.so
%{baseinstdir}/program/libsclo.so
%{baseinstdir}/program/libscdlo.so
%{baseinstdir}/program/libscfiltlo.so
%{baseinstdir}/program/libscuilo.so
%{baseinstdir}/program/libsolverlo.so
%{baseinstdir}/program/libwpftcalclo.so
%{baseinstdir}/program/resource/analysisen-US.res
%{baseinstdir}/program/resource/dateen-US.res
%{baseinstdir}/program/resource/foren-US.res
%{baseinstdir}/program/resource/foruien-US.res
%{baseinstdir}/program/resource/pricingen-US.res
%{baseinstdir}/program/resource/scen-US.res
%{baseinstdir}/program/resource/solveren-US.res
%{baseinstdir}/program/libvbaobjlo.so
%{baseinstdir}/share/registry/calc.xcd
%{baseinstdir}/program/pagein-calc
%{baseinstdir}/program/scalc
%{_datadir}/appdata/libreoffice-calc.appdata.xml
%{_datadir}/applications/libreoffice-calc.desktop
%{_bindir}/oocalc
%{_mandir}/man1/oocalc.1*

%files draw
%{baseinstdir}/help/en-US/sdraw.*
%{baseinstdir}/share/registry/draw.xcd
%{baseinstdir}/program/pagein-draw
%{baseinstdir}/program/sdraw
%{_datadir}/appdata/libreoffice-draw.appdata.xml
%{_datadir}/applications/libreoffice-draw.desktop
%{_bindir}/oodraw
%{_mandir}/man1/oodraw.1*

%files emailmerge
%{baseinstdir}/program/mailmerge.py*
%{baseinstdir}/program/msgbox.py*

%files writer
%{baseinstdir}/help/en-US/swriter.*
%{baseinstdir}/program/libhwplo.so
%{baseinstdir}/program/liblwpftlo.so
%{baseinstdir}/program/libmswordlo.so
%{baseinstdir}/program/libswuilo.so
%{baseinstdir}/program/libt602filterlo.so
%{baseinstdir}/program/libwpftwriterlo.so
%{baseinstdir}/program/libwriterfilterlo.so
%{baseinstdir}/program/libvbaswobjlo.so
%{baseinstdir}/program/resource/t602filteren-US.res
%{baseinstdir}/share/registry/writer.xcd
%{baseinstdir}/program/pagein-writer
%{baseinstdir}/program/swriter
%{_datadir}/appdata/libreoffice-writer.appdata.xml
%{_datadir}/applications/libreoffice-writer.desktop
%{_bindir}/oowriter
%{_mandir}/man1/oowriter.1*

%files impress
%{baseinstdir}/help/en-US/simpress.*
%{baseinstdir}/program/libanimcorelo.so
%{baseinstdir}/program/libplacewarelo.so
%{baseinstdir}/program/libPresentationMinimizerlo.so
%{baseinstdir}/program/libPresenterScreenlo.so
%{baseinstdir}/program/libwpftimpresslo.so
%dir %{baseinstdir}/share/config/soffice.cfg/simpress
%{baseinstdir}/share/config/soffice.cfg/simpress/effects.xml
%{baseinstdir}/share/config/soffice.cfg/simpress/layoutlist.xml
%{baseinstdir}/share/config/soffice.cfg/simpress/objectlist.xml
%{baseinstdir}/share/config/soffice.cfg/simpress/transitions.xml
%{baseinstdir}/share/registry/impress.xcd
%{baseinstdir}/program/pagein-impress
%{baseinstdir}/program/simpress
%{_datadir}/appdata/libreoffice-impress.appdata.xml
%{_datadir}/applications/libreoffice-impress.desktop
%{_bindir}/ooimpress
%{_mandir}/man1/ooimpress.1*

%files math
%{baseinstdir}/help/en-US/smath.*
%{baseinstdir}/program/libsmlo.so
%{baseinstdir}/program/libsmdlo.so
%{baseinstdir}/program/resource/smen-US.res
%{baseinstdir}/share/registry/math.xcd
%{baseinstdir}/program/smath
%{_datadir}/applications/libreoffice-math.desktop
%{_bindir}/oomath
%{_mandir}/man1/oomath.1*

%files graphicfilter
%{baseinstdir}/program/libflashlo.so
%{baseinstdir}/program/libgraphicfilterlo.so
%{baseinstdir}/program/libsvgfilterlo.so
%{baseinstdir}/program/libwpftdrawlo.so
%{baseinstdir}/share/registry/graphicfilter.xcd

%files xsltfilter
%{baseinstdir}/share/xslt
%{baseinstdir}/share/registry/xsltfilter.xcd
%{_datadir}/applications/libreoffice-xsltfilter.desktop

%files postgresql
%{baseinstdir}/program/libpostgresql-sdbclo.so
%{baseinstdir}/program/libpostgresql-sdbc-impllo.so
%{baseinstdir}/program/postgresql-sdbc.ini
%{baseinstdir}/program/services/postgresql-sdbc.rdb
%{baseinstdir}/share/registry/postgresql.xcd

%files ure
%doc instdir/LICENSE
%{ureinstdir}

%files sdk
%{sdkinstdir}/
%exclude %{sdkinstdir}/docs/
%exclude %{sdkinstdir}/examples/

%files sdk-doc
%docdir %{sdkinstdir}/docs
%{sdkinstdir}/docs/
%{sdkinstdir}/examples/

%files pyuno
%{baseinstdir}/program/libpyuno.so
%{baseinstdir}/program/pythonloader.py*
%{baseinstdir}/program/libpythonloaderlo.so
%{baseinstdir}/program/pythonloader.unorc
%{baseinstdir}/program/pythonscript.py*
%{baseinstdir}/program/pyuno.so
%{baseinstdir}/program/services/pyuno.rdb
%{baseinstdir}/program/services/scriptproviderforpython.rdb
%{baseinstdir}/program/wizards
%dir %{baseinstdir}/share/Scripts
%{baseinstdir}/share/Scripts/python
%exclude %{baseinstdir}/share/Scripts/python/LibreLogo
%{python3_sitearch}/uno.py*
%{python3_sitearch}/unohelper.py*
%{python3_sitearch}/officehelper.py*
%{python3_sitearch}/__pycache__/uno.cpython-*
%{python3_sitearch}/__pycache__/unohelper.cpython-*
%{python3_sitearch}/__pycache__/officehelper.cpython-*
%{baseinstdir}/share/registry/pyuno.xcd

%files librelogo
%{baseinstdir}/share/registry/librelogo.xcd
%{baseinstdir}/share/Scripts/python/LibreLogo

%files glade
%{baseinstdir}/program/ui-previewer
%{_datadir}/glade3/catalogs/libreoffice-catalog.xml

%if %{build_kde}
%files kde
%{baseinstdir}/program/kde-open-url
%{baseinstdir}/program/libkde4be1lo.so
%{baseinstdir}/program/libvclplug_kde4lo.so
%else
%{baseinstdir}/program/kde-open-url
%endif

%files java-common
%dir %{baseinstdir}/program/classes
%{baseinstdir}/program/classes/commonwizards.jar
%{baseinstdir}/program/classes/form.jar
%{baseinstdir}/program/classes/query.jar
%{baseinstdir}/program/classes/officebean.jar
%{baseinstdir}/program/classes/report.jar
%{baseinstdir}/program/classes/reportbuilderwizard.jar
%{baseinstdir}/program/classes/ScriptFramework.jar
%{baseinstdir}/program/classes/ScriptProviderForJava.jar
%{baseinstdir}/program/classes/table.jar
%{baseinstdir}/program/classes/unoil.jar
%{baseinstdir}/program/classes/XMergeBridge.jar
%{baseinstdir}/program/classes/xmerge.jar
%{baseinstdir}/share/Scripts/java
%exclude %{baseinstdir}/program/classes/smoketest.jar



%changelog
* Tue Nov 03 2015 tv <tv> 4.4.6.3-2.2.mga5
+ Revision: 897626
- drop one more patch
- drop merged patches
- new release
- new release

* Fri Apr 17 2015 ennael <ennael> 4.4.2.2-4.mga5
+ Revision: 820356
- bump release

  + tv <tv>
    - disable one more test
    - 3 more fixes from FC

* Tue Apr 14 2015 tv <tv> 4.4.2.2-1.mga5
+ Revision: 820175
- redisable a test
- disable patch 1001
- 4.4.2 RC2
- 4.4.2 RC2
- rebuild for core/release

* Wed Feb 25 2015 tv <tv> 4.4.1.2-1.mga5
+ Revision: 817012
- 4.4.1 RC2
- 4.4.1 RC2

* Fri Feb 06 2015 tv <tv> 4.4.0.3-9.mga5
+ Revision: 813717
- fix obsoleting presentation-minimizer (mga#15188)

* Tue Feb 03 2015 tv <tv> 4.4.0.3-8.mga5
+ Revision: 813122
- do not hide math & startcenter (mga#5876)
- submit to core/release

* Sat Jan 31 2015 tv <tv> 4.4.0.3-6.mga5
+ Revision: 812904
- backport a cople fixes from FC

* Mon Jan 26 2015 tv <tv> 4.4.0.3-4.mga5
+ Revision: 812387
- fix deps

* Sun Jan 25 2015 tv <tv> 4.4.0.3-2.mga5
+ Revision: 812203
- sync with FC now they updated to 4.4.0 rc3 too plus:
  o move officehelper.py to pyuno package so it can be imported from python
  o add Provides: libreoffice-headless; packages are depending on it
- disable one more test
- disable a test
- BR libcmis-0.5
- new release 4.4.0.2
- sync with FC
- futher bump to 4.4.0.3
- drop patches 18, 19 (merged upstream)
- disable mga patch 1000

* Wed Nov 26 2014 tv <tv> 4.3.4.1-3.mga5
+ Revision: 799431
- a couple bug fixes from FC:
  o Resolves: fdo#86466 Wrong background color shown in impress table
  o Resolves: rhbz#1164551 we want to ensure that a libjvm.so is available
    but we have no firm interest in which one that is
  o Resolves: rhbz#1165740 arbitrarily backport some rtf crash fixes
  o set VCL.WM.ShouldSwitchWorkspace to false to avoid virtual desktop switching

* Fri Nov 14 2014 tv <tv> 4.3.4.1-1.mga5
+ Revision: 797098
- update to 4.3.4 rc1
- sync patches with FC
- enable support for 3-D models

* Fri Oct 17 2014 tv <tv> 4.3.3.1-1.mga5
+ Revision: 774138
- 4.3.3 rc1
- move appdata files to desktop files, where the belong
- sync patches wit FC
- use %%global for req/prov exclude
- autoconvert to new prov/req excludes
- s/uggests:/Recommends:/

* Thu Sep 04 2014 tv <tv> 4.3.1.2-4.mga5
+ Revision: 671887
- ant-apache-regexp is uneeded
- rebuild for new glew

  + sander85 <sander85>
    - Rebuild for new glew

* Fri Aug 29 2014 tv <tv> 4.3.1.2-2.mga5
+ Revision: 669204
- rebuild due to "make[1]: fork: Cannot allocate memory"
- 4.3.1

* Wed Aug 27 2014 luigiwalser <luigiwalser> 4.3.1.1-2.mga5
+ Revision: 668737
- fix rpm group of new officebean subpackage

  + tv <tv>
    - sync with FC:
      o various bug fixes
      o requires headless java/jre instead of full version
      o split officebean subpackage

* Tue Aug 12 2014 tv <tv> 4.3.1.1-1.mga5
+ Revision: 661957
- BR new enough java-devel in order to fix build
- French autocorr. file is not country-specific
- 4.3.1 rc1

* Thu Jul 31 2014 tv <tv> 4.3.0.4-1.mga5
+ Revision: 658799
- disable a failing test
- drop ICU-5.3 patches
- new release

* Wed Jun 04 2014 fwang <fwang> 4.2.4.2-6.mga5
+ Revision: 632807
- rebuild for new python

  + tv <tv>
    - rebuild for new python

* Thu May 08 2014 tv <tv> 4.2.4.2-4.mga5
+ Revision: 621180
- reenable fixed patch 36
- add two more patches from FC
- fix URL

* Mon May 05 2014 tv <tv> 4.2.4.2-2.mga5
+ Revision: 620263
- try to build with KDE

* Sat May 03 2014 tv <tv> 4.2.4.2-1.mga5
+ Revision: 619770
- disable KDE again
- reenable KDE
- fix installing man pages
- some man pages were not build
- 4.2.4 RC2
- stop adding MIME to writer desktop entry (break build)
- fix a crash with icu-5.3
- fix build w/o kde4
- BR pkgconfig(glu)
- BR pkgconfig(gl)
- BR xmllint
- temporary disable kde as kde is not installable
- further simplify
- build with system icu
- patch 100: fix build with icu-5.3
- disable underlinking (for building with bundled icu)
- 4.2.4 rc1
- sync patches with FC
- install man pages
- try building with bundled icu-5.2
- 4.2.3 RC3
- sync patches with RH
- 4.2.3 RC3
- sync patches with RH
- sync with RH:
  o crash on loading a specific docx (rhbz#1077780)
  o abrt crash in MSWordExportBase (rhbz#1075951)
  o mdds/multi_type_vector_itr.hpp update_node():
    soffice.bin killed by SIGSEGV (rhbz#1080196)
- auto convert BR to pkgconfig style

  + joequant <joequant>
    - add postgresql-devel to build requires
    - add rh patches
    - rebuild with new icu

* Thu Mar 27 2014 tv <tv> 4.2.3.2-1.mga5
+ Revision: 608920
- 4.2.3 RC2
- apply patches without fuzzing

* Thu Mar 20 2014 tv <tv> 4.2.3.1-1.mga5
+ Revision: 606274
- 3 more languages have help
- adjust file list
- 4.2.3 rc1
- sync patches with RH

* Wed Mar 05 2014 tv <tv> 4.2.2.1-4.mga5
+ Revision: 599919
- sync patches with RH:
  o wizards should find the right wizards subdir of Template_internal, who knew
    this stuff was so fragile (rhbz#1065807)
  o wizards should look in Template_internal (rhbz#1065807)

* Fri Feb 28 2014 tv <tv> 4.2.2.1-3.mga5
+ Revision: 597946
- actually apply patches
- don't throw with no "Templates" dir under KDE (rhbz#1065807)
- update on a Window deletes itself (rhbz#1007697)

* Fri Feb 28 2014 tv <tv> 4.2.2.1-1.mga5
+ Revision: 597773
- 4.2.2 RC1
- spadmin does not start (fdo#75540)
- do not crash when fonts are updated (rhbz#1057977)

* Wed Feb 26 2014 tv <tv> 4.2.1.1-2.mga5
+ Revision: 597377
- search XDG defined "Templates" dir (rhbz#1065807)

* Sat Feb 15 2014 tv <tv> 4.2.1.1-1.mga5
+ Revision: 591741
- bump needed mdds
- 4.2.1 rc1

  + fwang <fwang>
    - fix libgladeui pkg name

* Thu Feb 06 2014 tv <tv> 4.2.0.4-1.mga5
+ Revision: 584831
- fix group
- BR firebird-server-common for fb_config
- BR cmis-0.4 instead of 0.3
- new release

* Sat Jan 04 2014 pterjan <pterjan> 4.1.3.2-4.mga4
+ Revision: 564525
- Fix _requires_exceptions, should make -sdk installable again

* Sat Nov 02 2013 tv <tv> 4.1.3.2-3.mga4
+ Revision: 548800
- fix reviving FilterFormulaParser (fdo#56209)
- fix incorrect rendering of Devanagari short i (rhbz#1025201)
- Requires: google-crosextra-caladea-fonts, google-crosextra-carlito-fonts
- unoidl::AggregatingCursor must wrap modules for aggregation (fdo#67725)
- force menubar menus to be up/down only (rhbz#1021915)

* Wed Oct 23 2013 tv <tv> 4.1.3.2-1.mga4
+ Revision: 546385
- 4.3.1 RC2

* Tue Oct 22 2013 tv <tv> 4.1.3.1-3.mga4
+ Revision: 546368
- sync patches with FC:
  o fix wrong default CTL font shown in editengine (rhbz#1020712)
  o display -1 means span all screens (rhbz#919070)
- sync patches number with FC

* Sat Oct 12 2013 tv <tv> 4.1.3.1-2.mga4
+ Revision: 495645
- add a libreoffice-gtk3 wrapper

* Sat Oct 12 2013 tv <tv> 4.1.3.1-1.mga4
+ Revision: 495637
- new release

* Tue Oct 08 2013 tv <tv> 4.1.2.3-5.mga4
+ Revision: 492858
- sync patches with RH:
  o fix crash on clicking custom animation (rhbz#1015281)
  o fix crash with no bullet font (rhbz#996162)

* Wed Oct 02 2013 tv <tv> 4.1.2.3-4.mga4
+ Revision: 490437
- sync patches with RH:
  o fix crash in EditLineList::operator[] (rhbz#1013480)
  o fix crash on start up (rhbz#1014010)
  o fix encrypted OOo 1.0 files don't reopen (rhbz#1013844)

* Sun Sep 29 2013 tv <tv> 4.1.2.3-3.mga4
+ Revision: 489265
- new release

* Thu Sep 26 2013 tv <tv> 4.1.2.2-3.mga4
+ Revision: 487011
- adjust file list for python3 with bytecode
- rebuild for new icu

* Thu Sep 19 2013 tv <tv> 4.1.2.2-2.mga4
+ Revision: 481560
- 4.1.2 rc2

* Thu Sep 19 2013 tv <tv> 4.1.2.1-2.mga4
+ Revision: 481545
- rename in order to fix build
- fix crash on certain pptx (rhbz#988104)
- 4.1.2 rc1
- sync patches with RH
- do not call exit upon XIOError (rhbz#1000150)
- more fixes for icu-4.2
- enable to easily diff with FC/RH

* Thu Aug 22 2013 tv <tv> 4.1.1.2-1.mga4
+ Revision: 469767
- revert "use system cpp instead of ucpp"
- force using cmis 0.3
- 4.1.1 rc2
- sync patches with FC
- try building with system boost
- 4.1.1 RC1
- sync patches with RH

* Sat Aug 03 2013 fwang <fwang> 4.1.0.4-3.mga4
+ Revision: 462807
- filter correct requires

* Wed Jul 31 2013 fwang <fwang> 4.1.0.4-2.mga4
+ Revision: 461354
- rebuild for new poppler

* Fri Jul 26 2013 tv <tv> 4.1.0.4-1.mga4
+ Revision: 458357
- build with bundled boost again
- fix build with system poppler-0.23.0
- try building with system boost
- RC4

  + fwang <fwang>
    - rebuild for new poppler

* Fri Jul 19 2013 tv <tv> 4.1.0.3-3.mga4
+ Revision: 456375
- try to build with gtk+3 again
- add GNOME3 app menu (fdo#48835)

* Fri Jul 19 2013 tv <tv> 4.1.0.3-2.mga4
+ Revision: 456299
- sync with FC: obsoletes old Ooo langpacks
- move ui-previewer to -glade subpackage
- renumber patches (sync with RH)

* Thu Jul 18 2013 tv <tv> 4.1.0.3-1.mga4
+ Revision: 456123
- bundle boost 1.44 and build with it
- bundle boost 1.53 and build with it
- RC3
- sync patches with RH
- new release
- fix URL

  + fwang <fwang>
    - rebuild for new boost

* Tue Jun 25 2013 tv <tv> 4.1.0.1-4.mga4
+ Revision: 446490
- drop doble korean.xcd ownership du to old build fix
- sync patches with FC
- put glade catalog into an extra package

* Mon Jun 24 2013 tv <tv> 4.1.0.1-3.mga4
+ Revision: 446254
- rebuild for latest harfbuzz (w/o gtk3)
- really build with gtk+3

* Sun Jun 23 2013 tv <tv> 4.1.0.1-2.mga4
+ Revision: 446030
- build with gtk+3
- drop useless requires

* Thu Jun 20 2013 tv <tv> 4.1.0.1-1.mga4
+ Revision: 445217
- there is no localized help for romanian
- 4.1 RC1

* Tue Jun 18 2013 tv <tv> 4.1.0.0-7.beta2.mga4
+ Revision: 444576
- BR hsqldb
- various bug fixes from FC

* Fri Jun 07 2013 tv <tv> 4.1.0.0-6.beta2.mga4
+ Revision: 440318
- make br use fr help as it has none

* Fri Jun 07 2013 tv <tv> 4.1.0.0-5.beta2.mga4
+ Revision: 439677
- 4.1.0 beta 2
- syn patchesc with RH
- remove dead options
- one configure option per line
- BR harfbuzz-devel
- sync with RH:
- patch 23: block entire grapheme together for glyph fallback (rhbz#968892)
- patch 24: discard impossible languages for glyph fallback (rhbz#968892)

* Mon Jun 03 2013 tv <tv> 4.1.0.0-3.beta1.mga4
+ Revision: 436352
- build w/o xulrunner
- sync with FC: fix dropdown list autosizing (rhbz#968976)

* Mon May 27 2013 tv <tv> 4.1.0.0-2.beta1.mga4
+ Revision: 428754
- reduce diff with RH
- fix file list
- drop old openoffice.org obsoletes
- adjust file list
- adjust file list
- try building w/o merged libs

* Sat May 25 2013 tv <tv> 4.0.3.3-5.mga4
+ Revision: 426981
- new release
- sync patches with RC

* Fri May 24 2013 fwang <fwang> 4.0.3.3-4.mga4
+ Revision: 425821
- rebuild for new poppler

* Tue May 21 2013 tv <tv> 4.0.3.3-3.mga3
+ Revision: 413589
- patch 26: fix font options cache crash (rhbz#963276)

* Fri May 10 2013 tmb <tmb> 4.0.3.3-2.mga3
+ Revision: 412873
- bump rel for core/release

* Fri May 03 2013 tv <tv> 4.0.3.3-1.mga3
+ Revision: 412222
- 4.0.3 RC3

* Wed May 01 2013 tv <tv> 4.0.3.2-1.mga3
+ Revision: 411756
- 4.0.3 RC2

* Mon Apr 29 2013 tv <tv> 4.0.3.1-1.mga3
+ Revision: 411571
- 4.0.3 rc1
- sync patches with FC
- 4.0.3 rc1
- sync patches with FC

* Thu Apr 25 2013 lmenut <lmenut> 4.0.2.2-4.mga3
+ Revision: 411185
- fix package name for langpack pt_BR, zh_CN and zh_TW (mga #9683)

* Thu Apr 11 2013 tv <tv> 4.0.2.2-3.mga3
+ Revision: 409693
- sync with FC: fix div by zero on pagedown in 0 width panel (rhbz#949238)

* Fri Mar 29 2013 tv <tv> 4.0.2.2-2.mga3
+ Revision: 406535
- stop disabling some tests

* Fri Mar 29 2013 tv <tv> 4.0.2.2-1.mga3
+ Revision: 406323
- new release
- sync patches with RH

* Fri Mar 29 2013 tv <tv> 4.0.2.1-2.mga3
+ Revision: 406148
- make autocorr-XX requires locales-XX (mga#9540)

* Sun Mar 17 2013 tv <tv> 4.0.2.1-1.mga3
+ Revision: 403526
- reenable Catalan autocorrections w/o country code
- disable Catalan autocorr
- drop one more useless macro
- 4.0.2 rc1
- sync with RH:
  o sync patches
  o let %%langpack_langs be generated
- debug package is renamed debuginfo (still disabled by default)
- do apply patch 8
- drop useless help pack definitions

* Thu Mar 14 2013 tv <tv> 4.0.1.2-2.mga3
+ Revision: 403212
- sync with Redhat:
  o fix failure saving to gvfs mounts (rhbz#895690)
  o put autotext data files into langpacks
- require hunspell-br for br
- enable kazakh language

* Wed Mar 13 2013 tv <tv> 4.0.1.2-1.mga3
+ Revision: 402655
- fix commented out macro
- 4.0.1
- sync with Redhat:
  o autocorr data for basque is gone too
  o do not build localized SDK install sets (this caused the massive increase
    of required build space after 4.0.0.0 beta1)
  o do not install 512x512 icons (unused)
  o move librelogo.xcd in pyuno subpackage
  o make the fallback build really sequential
  o sync patches

* Fri Feb 01 2013 tv <tv> 4.0.0.3-1.mga3
+ Revision: 393948
- new release (RC3)

* Thu Jan 31 2013 dmorgan <dmorgan> 4.0.0.2-2.mga3
+ Revision: 393688
- Rebuild against new icu

* Tue Jan 29 2013 tv <tv> 4.0.0.2-1.mga3
+ Revision: 393160
- disable help for ta locale
- new release (RC2)

* Sun Jan 20 2013 fwang <fwang> 4.0.0.1-7.mga3
+ Revision: 390157
- there is no need appending -U for chinese langpack

* Sun Jan 20 2013 tv <tv> 4.0.0.1-6.mga3
+ Revision: 390018
- br langpack only requires locales-br now (mga#8751)
- do not require hsqldb in LO-base since we don't use it anyway (mga#7141)

* Sat Jan 19 2013 tv <tv> 4.0.0.1-5.mga3
+ Revision: 389848
- restore requires from langpack-XX on locales-XX (mga#8716)

* Fri Jan 18 2013 dmorgan <dmorgan> 4.0.0.1-4.mga3
+ Revision: 389462
- Do not compile with -fomit-frame-pointer

* Fri Jan 18 2013 dmorgan <dmorgan> 4.0.0.1-3.mga3
+ Revision: 389325
- Compile with -fnon-call-exceptions flag

* Thu Jan 17 2013 dmorgan <dmorgan> 4.0.0.1-2.mga3
+ Revision: 389066
- Rebuild to use normal debuginfo packages

* Mon Jan 14 2013 dmorgan <dmorgan> 4.0.0.1-1.mga3
+ Revision: 386036
- Remove some auto requires

  + tv <tv>
    - build with cppuint-1.13, not 1.12

* Fri Jan 11 2013 tv <tv> 4.0.0.1-0.mga3
+ Revision: 348879
- 4.0 RC 1

  + boklm <boklm>
    - Update group: Office/Other -> Office/Utilities
    - Update group: Graphics/Editors -> Graphics/Editors and Converters

* Thu Jan 10 2013 dmorgan <dmorgan> 4.0.0.0-0.beta2.mga3
+ Revision: 344742
- Disable unit tests
- use system cpp instead of ucpp
- Remove an other failing test
- Disable a failing test

  + tv <tv>
    - build with cppunit-1.12
    - do not build with system cpp
    - try building without junit
    - use --enable-mergelibs (faster build)
    - temporary disable test suite
    - adjust file list
    - enable lv
    - fix & reenable pt, zh*
    - enable back fa locale
    - disable help packages (merged in langpacks)
    - temporary disable zh_TW
    - temporary disable zh_CN
    - temporary disable pt-PT
    - drop stlport
    - use system cpp instead of ucpp
    - drop stlport
    - use system cpp instead of ucpp
    - beta2
    - ensure -binfilter is removed on update
    - enable cmis
    - fix missing .desktop icons (RH)
    - enable orcus & liblangtag libraries
    - update configure options
    - we don't have orcus & langtag libs
    - BR++
    - extend %%autocorr to avoid listing extra files (RH)
    - define langpack filelists directly in spec (RH)
    - macroize creation of autocorr aliases (RH)
    - Romanian and Tamil have translated help
    - regroup & sort BR in order to reduce diff with RH
    - further update filelist
    - update file list
    - merge presenter-screen subpkg into impress
    - use python3 now
    - use $RPM_BUILD_ROOT in order to reduce diff with FC
    - disable some tests
    - reenable desktop-file-validate
    - use system servlet-api.jar
    - 4.0.0 beta1
    - sync patches with RH

  + pterjan <pterjan>
    - Support spaces in _smp_mflags

  + fwang <fwang>
    - drop old poppler patch

* Mon Nov 12 2012 fwang <fwang> 3.6.3.2-5.mga3
+ Revision: 317135
- disable poppler patch
- rebuild for new poppler

* Fri Nov 09 2012 fwang <fwang> 3.6.3.2-4.mga3
+ Revision: 316710
- rebuild for updated icu

* Thu Nov 08 2012 fwang <fwang> 3.6.3.2-3.mga3
+ Revision: 316387
- rebuild for updated icu

  + tv <tv>
    - remove uselesse xpdf-devel BR

* Wed Nov 07 2012 fwang <fwang> 3.6.3.2-2.mga3
+ Revision: 315794
- rebuild for new libeexttextcat

* Wed Nov 07 2012 fwang <fwang> 3.6.3.2-1.mga3
+ Revision: 315461
- update file list
- update rpm group

  + dmorgan <dmorgan>
    - New version 3.6.3 Final
    - New version
      Enable Gstreamer 1.0 support
    - New version 3.6.2

  + tv <tv>
    - new release
    - fix semi hidden menu entries (mga#7262)
    - BR xpdf-devel for missing UTF80h
    - rebuild with new poppler

* Wed Sep 19 2012 fwang <fwang> 3.6.1.2-3.mga3
+ Revision: 296032
- rebuild for new libexttextcat

* Tue Sep 11 2012 fwang <fwang> 3.6.1.2-2.mga3
+ Revision: 292158
- rebuild for new poppler

* Wed Aug 29 2012 dmorgan <dmorgan> 3.6.1.2-1.mga3
+ Revision: 285561
- New version 3.6.1

* Tue Aug 21 2012 tv <tv> 3.6.1.1-4.mga3
+ Revision: 282869
- rebuild for new poppler

* Sun Aug 19 2012 dmorgan <dmorgan> 3.6.1.1-3.mga3
+ Revision: 282080
- New version 3.6.1 rc1

* Sat Aug 04 2012 tv <tv> 3.6.0.4-3.mga3
+ Revision: 278513
- no help for br
- fix year old typo that breaks fa, br & lv locales
- reenable br support
- docomment build fix patch
- drop obsolete configure options
- drop doubled bcond

* Thu Aug 02 2012 tv <tv> 3.6.0.4-2.mga3
+ Revision: 277879
- patch 1000: workaround build faillure
- 3.6.0 rc4
- rebuild for db-5.3

  + fwang <fwang>
    - use configure2_5x

  + dmorgan <dmorgan>
    - New version 3.6.0 rc2

* Sat Jul 14 2012 dmorgan <dmorgan> 3.6.0.1-1.mga3
+ Revision: 270666
- New version 3.6.0 rc1
- Fix menu icons

* Wed Jul 11 2012 dmorgan <dmorgan> 3.6.0.0-0.beta3.2.mga3
+ Revision: 269487
- Rebuild because of missing i586 rpms

* Tue Jul 10 2012 dmorgan <dmorgan> 3.6.0.0-0.beta3.1.mga3
+ Revision: 269242
- Disable failing tests
- New version 3.6.0.0 beta3
- New version 3.6.0 beta2
- Fix icon in startcenter too ( mga #5876)
- Add lucene-contrib as Require

* Mon Jun 18 2012 dmorgan <dmorgan> 3.5.5.1-1.mga3
+ Revision: 261720
- 3.5.5 rc1
- drop integrated 0001-make-hsqldb-build-with-java-1.7.patch
- drop integrated 0001-Related-rhbz-799628-crash-with-chewing-IM-with-g3g.patch
- drop integrated 0001-silence-SolarMutex-not-locked-spew.patch
- drop integrated 0001-gcc-trunk-fix-unable-to-find-string-literal-operator.patch
- drop integrated 0001-ppc-yyinput-returns-a-int-truncating-to-unsigned-cha.patch
- drop integrated 0001-Resolves-rhbz-826609-rhbz-820554-fix-smoketest-on-pp.patch

* Wed Jun 13 2012 fwang <fwang> 3.5.4.2-2.mga3
+ Revision: 260240
- rebuild for new poppler

* Tue May 29 2012 dmorgan <dmorgan> 3.5.4.2-1.mga3
+ Revision: 249147
- New version 3.5.4 Rc2

* Thu May 03 2012 dmorgan <dmorgan> 3.5.3.2-1.mga2
+ Revision: 234633
- New version 3.5.3 final

* Fri Apr 13 2012 dmorgan <dmorgan> 3.5.2.2-2.mga2
+ Revision: 230672
- New version 3.5.2.2
- Add libexttextcat as requires of core package

* Tue Mar 06 2012 dmorgan <dmorgan> 3.5.1.2-1.mga2
+ Revision: 220059
- New version 3.5.1 rc2

* Tue Feb 28 2012 dmorgan <dmorgan> 3.5.1.1-1.mga2
+ Revision: 215796
- New version 3.5.1.1

* Tue Feb 07 2012 dmorgan <dmorgan> 3.5.0.3-3.mga2
+ Revision: 205949
- Fix menu icons ( dams )

* Tue Feb 07 2012 dmorgan <dmorgan> 3.5.0.3-2.mga2
+ Revision: 205722
- Explicitly exclude files that belong to libreoffice-java-common to make sure they are not in core subpackage too
- split legacy binary filters into subpackage
- Resolves: rhbz#786328 add nlpsolver subpackage
- New version 3.5.0.3
- New version 3.5.0 rc2
- add libreoffice-postgresql subpackage

  + kamil <kamil>
    - build against new mythes-devel
    - clean spec

* Thu Jan 05 2012 dmorgan <dmorgan> 3.4.99.2-3.mga2
+ Revision: 190890
- Workaround missing menu icons

* Wed Dec 28 2011 dmorgan <dmorgan> 3.4.99.2-2.mga2
+ Revision: 188342
- Add missing files forgotten when merging from fedora

* Wed Dec 28 2011 dmorgan <dmorgan> 3.4.99.2-1.mga2
+ Revision: 188283
- use system mysql-connector-c++
- New version 3.5 Beta2
- Requires a langpack ( mga #3830)
- Fix file list
- 3.5.0 beta1 ( Synced with Fedora )
 - drop integrated 0001-Related-fdo-37195-migrationoo3-not-registered.patch
 - drop integrated 0001-Related-i58612-don-t-crash-anyway.patch
 - drop integrated 0001-Related-rhbz-652604-better-survive-exceptions-thrown.patch
 - drop integrated 0001-Related-rhbz-702833-addEventListener-without-removeE.patch
 - drop integrated 0001-Related-rhbz-711087-band-aid.patch
 - drop integrated 0001-Related-rhbz-718976-crash-in-SwTxtSizeInfo-GetMultiC.patch
 - drop integrated 0001-Related-rhbz-730225-avoid-segv-in-ld-this-was-set-to.patch
 - drop integrated 0001-Related-rhbz-753201-fedora-ant-java-1.5.0-gcj-won-t-.patch
 - drop integrated 0001-Resolves-fdo-32665-handle-that-FreeSerif-lacks-some-.patch
 - drop integrated 0001-Resolves-rhbz-693265-fix-crash-from-unhandled-except.patch
 - drop integrated 0001-Resolves-rhbz-695509-crash-in-RefreshDocumentLB.patch
 - drop integrated 0001-Resolves-rhbz-713154-pdf-export-dialog-too-tall-to-f.patch
 - drop integrated 0001-Resolves-rhbz-715549-use-fontconfig-s-detected-forma.patch
 - drop integrated 0001-Resolves-rhbz-738255-avoid-crash-on-NULL-pointer.patch
 - drop integrated 0001-Resolves-rhbz-751290-KDE-black-on-dark-tooltips.patch
 - drop integrated 0001-add-Oracle-Java-1.7.0-recognition.patch
 - drop integrated 0001-avoid-using-com.sun.org-apis.patch
 - drop integrated 0001-bubble-down-configure-test-findings-on-visibility.patch
 - drop integrated 0001-fix-horizontal-scrollbars-with-KDE-oxygen-style-bnc-.patch
 - drop integrated 0001-gtk3-fix-cairo-canvas-crash-for-non-X-or-svp-backend.patch
 - drop integrated 0001-helgrind-Related-rhbz-655686-get-order-of-shutdown-c.patch
 - drop integrated 0001-rhbz-667082-do-not-crash-importing-section-containin.patch
 - drop integrated 0001-rhbz-702635-set-correct-page-number-when-exporting-s.patch
 - drop integrated Backport-reading-AES-encrypted-ODF-1.2-documents.patch
 - drop integrated gdb-pretty-printers.patch
 - drop integrated kde4configure.patch
 - drop integrated libreoffice-ppc64.patch
 - drop integrated openoffice.org-3.3.0.ooo108637.sfx2.uisavedir.patch
 - drop integrated openoffice.org-3.3.0.ooo113273.desktop.resolvelinks.patch
 - drop integrated vbahelper.visibility.patch
 - drop libreoffice-testtools subpackage, because testtool has been
   removed by upstream
- Remove useless suggests

* Tue Dec 20 2011 dmorgan <dmorgan> 3.4.4.2-1.mga2
+ Revision: 184846
- Suggests hunspell-en ( mga #2942)
- Use X-Mageia-CrossDesktop desktop category
- Resolves: rhbz#757653 fix headless crash with cairo canvas
- Resolves: rhbz#757653 fix headless crash with cairo canvas
- Resolves: rhbz#751290 - [kde] LibreOffice has black on dark-grey tooltip-texts
- Resolves: fdo#42749 KDE oxygen theme and scrollbars
- Related: fdo#42534 0001-Related-i58612-don-t-crash-anyway.patch
- Remove P23
- P31: add FcPatternGetMatrix wrapper
- Resolves: rhbz#665800 missing glyph symbol shown when toggling bold/italic
  for Sinhala text
- possible fix for java 1.7.0 detection
- New version 3.4.4.2
- allow building with gcj
- fix .sdw import
- Resolves: rhbz#747356 let Qt call XInitThreads
- Related: rhbz#743750 addXineramaScreenUnique issue
- Related: rhbz#743750 addXineramaScreenUnique issue

* Fri Oct 28 2011 fwang <fwang> 3.4.3.2-2.mga2
+ Revision: 158963
- rebuild for new poppler

* Thu Oct 20 2011 blino <blino> 3.4.3.2-1.mga2
+ Revision: 156740
- use Development/Other group for gdb-debug-support subpackage
  (Development/Debug is reserved for packages with sources + symbols)

  + dmorgan <dmorgan>
    - Remove nso help package
    - Really disable lv language
    - Do not package lv language
    - Fix typo
    - New version 3.4.3 rc2
      Sync with fedora

  + ovitters <ovitters>
    - add pkgconfig(poppler-glib) to buildrequires
    - fix poppler patch
    - enable fedora poppler patch
    - add pkgconfig(ORBit-2.0) to buildrequires
    - rebuild for new poppler

* Wed Sep 14 2011 fwang <fwang> 3.4.3.1-2.mga2
+ Revision: 143384
- br dbus-glib
- fix vigra dep
- rebuild for new libpng
- fix group

  + dmorgan <dmorgan>
    - Update to Libreoffice 3.4.3 rc1
      Sync with fedora patches
    - Fix groups
    - Do not apply poppler patch now, our version is not recent enough
    - Add Fedora patches
    - Rediff patches
    - New version  3.4.2 rc2

* Sat Jul 16 2011 dmorgan <dmorgan> 3.4.2.1-2.mga2
+ Revision: 124721
- Fix requires exception

* Sat Jul 16 2011 dmorgan <dmorgan> 3.4.2.1-1.mga2
+ Revision: 124702
- New version 3.4.2 RC1

  + ahmad <ahmad>
    - Change libpoppler-*-devel BR to pkgconfig style

* Tue Jul 12 2011 dmorgan <dmorgan> 3.4.1.3-4.mga2
+ Revision: 123089
- Fix file list
- Add Si help package
- Oooops, ts has no help
- More fixes for help packages
- Disable fa language
- Disable fa language
- Disable breton translation
- Fix br.filelist find
- Re enable br workaround
- Fix br language
- Clean spec file
- SYnc a little more with fedora
- Use bundled translate-toolkit
- Try to use system translate-toolkit
- Try to use system translate-toolkit
- Fix configure option
- Fix configure options
- Fix configure option
- Disable patch100
- Fix translations file list
- Sync with fedora
- lt has no help
- Fix patch16
- fix compiler issue
- fix compiler issue
- bubble down configure test findings on visibility
- Resolves: rhbz#695509 crash in RefreshDocumentLB
- various translations do not translate helpcontent2
- Fix tests
- Fix patch13
- gcc vis still problematic
- fix broken da templates
- recalculate POORHELPS from .po files
- ns now correctly named as nso
- various renames
- binfilter disabled by default, re-enable
- gengalrc gone too
- Fix file list
- Fix UDP to 300
- Fix file list
- fix patch post BOOL, etc. changes
- require at least one font in order to run unit tests
- More kde4 build fixes
- backport KDE4 build fix
- Fix build
- remove missing languages and graphite2
- drop integrated 0001-add-flat-xml-types-to-.desktop-files-etc.patch
- drop integrated libreoffice-fdo31271.icu.patch
- Use fedora changelog :
- drop openoffice.org-1.9.123.ooo53397.prelinkoptimize.desktop.patch
  +  in favour of ooosplash
- drop openoffice.org-2.2.0.gccXXXXX.solenv.javaregistration.patch
  +  because components are passively registered now
- drop integrated openoffice.org-3.1.0.ooo102061.sc.cellanchoring.patch
- drop integrated turn-script-providers-into-extensions.patch
- drop integrated 0001-tidy-this-up-and-don-t-bail-out-on-mislength-records.patch
- drop integrated 0001-free-ctxt-after-taking-lastError-details.patch
- drop integrated 0001-Removed-suspect-hack.-Cursor-on-post-it-now-scrolls-.patch
- drop integrated libreoffice-gcc4.6.0.patch
- drop integrated 0001-fexceptions-fexceptions.patch
- drop integrated 0001-Related-rhbz-672872-cancel-gtk-file-dialog-on-deskto.patch
- drop vbahelper.visibility.patch
- drop integrated 0001-Resolves-fdo-33509-i62414-out-by-one-breaks-CTL-spel.patch
- drop integrated 0001-Resolves-rhbz-670020-crash-in-slidesorting.patch
- drop integrated 0001-Resolves-rhbz-676539-handle-missing-pWindows-from-xW.patch
- drop integrated 0001-Resolves-fdo-33750-i94623-use-optimal-border-width-w.patch
- drop integrated 0001-rhbz-649310-don-t-crash-deregistering-diff.-platform.patch
- drop integrated 0001-Resolves-rhbz-674330-dereference-of-NULL-mpBase.patch
- drop integrated 0001-rhbz-678284-Get-correct-current-position-when-shift-page-up-and-.patch
- drop integrated 0001-Resolves-rhbz-681159-bandaid-for-crash.patch
- drop integrated 0001-Resolves-rhbz-672818-bandaid-for-crash-in-SwTxtNode-.patch
- drop integrated 0001-install-high-resolution-icons.patch
- drop integrated 0001-Resolves-rhbz-682716-pa-IN-isn-t-handled-by-fontconf.patch
- drop integrated 0001-Related-rhbz-684477-make-sure-this-is-thread-safe.patch
- drop integrated 0001-Resolves-rhbz-682621-better-resizing-of-overtall-gly.patch
- drop integrated 0001-Resolves-rhbz-684620-crash-with-NULL-pTableBox.patch
- drop integrated libreoffice-fdo33947.sd.print.crash.patch
- drop integrated 0001-add-cairo_ft_font_face_create_for_pattern-wrapper.patch
- drop integrated 0001-Related-rhbz-680460-reorganize-this-to-make-it-inher.patch
- drop integrated 0001-Related-rhbz-680460-don-t-bother-with-an-interim-Fon.patch
- drop integrated 0001-Resolves-rhbz-680460-honour-lcdfilter-subpixeling-et.patch
- drop integrated 0001-Cut-Gordian-Knot-of-who-owns-the-font-options.patch
- drop integrated 0001-beware-of-invalidated-iterator.patch
- drop integrated rhbz680766.fix-mdds-crash.patch
- drop integrated 0001-Resolves-rhbz-684580-X-and-strike-through-escapes-ra.patch
- drop integrated 0001-set-mime-types-on-flat-xml-filters.patch
- Fix spec file for LO 3.4
- New version 3.4.1.3
- Remove old old old sources
- Remove merged P37
- Update to version 3.3.3.1

* Sun May 29 2011 dmorgan <dmorgan> 3.3.2.2-14.mga1
+ Revision: 100652
- Move autocorr-en and hyphen-en as Suggests ( were Requires)

* Sun May 15 2011 mikala <mikala> 3.3.2.2-13.mga1
+ Revision: 99165
- Add missing \
- Add an obsolete & provide on libreoffice-help-lang to ease upgrade from mandriva

* Sun May 01 2011 blino <blino> 3.3.2.2-12.mga1
+ Revision: 94096
- fix langpack and help packages names for pt, pt_BR, zh_CN and zh_TW
  so that they can be expanded by clean-rpmsrate (do not use dash in
  lang suffix, #388)
- allow -U langpack option to be used even if -u is specified
  (so that both locales-br and locales-fr are required for breton)

  + dmorgan <dmorgan>
    - Provide templates for Breton ( mgabz #1029)

* Wed Apr 27 2011 tv <tv> 3.3.2.2-11.mga1
+ Revision: 91953
- fix file list: add sh help pack

  + blino <blino>
    - fix build by removing double declaration of breton lang and help packs (titypo)

  + dmorgan <dmorgan>
    - Remove he help
    - Remove wrong langs
    - Cy has no help
    - Fix typo
    - Add More translations
    - Remove fa from help packages
    - Fix typo
    - Fix typo
    - More fixes for the help packages
    - Help packages will be named libreoffice-help-*
    - Fix typo in file list
      Add debug ( if it fails )
    - Fix typo
    - Try to fix build of the help package
    - Bump release
    - fix macros
    - Try to create help packages
    - Remove unneeded %%post, they are already handled by filetriggers ( Anssi)

  + anssi <anssi>
    - add Provides on openoffice.org to libreoffice metapackage
    - add libreoffice meta-package requiring the main programs and have it
      obsolete openoffice.org meta-package

* Sat Apr 23 2011 dmorgan <dmorgan> 3.3.2.2-10.mga1
+ Revision: 89866
- backport for the locales fix
- Revert to LO 3.3.2.2
- make en langpack to require hyphen-en
- make en langpack to require autocorr-en
- make en langpack to require hunspell-en

* Fri Apr 22 2011 boklm <boklm> 3.3.99.1-1.mga1
+ Revision: 89767
- add locales-xx as require on libreoffice-langpack-xx

  + dmorgan <dmorgan>
    - Really fix file list ( Try #666 )
    - Sync configure with fedora
    - Fix rm
    - Fix file list ( try #6 )
    - Fix file list ( try #4 )
    - Fix file list ( try #3)
    - Fix typo
    - Apply patch16 cleanly
    - Sync with fedora ( fixes in build and translations)
    - Fix configure
    - Add hsqldb as buildrequire
    - Fix patch12
    - rediff patches
    - Update patch4
    - Fix BR
    - Update to 3.4 Beta 1
      Sync with fedora :
    - 3.4 beta1
    - drop openoffice.org-1.9.123.ooo53397.prelinkoptimize.desktop.patch
      in favour of ooosplash
    - drop openoffice.org-2.2.0.gccXXXXX.solenv.javaregistration.patch
      because components are passively registered now
    - drop integrated openoffice.org-3.1.0.ooo102061.sc.cellanchoring.patch
    - drop integrated turn-script-providers-into-extensions.patch
    - drop integrated 0001-tidy-this-up-and-don-t-bail-out-on-mislength-records.patch
    - drop integrated 0001-free-ctxt-after-taking-lastError-details.patch
    - drop integrated 0001-Removed-suspect-hack.-Cursor-on-post-it-now-scrolls-.patch
    - drop integrated libreoffice-gcc4.6.0.patch
    - drop integrated 0001-fexceptions-fexceptions.patch
    - drop integrated 0001-Related-rhbz-672872-cancel-gtk-file-dialog-on-deskto.patch
    - drop vbahelper.visibility.patch
    - drop integrated 0001-Resolves-fdo-33509-i62414-out-by-one-breaks-CTL-spel.patch
    - drop integrated 0001-Resolves-rhbz-670020-crash-in-slidesorting.patch
    - drop integrated 0001-Resolves-rhbz-676539-handle-missing-pWindows-from-xW.patch
    - drop integrated 0001-Resolves-fdo-33750-i94623-use-optimal-border-width-w.patch
    - drop integrated 0001-rhbz-649310-don-t-crash-deregistering-diff.-platform.patch
    - drop integrated 0001-Resolves-rhbz-674330-dereference-of-NULL-mpBase.patch
    - drop integrated 0001-rhbz-678284-Get-correct-current-position-when-shift-page-up-and-.patch
    - drop integrated 0001-Resolves-rhbz-681159-bandaid-for-crash.patch
    - drop integrated 0001-Resolves-rhbz-672818-bandaid-for-crash-in-SwTxtNode-.patch
    - drop integrated 0001-install-high-resolution-icons.patch
    - drop integrated 0001-Resolves-rhbz-682716-pa-IN-isn-t-handled-by-fontconf.patch
    - drop integrated 0001-Related-rhbz-684477-make-sure-this-is-thread-safe.patch
    - drop integrated 0001-Resolves-rhbz-682621-better-resizing-of-overtall-gly.patch
    - drop integrated 0001-Resolves-rhbz-684620-crash-with-NULL-pTableBox.patch
    - drop integrated libreoffice-fdo33947.sd.print.crash.patch
    - drop integrated 0001-add-cairo_ft_font_face_create_for_pattern-wrapper.patch
    - drop integrated 0001-Related-rhbz-680460-reorganize-this-to-make-it-inher.patch
    - drop integrated 0001-Related-rhbz-680460-don-t-bother-with-an-interim-Fon.patch
    - drop integrated 0001-Resolves-rhbz-680460-honour-lcdfilter-subpixeling-et.patch
    - drop integrated 0001-Cut-Gordian-Knot-of-who-owns-the-font-options.patch
    - drop integrated 0001-beware-of-invalidated-iterator.patch
    - drop integrated rhbz680766.fix-mdds-crash.patch
    - drop integrated 0001-Resolves-rhbz-684580-X-and-strike-through-escapes-ra.patch
    - drop integrated 0001-set-mime-types-on-flat-xml-filters.patch
    - drop integrated 0001-add-flat-xml-types-to-.desktop-files-etc.patch
    - drop integrated libreoffice-fdo31271.icu.patch

  + misc <misc>
    - fix file list

* Sat Apr 16 2011 dmorgan <dmorgan> 3.3.2.2-9.mga1
+ Revision: 86118
- Fix ure to not require java anymore
- Fix require exception
- Fix conflicts ( mikala)
- Move some obsoletes from core to java-commont

* Fri Apr 15 2011 dmorgan <dmorgan> 3.3.2.2-8.mga1
+ Revision: 85660
- Create a java-common package

* Wed Apr 13 2011 dmorgan <dmorgan> 3.3.2.2-7.mga1
+ Revision: 84787
- Move %%{ureinstdir}/lib/libjvm*.so* in core
- Only suggests %%name-ure

* Wed Apr 13 2011 dmorgan <dmorgan> 3.3.2.2-6.mga1
+ Revision: 84402
- Move libofficebean.so to ure package
  Add conflict to ease update

* Mon Apr 11 2011 dmorgan <dmorgan> 3.3.2.2-5.mga1
+ Revision: 83487
- Fix Breton language pack as there is no Hyphen-br
- Fix groups

* Sun Apr 10 2011 dmorgan <dmorgan> 3.3.2.2-4.mga1
+ Revision: 82733
- Only fix base desktop file for now
- Disable patch44 ( as we removed patches 45 and 46 )
- Do not use patch 45/46, i will investigate later
- Do not requires devel(libstlport_gcc)
- Make jre optionnal
- backport desktop files fixes from openoffice package
- Add fedora patches (Resolves: rhbz#680766 crash in mdds)

  + tv <tv>
    - there's no hyphen for br

* Thu Apr 07 2011 tv <tv> 3.3.2.2-3.mga1
+ Revision: 81640
- enable br langpack

* Sun Mar 27 2011 dmorgan <dmorgan> 3.3.2.2-2.mga1
+ Revision: 78202
- Rebuild against new poppler

* Fri Mar 25 2011 dmorgan <dmorgan> 3.3.2.2-1.mga1
+ Revision: 77522
- Do not apply42 as it need patch41
- Disable patch41, which crash when fast scrolling
- Revert previous commit now that redland is fixed
- Try to fix buildrequires
- Change openoffice.org-voikko require to libreoffice-voikko
- Update to version 3.3.2.2
- Fix group

* Fri Mar 18 2011 dmorgan <dmorgan> 3.3.1.2-7.mga1
+ Revision: 74268
- Obsolete openoffice.org-help-en_US and openoffice.org-help-en_GB

* Fri Mar 18 2011 dmorgan <dmorgan> 3.3.1.2-6.mga1
+ Revision: 73904
- More obsolete to easy upgrade
- Add fedora patches:
  	- Resolves: rhbz#681159 crash in writer
  	- Resolves: rhbz#672818 crash in writer
  	- Resolves: fdo#33701 ensure node outlives path
  	- Resolves: rhbz#681738 crash on writing config post-main
  	- install 128x128 px icons
  	- Resolves: rhbz#682716 pa-IN isn't handled well by fontconfig
  	- Resolves: rhbz#682621 better resizing of overtall glyphsubs
  	- Related: rhbz#684477 make sure this is thread safe
  	- Resolves: rhbz#684620 crash with NULL pTableBox
  	- Resolves: fdo#33947 sd print crash
  	- Resolves: rhbz#680460 honour lcdfilter and subpixeling

* Wed Mar 16 2011 dmorgan <dmorgan> 3.3.1.2-5.mga1
+ Revision: 72319
- More upgrade fixes

* Wed Mar 16 2011 dmorgan <dmorgan> 3.3.1.2-4.mga1
+ Revision: 72280
- Try to fix upgrade
- Try to fix upgrade
- Fc patch: Resolves: rhbz#681159 crash in writer
- Reapply patches, previous error was because of iurt timeout

* Sat Mar 12 2011 dmorgan <dmorgan> 3.3.1.2-3.mga1
+ Revision: 68347
- Disable patches 7 8 and 27 as i have a build error i did not had before
- Fix patches
- Fix patch6
- Re enable languages
- Give a try without af localization
- Give a try to langpack

* Mon Feb 21 2011 dmorgan <dmorgan> 3.3.1.2-1.mga1
+ Revision: 55867
- Do not apply patch27, i will rediff it later
- Update to 3.3.1.2
- Add fedora patches :
  	- Resolves: rhbz#674330 dereference of NULL mpBase
  	- Resolves: rhbz#678284 Calc crashes during cell select with keys

* Fri Feb 18 2011 dmorgan <dmorgan> 3.3.1.1-1.mga1
+ Revision: 53946
- BuildRequires fontpackages-devel not fontpackages
- Add fontpackages as BuildRequire
- Do not build languages for now
- Remove debug
- Build with Werror_cflags %%nil
- Comment patch7 and 8, will be rediff later
- Rediff patch 0001-Related-rhbz-672872-cancel-gtk-file-dialog-on-deskto.patch
  Use default fuzz 2
- Add fedora patches
- New version 3.3.1 rc
- Fix dejavu requires
- Add patch to fix compilation
- FIx BuildRequires
- FIx BuildRequires
- DO not apply patches 20 21 for the moment
- Comment libtextcat-devel for now
- Add missing patch
- Fix groups
- Remove commented buildrequires
  Comment missing requires
- Rediff and Enable patch4
- Use %%qt4dir
- Fix kde and qt path
- add libreoffice-fdo32561.comphelper.patch ( from fc )
- Adda a fedora patch to build against gcc 4.6
- Backport commits from fedora
- Enable back the "touch" part
- Enable and rediff patch 9
- Rediff and enable patch 10
- Enable patches 11 -> 13
- Enable patch 14
- Enable patches 15 -> 18
- Fix BuildRequires for mageia
  Comment patches that need to be rediff
- Rediff patches 5-6
- imported package libreoffice