2010-10-21 01:05:15 +02:00
#
2011-09-07 17:42:32 +02:00
# spec file for package libreoffice
2010-10-21 01:05:15 +02:00
#
2011-03-21 15:29:29 +01:00
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
2010-10-21 01:05:15 +02:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name : libreoffice
2011-09-19 17:50:45 +02:00
BuildRequires : ImageMagick ant ant-apache-regexp ant-nodeps bison boost-devel ccache cups-devel curl-devel dbus-1-glib-devel flac-devel flex gcc-c++ gnome-vfs2-devel gperf gtk2-devel icu java-devel libexif libxml2-devel mono-devel neon-devel orbit2-devel pam-devel patch perl-Archive-Zip perl-Compress-Zlib postgresql-devel python-devel recode unixODBC-devel unzip xml-commons-apis zip
2010-10-21 01:05:15 +02:00
############################
# basic stuff
%if 0%{?suse_version}
2011-09-07 17:41:42 +02:00
BuildRequires : db-devel krb5 openldap2-devel python-xml xorg-x11 xorg-x11-fonts
# LO-3.3 fixed all most annoying KDE4-related bugs => time to enable KDE4 support for SLED11
BuildRequires : libkde4-devel
2010-10-21 01:05:15 +02:00
%endif
%if 0%{?meego_version}
BuildRequires : db4-devel krb5-devel openldap-devel
BuildRequires : xorg-x11-server-devel
BuildRequires : xorg-x11-proto-xproto
BuildRequires : xorg-x11-utils
2011-09-07 17:41:42 +02:00
BuildRequires : libjpeg-devel libxslt-devel openssl-devel pkgconfig(gl) pkgconfig(glu) pkgconfig(xau) pkgconfig(xaw7)
BuildRequires : db4-devel krb5-devel openldap-devel
BuildRequires : imake
2010-10-21 01:05:15 +02:00
%endif
############################
2010-11-22 15:01:32 +01:00
# KDE3 stuff
2011-03-21 15:29:16 +01:00
%if 0%{?suse_version}
2010-11-22 15:01:32 +01:00
BuildRequires : kdelibs3-devel
%endif
############################
2011-09-07 17:41:42 +02:00
# cppunit stuff
%if 0%{?suse_version} >= 01100
BuildRequires : libcppunit-devel
2010-10-21 01:05:15 +02:00
%endif
2011-09-07 17:41:42 +02:00
%if 0%{?meego_version}
BuildRequires : cppunit-devel
2010-10-21 01:05:15 +02:00
%endif
2011-09-07 17:41:42 +02:00
############################
# mysql stuff
%if 0%{?suse_version}
BuildRequires : libmysqlclient-devel
2010-10-21 01:05:15 +02:00
%endif
2011-09-07 17:41:42 +02:00
%if 0%{?suse_version} > 01210
# mysqlcppconn >= 1.0.6 is needed
BuildRequires : libmysqlcppconn-devel
2010-10-21 01:05:15 +02:00
%endif
############################
2011-09-07 17:41:42 +02:00
# mozilla stuff
BuildRequires : mozilla-nspr-devel mozilla-nss-devel
############################
2010-10-21 01:05:15 +02:00
# expat stuff
%if 0%{?suse_version} > 01100
# libexpat-devel is explicitely needed since openSUSE-11.1
BuildRequires : libexpat-devel
%endif
%if 0%{?meego_version}
BuildRequires : expat-devel
%endif
############################
2011-09-07 17:41:42 +02:00
# lpsolve stuff
%if 0%{?suse_version} > 01100 || 0%{?meego_version}
# lpsolve-devel has been available since openSUSE-11.1
BuildRequires : lpsolve-devel
%endif
############################
2010-10-21 01:05:15 +02:00
# poppler is needed to build the PDF import extension
# the needed version 0.8.0 has been avaiable only since openSUSE-11.0
%if 0%{?suse_version} >= 01100
BuildRequires : libpoppler-devel
%endif
%if 0%{?meego_version}
BuildRequires : poppler-devel
%endif
############################
2011-09-07 17:41:42 +02:00
# junit stuff
%if %suse_version > 1110
BuildRequires : junit4
%endif
############################
2010-10-21 01:05:15 +02:00
# openSUSE 10.3 features
%if 0%{?suse_version} > 01020 || 0%{?meego_version}
BuildRequires : libicu-devel
%endif
############################
# openSUSE 11.0 features
%if 0%{?suse_version} > 01030 || 0%{?meego_version}
BuildRequires : hunspell-devel libwpd-devel libwpg-devel libwps-devel
%endif
############################
# CODE10 features
############################
%if 0%{?suse_version} > 01000
2011-09-26 10:08:32 +02:00
BuildRequires : gstreamer010-plugins-base-devel python-lxml sablot-devel xalan-j2 xerces-j2 xml-commons-apis
2010-10-21 01:05:15 +02:00
%endif
%if 0%{?meego_version}
BuildRequires : gst-plugins-base-devel sablot-devel xalan-j2 xerces-j2 xml-commons-apis
%endif
2011-09-07 17:41:42 +02:00
# FIXME: part of the language-dependant stuff is still built here and
# put into the -devel package
# test_build_langs: 0 = only en-US
# 1 = en-US, de, and cs
# 2 = all supported languages
%define test_build_langs 2
# test_build_binfilters: 0 = no
# 1 = yes
%define test_build_binfilters 1
# test_build_SDK: 0 = no
# 1 = yes (if possible, see below the definition of lo_build_sdk)
%define test_build_sdk 1
# build_module_in_parallel 0 = no
# 1 = yes (the number is defined be the number of cpus)
# 2,3,4... = yes (force the number of modules to be built in parallel)
%define build_module_in_parallel 1
# prepare_build: 0 = no
# 1 = yes (just build, install and create packages; without %%prep section and configure)
%define prepare_build 1
#
%if %test_build_langs == 0
%define lo_langs ""
%else
%if %test_build_langs == 1
%define lo_langs "en-US cs de hu ja"
%else
%define lo_langs "en-US af ar be bg br ca cs cy da de el en-GB en-ZA es et fi fr ga gl gu he hi hu hr it ja ka km ko lt mk nb nl nn nr pa-IN pl pt pt-BR ru rw sh sk sl sr ss st sv tg th tr ts uk ve vi xh zh-TW zh-CN zu"
%endif
%endif
%define lo_poor_help_localizations "af bg be br ca cy el fi ga he hr ka lt mk nb nn nr rw sh sr sk ss st tg th tr th ts uk ve vi xh zu"
# sdk stuff enable only on SL 10.2, SLED10 and higher
# force no if test_build_sdk is disabled
%if %test_build_sdk == 0
%define lo_build_sdk no
%else
%if 0%{?suse_version} > 01010 || 0%{?sles_version} == 010 || 0%{?meego_version}
%define lo_build_sdk yes
%else
%define lo_build_sdk no
%endif
%endif
# java target bytecode; should be compatible with the gcj
%if 0%{?suse_version} > 01030 || 0%{?meego_version}
%define java_target_version 1.5
%else
%define java_target_version 1.4
%endif
#
%define lo_prefix %_libdir
%define lo_home libreoffice
%define lo_basis_dir basis3.4
# extensions
%define ct2n_version 1.3.2
%define gdocs_version 2.1.0
%define numbertext_version 0.8.2
%if 0%{?meego_version}
# the manifest file must be in the right place; registration does not work with some repacked jars
%define __jar_repack %{nil}
%endif
Accepting request 74677 from LibreOffice:Unstable
- fixed typo in changelog
- updated to libreoffice-3.3.3.1 (3.3.3-rc1):
old: openSUSE:Factory/libreoffice
new: LibreOffice:Unstable/libreoffice rev NoneIndex: libreoffice.spec
===================================================================
--- libreoffice.spec (revision 17)
+++ libreoffice.spec (revision 31)
@@ -21,11 +21,11 @@
Name: libreoffice
# allow to use xulrunner191 on SLED11-SP1 (bnc#540726)
%define use_xulrunner191 no
-Version: 3.3.2.2
+Version: 3.3.3.1
Release: 1
%define piece postprocess
-%define ooo_build_version 3.3.2.2
-%define ooo_piece_version 3.3.2.2
+%define ooo_build_version 3.3.3.1
+%define ooo_piece_version 3.3.3.1
%define ooo_sourcedirname libreoffice-build-%ooo_piece_version
%define ooo_prefix %_libdir
%define ooo_home libreoffice
@@ -122,7 +122,7 @@
BuildRequires: libreoffice-ure-devel = %version
BuildRequires: libreoffice-writer-devel = %version
BuildRequires: libreoffice-filters-devel = %version
-License: LGPLv2.0 ; LGPLv3
+License: Artistic ; BSD3c ; GPLv2+ ; LPPL .. ; LGPLv2.1+ ; LGPLv3 ; MPL .. ; MIT
Group: Productivity/Office/Suite
AutoReqProv: on
Requires: libreoffice-ure = %version
@@ -248,7 +248,7 @@
- libreoffice-gnome
-Non-English localizations are provided by extra packges as well, for
+Non-English localizations are provided by extra packages as well, for
example:
- libreoffice-de
Index: libreoffice.changes
===================================================================
--- libreoffice.changes (revision 17)
+++ libreoffice.changes (revision 31)
@@ -1,4 +1,47 @@
-------------------------------------------------------------------
+Wed Jun 8 17:29:54 CEST 2011 - pmladek@suse.cz
+
+- updated to libreoffice-3.3.3.1 (3.3.3-rc1):
+ * build
+ * lost check boxes status during DOC import/export (fdo#34908)
+ * fixed regression of copy-paste of Writer table formulas (bnc#675961)
+ * calc
+ * sheet deletion crasher (bnc#680272)
+ * disabled auto-complete in Calc filter dialog (fdo#34898)
+ * PRODUCT function doesn't calculate correctly (lp#775608)
+ * extras
+ * replace SO icons to LO icons in Web Wizard (fdo#33229)
+ * filters
+ * avoid possibility of accessing out of range ObjTimes
+ * impress
+ * crash after printing (fdo#33947)
+ * send document as E-mail crasher (bnc#694119)
+ * libs-core
+ * updated license information (fdo#37001)
+ * fix evolution local addressbook integration
+ * potentially bogus file: URIs (fdo#33970, i#109096)
+ * replace "seagull" icons to LibreOffice icons (fdo#37617)
+ * use full path for kdefilepicker helper binary (fdo#31109)
+ * libs-extern
+ * crash in es thesaurus (rhbz#675806)
+ * libs-extern-sys
+ * update de_CH and de_AT dictionaries (fdo#33751)
+ * libs-gui
+ * hidden tabs in Impress tasks panel (fdo#34718)
+ * ure
+ * prefer gcc __sync functions over pthread
+ * allow .NET clients to bootstrap LibreOffice (fdo#35108)
+ * writer
+ * freeze/hang on mailmerge to attached PDF (fdo#32553)
+ * fix the positions of imported fields to avoid crashes (bnc#663622)
+ * correct ODT MIME type and PDF export filter (fdo#31792, fdo#32553)
+
+-------------------------------------------------------------------
+Wed Mar 23 20:08:17 CET 2011 - pmladek@suse.cz
+
+- libreoffice-3.3.2.2 == 3.3.2-rc2 == final
+
+-------------------------------------------------------------------
Fri Mar 18 16:40:02 CET 2011 - pmladek@suse.cz
- updated to libreoffice-3.3.2.2 (3.3.2-rc2):
Index: libreoffice-postprocess-3.3.3.1.tar.bz2
===================================================================
Binary file libreoffice-postprocess-3.3.3.1.tar.bz2 added
Index: libreoffice-postprocess-3.3.2.2.tar.bz2
===================================================================
Binary file libreoffice-postprocess-3.3.2.2.tar.bz2 deleted
OBS-URL: https://build.opensuse.org/request/show/74677
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libreoffice?expand=0&rev=18
2011-07-12 11:44:12 +02:00
License : Artistic ; BSD3c ; GPLv2+ ; LPPL .. ; LGPLv2.1+ ; LGPLv3 ; MPL .. ; MIT
2010-10-21 01:05:15 +02:00
Group : Productivity/Office/Suite
2011-09-19 17:50:45 +02:00
Version : 3.4.2.6
2011-09-07 17:41:42 +02:00
Release : 1
2010-10-21 01:05:15 +02:00
AutoReqProv : on
Requires : libreoffice-icon-themes = %version
2010-12-05 22:38:34 +01:00
Requires : libreoffice-branding > 3.2.99.3
2010-10-21 01:05:15 +02:00
Requires : libreoffice-branding < 4
# we need a JRE for oobase and the other stuff
%if 0%{?suse_version}
# gij is enough on SL 10.1 and higher
%if 0%{?suse_version} > 01000
# ---
%ifarch %ix86
# the 32-bit build requires 32-bit JRE, #222708
Recommends: jre-32 >= 1.6
%endif
# ---
%ifarch x86_64
%if 0%{?suse_version} > 01020
Recommends: jre-64 >= 1.6
%endif
# the 64-bit build does not work with Sun Java on older distributions, #219982
%if 0%{?suse_version} == 01020
Requires : gcc-gij
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 01020
Requires : libgcj
%endif
%endif
# ---
%ifarch ppc
%if 0%{?suse_version} > 01020
Recommends: jre-32 >= 1.6
%endif
# there were problems with the commercial Java on ppc on older distribtions
%if 0%{?suse_version} == 01020
Requires : gcc-gij
%endif
%if 0%{?suse_version} && 0%{?suse_version} < 01020
Requires : libgcj
%endif
%endif
%endif
%endif
%if 0%{?meego_version}
Requires : jre >= 1.5
%endif
# ---
Requires : xalan-j2 xerces-j2 xml-commons-apis
2011-02-21 15:30:09 +01:00
# post install scripts
%if 0%{?suse_version} > 01120
2011-09-07 17:41:42 +02:00
Requires(pre) : findutils
Requires(post) : gtk2 coreutils grep zip
Requires(postun) : gtk2 coreutils
2011-02-21 15:30:09 +01:00
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
2011-09-07 17:41:42 +02:00
PreReq : gtk2 findutils coreutils grep zip
2011-02-21 15:30:09 +01:00
%endif
2011-09-07 17:41:42 +02:00
# compat stuff
# bootstrap package
Provides : OpenOffice_org-bootstrap = %version
Obsoletes : OpenOffice_org-bootstrap < %version
# libreoffice package
Provides : OpenOffice_org = %version
Obsoletes : OpenOffice_org <= %version
# compatibility with the older split build used in the Build Service (bnc#471280)
# the l10n package was available only for a short time
# during the 11.1 alpha phase
Provides : OpenOffice_org-l10n-en-US = %version
Obsoletes : OpenOffice_org-l10n-en-US <= %version
# some other compat suff
Provides : OpenOffice_org17
Obsoletes : OpenOffice_org17
Provides : OpenOffice_org-en OpenOffice_org-en-help OpenOffice_org2
Obsoletes : OpenOffice_org-en OpenOffice_org-en-help OpenOffice_org2
Provides : OpenOffice_org-hunspell OpenOffice_org2-hunspell
Obsoletes : OpenOffice_org-hunspell OpenOffice_org2-hunspell
# KDE quickstarter do not support LO; we want to get rid of it anyway
Provides : OpenOffice_org-Quickstarter = 3.3.1
Obsoletes : OpenOffice_org-Quickstarter < 3.3.1
# split build compat stuff obsoleted with LO-3.4
# artwork
Provides : OpenOffice_org-artwork-devel = %version
Obsoletes : OpenOffice_org-artwork-devel = %version
Provides : libreoffice-artwork-devel = %version
Obsoletes : libreoffice-artwork-devel < %version
# bootstrap
Provides : OpenOffice_org-bootstrap = %version
Obsoletes : OpenOffice_org-bootstrap < %version
Provides : libreoffice-bootstrap = %version
Obsoletes : libreoffice-bootstrap < %version
# components
Provides : OpenOffice_org-components = %version
Obsoletes : OpenOffice_org-components < %version
Provides : OpenOffice_org-components-devel = %version
Obsoletes : OpenOffice_org-components-devel < %version
Provides : libreoffice-components = %version
Obsoletes : libreoffice-components < %version
Provides : libreoffice-components-devel = %version
Obsoletes : libreoffice-components-devel < %version
# filters
Provides : OpenOffice_org-filters = %version
Obsoletes : OpenOffice_org-filters < %version
Provides : OpenOffice_org-filters-devel = %version
Obsoletes : OpenOffice_org-filters-devel < %version
Provides : libreoffice-filters = %version
Obsoletes : libreoffice-filters < %version
Provides : libreoffice-filters-devel = %version
Obsoletes : libreoffice-filters-devel < %version
# l10n-extras
Provides : OpenOffice_org-l10n-extras = %version
Obsoletes : OpenOffice_org-l10n-extras < %version
Provides : OpenOffice_org-l10n-extras-devel = %version
Obsoletes : OpenOffice_org-l10n-extras-devel < %version
Provides : libreoffice-l10n-extras = %version
Obsoletes : libreoffice-l10n-extras < %version
Provides : libreoffice-l10n-extras-devel = %version
Obsoletes : libreoffice-l10n-extras-devel < %version
# libs-core
Provides : OpenOffice_org-libs-core = %version
Obsoletes : OpenOffice_org-libs-core < %version
Provides : OpenOffice_org-libs-core-devel = %version
Obsoletes : OpenOffice_org-libs-core-devel < %version
Provides : libreoffice-libs-core = %version
Obsoletes : libreoffice-libs-core < %version
Provides : libreoffice-libs-core-devel = %version
Obsoletes : libreoffice-libs-core-devel < %version
# libs-extern
Provides : OpenOffice_org-libs-extern = %version
Obsoletes : OpenOffice_org-libs-extern < %version
Provides : OpenOffice_org-libs-extern-devel = %version
Obsoletes : OpenOffice_org-libs-extern-devel < %version
Provides : libreoffice-libs-extern = %version
Obsoletes : libreoffice-libs-extern < %version
Provides : libreoffice-libs-extern-devel = %version
Obsoletes : libreoffice-libs-extern-devel < %version
# libs-gui
Provides : OpenOffice_org-libs-gui = %version
Obsoletes : OpenOffice_org-libs-gui < %version
Provides : OpenOffice_org-libs-gui-devel = %version
Obsoletes : OpenOffice_org-libs-gui-devel < %version
Provides : libreoffice-libs-gui = %version
Obsoletes : libreoffice-libs-gui < %version
Provides : libreoffice-libs-gui-devel = %version
Obsoletes : libreoffice-libs-gui-devel < %version
# testing
Provides : OpenOffice_org-testing = %version
Obsoletes : OpenOffice_org-testing < %version
Provides : libreoffice-testing = %version
Obsoletes : libreoffice-testing < %version
# ure
Provides : OpenOffice_org-ure = %version
Obsoletes : OpenOffice_org-ure < %version
Provides : libreoffice-ure = %version
Obsoletes : libreoffice-ure < %version
################
# make sure the rename to libreoffice* is complete
# SLED11-only
%if 0%{?suse_version} > 01100 && 0%{?suse_version} <= 01110
Conflicts : OpenOffice_org-hyphen < 20110216
Conflicts : OpenOffice_org-thesaurus < 20070719.1
Conflicts : OpenOffice_org-thesaurus-de < 20080406.1
Conflicts : OpenOffice_org-thesaurus-de-CH < 20080406.1
Conflicts : OpenOffice_org-thesaurus-fr < 20060511.1
Conflicts : OpenOffice_org-thesaurus-ne < 1.1.0.1
Conflicts : OpenOffice_org-thesaurus-pl < 20061223.1
Conflicts : OpenOffice_org-thesaurus-pt < 20060817.1
Conflicts : OpenOffice_org-thesaurus-ro < 20080920.1
Conflicts : OpenOffice_org-thesaurus-ru < 20061016.1
Conflicts : OpenOffice_org-thesaurus-sk < 20080926.1
Conflicts : OpenOffice_org-thesaurus-sv < 20080609.1
%endif
# openSUSE-11.2 and 11.3 only
%if 0%{?suse_version} > 01110 && 0%{?suse_version} <= 01130
Conflicts : OpenOffice_org-icon-theme-crystal < 3.3.1
Conflicts : OpenOffice_org-icon-theme-tango < 3.3.1
Conflicts : OpenOffice_org-icon-theme-andromeda < 3.3.1
Conflicts : OpenOffice_org-icon-theme-galaxy < 3.3.1
Conflicts : OpenOffice_org-icon-theme-hicontrast < 3.3.1
Conflicts : OpenOffice_org-icon-theme-industrial < 3.3.1
Conflicts : OpenOffice_org-icon-theme-oxygen < 3.3.1
Conflicts : OpenOffice_org-voikko < 3.1.2
Conflicts : OpenOffice_org-hyphen < 20110203.1
Conflicts : OpenOffice_org-templates-ru < 3.3
Conflicts : OpenOffice_org-thesaurus-ca < 1.5.0.1
Conflicts : OpenOffice_org-thesaurus-da < 20100126.1
Conflicts : OpenOffice_org-thesaurus-de < 20100307.1
Conflicts : OpenOffice_org-thesaurus-de-AT < 20100307.1
Conflicts : OpenOffice_org-thesaurus-de-CH < 20100307.1
Conflicts : OpenOffice_org-thesaurus-en-AU < 20081215.1
Conflicts : OpenOffice_org-thesaurus-en-GB < 20051128.1
Conflicts : OpenOffice_org-thesaurus-en-US < 20060111.1
Conflicts : OpenOffice_org-thesaurus-es-AR < 0.1.1
Conflicts : OpenOffice_org-thesaurus-es-VE < 1.0.1.1
Conflicts : OpenOffice_org-thesaurus-fr < 20100125.1
Conflicts : OpenOffice_org-thesaurus-it < 20081129.1
Conflicts : OpenOffice_org-thesaurus-ne < 1.1.1
Conflicts : OpenOffice_org-thesaurus-pl < 20081206.1
Conflicts : OpenOffice_org-thesaurus-pt < 20091015.1
Conflicts : OpenOffice_org-thesaurus-ro < 20091130.1
Conflicts : OpenOffice_org-thesaurus-ru < 20081013.1
Conflicts : OpenOffice_org-thesaurus-sk < 20100208.1
Conflicts : OpenOffice_org-thesaurus-sv < 20090624.1
%endif
# SLED11 + openSUSE-11.2 + 11.3
%if 0%{?suse_version} > 01100 && 0%{?suse_version} <= 01130
Conflicts : OpenOffice_org-openclipart < 3.3
Conflicts : OpenOffice_org-LanguageTool < 1.2
Conflicts : OpenOffice_org-LanguageTool-de < 1.2
Conflicts : OpenOffice_org-LanguageTool-en < 1.2
Conflicts : OpenOffice_org-LanguageTool-es < 1.2
Conflicts : OpenOffice_org-LanguageTool-fr < 1.2
Conflicts : OpenOffice_org-LanguageTool-it < 1.2
Conflicts : OpenOffice_org-LanguageTool-nl < 1.2
Conflicts : OpenOffice_org-LanguageTool-pl < 1.2
Conflicts : OpenOffice_org-LanguageTool-sv < 1.2
Conflicts : OpenOffice_org-templates-presentation-layouts < 3.3
Conflicts : OpenOffice_org-templates-labels-a4 < 1.0.1
Conflicts : OpenOffice_org-templates-labels-letter < 1.0.1
Conflicts : OpenOffice_org-templates-de < 3.3
Conflicts : OpenOffice_org-templates-en < 3.3
Conflicts : OpenOffice_org-thesaurus-bg < 20071210.1
Conflicts : OpenOffice_org-thesaurus-cs < 20070913.1
Conflicts : OpenOffice_org-thesaurus-el < 20061203.1
Conflicts : OpenOffice_org-thesaurus-en < 20060111.1
Conflicts : OpenOffice_org-thesaurus-es < 20050720.1
Conflicts : OpenOffice_org-thesaurus-ga < 20071002.1
Conflicts : OpenOffice_org-thesaurus-hu < 20080319.1
Conflicts : OpenOffice_org-thesaurus-nb < 20080310.1
Conflicts : OpenOffice_org-thesaurus-sl < 20080601.1
Conflicts : OpenOffice_org-converter < 3.3
Provides : OpenOffice_org-Quickstarter = 3.3.1
Obsoletes : OpenOffice_org-Quickstarter < 3.3.1
%endif
#
2010-10-21 01:05:15 +02:00
Summary : A Free Office Suite (Framework)
2010-12-05 22:38:34 +01:00
Url : http://www.documentfoundation.org/
2011-09-07 17:41:42 +02:00
Source0 : libreoffice-bootstrap-%version.tar.bz2
Source1 : libreoffice-artwork-%version.tar.bz2
Source2 : libreoffice-base-%version.tar.bz2
Source3 : libreoffice-calc-%version.tar.bz2
Source4 : libreoffice-components-%version.tar.bz2
Source5 : libreoffice-extensions-%version.tar.bz2
Source6 : libreoffice-extras-%version.tar.bz2
Source7 : libreoffice-filters-%version.tar.bz2
Source8 : libreoffice-help-%version.tar.bz2
Source9 : libreoffice-impress-%version.tar.bz2
Source10 : libreoffice-libs-core-%version.tar.bz2
Source11 : libreoffice-libs-extern-sys-%version.tar.bz2
Source12 : libreoffice-libs-extern-%version.tar.bz2
Source13 : libreoffice-libs-gui-%version.tar.bz2
Source14 : libreoffice-postprocess-%version.tar.bz2
Source15 : libreoffice-sdk-%version.tar.bz2
Source16 : libreoffice-testing-%version.tar.bz2
Source17 : libreoffice-translations-%version.tar.bz2
Source18 : libreoffice-ure-%version.tar.bz2
Source19 : libreoffice-writer-%version.tar.bz2
# SUSE config files
Source100 : SUSE.conf
Source101 : SUSE-10.1.conf
Source102 : SUSE-11.1.conf
Source103 : SUSE-11.2.conf
Source104 : SUSE-11.3.conf
Source105 : SUSE-11.4.conf
# rpmlint complains about devel files in non-devel package
# but we would like to keep the sdk package name
# We would like to keep the -bootstrap package name
# So we need to disable these rpmlint checks
Source200 : %name-rpmlintrc
# Prebuilt sofficerc for the noarch upstream branding package
Source201 : sofficerc-upstream
2011-09-19 17:50:45 +02:00
# This background is used by another Novell product, added 2006-02-08
Source202 : Draft.jpg
2011-09-07 17:41:42 +02:00
# helper scripts
# create compat symlinks from /usr/share to /usr/lib(64); used by noarch packages
Source300 : link-to-ooo-home
# extensions
Source400 : README-scsolver.txt
# prebuilt extensions
Source401 : gdocs_%{gdocs_version} _modified.oxt
Source402 : numbertext-%{numbertext_version} .oxt
# used extensions sources
Source450 : 451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt
Source451 : 451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.zip
Source452 : 90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2
# unused extensions sources
# FIXME: this is just because of license; we do not build gdocs from sources now
# gdocs sources
Source500 : gdocs_%{gdocs_version} .tar.bz2
Source501 : gdocs_%{gdocs_version} .diff
# gdata-*.jar and google-*.jar are under Apache License, Version 2.0
# activation.jar is part of "JavaTM Web Services Developer Pack 1.5 Release
# Notes" and is mentioned there between "Redistributable Components", see
# http://java.sun.com/webservices/docs/1.5/ReleaseNotes.html#RedistributableComponents
# mail-1.4-sources.jar is taken from http://ftp.us.xemacs.org/pub/mirrors/maven2/javax/mail/mail/1.4/
# the mail-1.4.jar in the above URL is not exactly the same but it is evident that it is built from the same sources:
# class files are exactly the same; sligtly newer ant and Sun JRE has been used for the build;
# text files has DOS end of lines
Source502 : mail-1.4-sources.jar
# taken from netbeans-6.8 installed from netbeans-6.8-ml-javase-linux.sh
Source503 : AbsoluteLayout.tar.bz2
# taken from netbeans-6.8 installed from netbeans-6.8-ml-javase-linux.sh
Source504 : swing-layout-1.0.4-doc.zip
# taken from netbeans-6.8 installed from netbeans-6.8-ml-javase-linux.sh
Source505 : swing-layout-1.0.4-src.zip
# FIXME: hack the provides and requires (bnc#411538)
# make sure external scripts are used
%define _use_internal_dependency_generator 0
%define __find_provides /bin/sh %_sourcedir/lo-provides %name
%define __find_requires /bin/sh %_sourcedir/lo-requires %name
Source900 : lo-provides
Source901 : lo-requires
#
# offical external source
Source1000 : ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
Source1001 : ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip
Source1002 : af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz
Source1003 : a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
Source1004 : ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
Source1005 : b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2
Source1006 : ca66e26082cab8bb817185a116db809b-redland-1.0.8.tar.gz
Source1007 : db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
Source1008 : d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
Source1009 : ea570af93c284aa9e5621cd563f54f4d-bsh-2.0b1-src.tar.gz
Source1010 : ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz
Source1011 : eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
Source1012 : fca8706f2c4619e2fa3f8f42f8fc1e9d-rasqal-0.9.16.tar.gz
Source1013 : fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz
Source1014 : f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
Source1015 : 3115c721f5cb7c464f01c2dddccfaba6-graphite2-1.0.2.tgz
Source1016 : 067201ea8b126597670b5eff72e1f66c-mythes-1.2.0.tar.gz
Source1017 : 1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
Source1018 : 128cfc86ed5953e57fe0f5ae98b62c2e-libtextcat-2.2.tar.gz
Source1019 : 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
Source1020 : 1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz
Source1021 : 185d60944ea767075d27247c3162b3bc-unowinreg.dll
Source1022 : 2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz
Source1023 : 2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz
Source1024 : 2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz
Source1025 : 284e768eeda0e2898b0d5bf7e26a016e-raptor-1.4.18.tar.gz
Source1026 : 3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
Source1027 : 3c219630e4302863a9a83d0efde889db-commons-logging-1.1.1-src.tar.gz
Source1028 : 3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
Source1029 : 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
Source1030 : 39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
Source1031 : 48a9f787f43a09c0a9b7b00cd1fddbbf-hyphen-2.7.1.tar.gz
Source1032 : 48d8169acc35f97e05d8dcdfd45be7f2-lucene-2.3.2.tar.gz
Source1033 : 5ba6a61a2f66dfd5fee8cdd4cd262a37-libwpg-0.2.0.tar.bz2
Source1034 : 0ff7d225d087793c8c2c680d77aac3e7-mdds_0.5.3.tar.bz2
Source1035 : 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
Source1036 : 8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
Source1037 : 8d265a592619166f29c4672ea54812b7-libwpd-0.9.2.tar.bz2
Source1038 : 83d4029aebf290c0a9a8fee9c99638d3-libwps-0.2.1.tar.bz2
Source1039 : 97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
Source1040 : 831126a1ee5af269923cfab6050769fe-mysql-connector-cpp.zip
#
# allow to build without helpcontent2
Patch0 : libreoffice-bootstrap-optional-helpcontent.diff
Patch1 : libreoffice-postprocess-optional-helpcontent.diff
# search application icons in /usr/share
# FIXME: search both lib and lib64 and push into git
Patch2 : split-icons-search-usr-share.diff
# search help icons in /usr/share
# FIXME: make it configurable in integrate into git
Patch3 : officecfg-help-in-usr-share.diff
# slower patching to debug and hopefully fix parallel build of ct2n extension; always happened only in the Build Service (bnc#595550)
Patch4 : solenv-carefull-patching-hack.diff
# change user config dir name from ~/.libreoffice/3 to ~/.libreoffice/3-suse
# to avoid BerkleyDB incompatibility with the plain build
Patch5 : scp2-user-config-suse.diff
# it created 3.8GB build log; Build Service refused to build such package
Patch6 : translations-no-warnigns-from-po2oo.diff
# build gengal again
Patch7 : gengal-svx.diff
Patch8 : gengal-scp2.diff
# search <lo-home>/share/template/common for language independent templates
# will not push it upstream because it will be replaced by upcomming kendy's work
Patch9 : office-cfg-linux-common-template-dir.diff
# correctly bootstrap python stuff with system python, (deb#501028, i#90701)
Patch10 : system-python-ure-bootstrap.diff
# do not use the broken help; unopkg complained about it when registering extensions
# FIXME: the right fix is to compile the help and produce the .db_, .ht_, and other files
Patch11 : nlpsolver-no-broken-help.diff
2011-09-19 17:50:45 +02:00
# make sure that the extra jar files are bundled with the script provider extensions
Patch12 : scripting-provider-build-dep.diff
2011-09-26 10:08:32 +02:00
# fix build with poppler 0.17.0
Patch13 : libreoffice-poppler-0.17.0.patch
2011-10-11 17:58:40 +02:00
# fix a crash on exit (backport from master)
Patch14 : desktop-null-display-crash.diff
# fix build dependency problem in svx
Patch15 : svx-globlmn-hrc-build-dep.diff
2011-09-07 17:41:42 +02:00
#
# PostgreSQL SDBC driver
Patch801 : 801-sdbc-postgresql.diff
Patch802 : 802-sdbc-postgresql-build-lst.diff
Patch803 : 803-connectivity-workben-postgresql.diff
Patch804 : 804-gcc-4.3-postgresql.diff
Patch805 : 805-sdbc-postgresql-config_office.diff
Patch806 : 806-sdbc-postgresql-oxt.diff
Patch807 : 807-sdbc-postgresql-obsolete-hash-map.diff
Patch808 : 808-sdbc-postgresql-deliver.diff
Patch809 : 809-sdbc-postgresql-gcc-4.6.diff
# fix component mapping to get the symbol component_writeInfo; related to http://www.openoffice.org/issues/show_bug.cgi?id=115423
Patch810 : 810-sdbc-postgresql-lo-3.4-registration.diff
# Firefox changed the development model, so there is not longer a stable API
# only mozilla-nss and mozilla-nspr packages are supported but not the XUL stuff
# these patches disable the mozilla plugin that needed the XUL stuff
# it was not enabled by default; it newer worked well
Patch831 : 831-mozilla-no-xul-config.diff
Patch832 : 832-mozilla-no-xul-cui.diff
Patch833 : 833-mozilla-no-xul-extensions.diff
Patch834 : 834-mozilla-no-xul-scp2.diff
#
# default to MS Office 97/2000/XP file formats on MeeGo; asked by HP
Patch900 : officecfg-defaul-export-ms-file-formats.diff
# fix build with gcc-4.6 on openSUSE-12.0; hack my Caolan McNamara, see http://permalink.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/10987
Patch910 : vbahelper-sc-gcc-4.6-link-fix.diff
2011-09-19 17:50:45 +02:00
# crazy hack to avoid /usr/lib64 in RPATH and pass brp-rpath check (bnc#717262)
Patch920 : redland-rpath-hack.diff
2011-09-07 17:41:42 +02:00
#
2010-10-21 01:05:15 +02:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
ExclusiveArch : %ix86 x86_64 ppc
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%description
2010-12-05 22:38:34 +01:00
LibreOffice is a comprehensive office package featuring a word
2010-10-21 01:05:15 +02:00
processor, a spreadsheet, a presentation program, and much more. This
package provides only the basic framework. You have to install the
additional modules to get the required functionality, see packages:
- libreoffice-base
- libreoffice-calc
- libreoffice-draw
- libreoffice-impress
- libreoffice-math
- libreoffice-writer
Some optional features are provided by extra packages, for example:
- libreoffice-mailmerge
- libreoffice-filters
- libreoffice-kde
- libreoffice-gnome
2011-09-07 17:41:42 +02:00
Non-English localizations are provided by extra packges as well, for
2010-10-21 01:05:15 +02:00
example:
- libreoffice-de
- libreoffice-fr
- libreoffice-it
2011-09-07 17:41:42 +02:00
%package base
License : LGPLv3
Summary : LibreOffice Base
Group : Productivity/Office/Suite
Requires : %name = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-base = %version
Obsoletes : OpenOffice_org-base < %version
# split build compat stuff obsoleted with LO-3.4
Provides : OpenOffice_org-base-devel = %version
Obsoletes : OpenOffice_org-base-devel < %version
Provides : libreoffice-base-devel = %version
Obsoletes : libreoffice-base-devel < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description base
This module allows you to manage databases, create queries and reports
to track and manage your information by using LibreOffice office
suite.
%package calc
License : LGPLv3
Summary : LibreOffice Calc
Group : Productivity/Office/Suite
Requires : %name = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-calc = %version
Obsoletes : OpenOffice_org-calc < %version
# split build compat stuff obsoleted with LO-3.4
Provides : OpenOffice_org-calc-devel = %version
Obsoletes : OpenOffice_org-calc-devel < %version
Provides : libreoffice-calc-devel = %version
Obsoletes : libreoffice-calc-devel < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description calc
This module allows you to perform calculation, analyze information and
manage lists in spreadsheets by using LibreOffice office suite.
%package draw
License : LGPLv3
Summary : LibreOffice Draw
Group : Productivity/Office/Suite
Requires : %name = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-draw = %version
Obsoletes : OpenOffice_org-draw < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description draw
This module allows you to create and edit drawings, flow charts, and
logos by using LibreOffice office suite.
2010-10-21 01:05:15 +02:00
2011-09-07 17:41:42 +02:00
%package math
License : LGPLv3
Summary : LibreOffice Math
Group : Productivity/Office/Suite
Requires : %name = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-math = %version
Obsoletes : OpenOffice_org-math < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description math
This module allows you to create and edit scientific formulas and
equations by using LibreOffice office suite.
%package impress
License : LGPLv3
Summary : LibreOffice Impress
Group : Productivity/Office/Suite
Requires : %name = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-impress = %version
Obsoletes : OpenOffice_org-impress < %version
# split build compat stuff obsoleted with LO-3.4
Provides : OpenOffice_org-impress-devel = %version
Obsoletes : OpenOffice_org-impress-devel < %version
Provides : libreoffice-impress-devel = %version
Obsoletes : libreoffice-impress-devel < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description impress
This module allows you to create and edit presentations for slideshows,
meeting and Web pages by using LibreOffice office suite.
%package writer
License : LGPLv3
Summary : LibreOffice Writer and Web
Group : Productivity/Office/Suite
Requires : %name = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-writer = %version
Obsoletes : OpenOffice_org-writer < %version
# split build compat stuff obsoleted with LO-3.4
Provides : OpenOffice_org-writer-devel = %version
Obsoletes : OpenOffice_org-writer-devel < %version
Provides : libreoffice-writer-devel = %version
Obsoletes : libreoffice-writer-devel < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description writer
This module allows you to create and edit text and graphics in letters,
reports, documents and Web pages by using LibreOffice office suite.
%package base-drivers-postgresql
License : LGPLv2.1+
Summary : PostgreSQL Database Driver for LibreOffice
Group : Productivity/Office/Suite
Requires : postgresql
# compat stuff
Provides : OpenOffice_org-base-drivers-postgresql = %version
Obsoletes : OpenOffice_org-base-drivers-postgresql < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description base-drivers-postgresql
This package allows to access PostgreSQL databases from LibreOffice
Base.
%package filters-optional
License : LGPLv3
Summary : Additional Import and Export Filters for LibreOffice
Group : Productivity/Office/Suite
Requires : %name-calc = %version
Requires : %name-draw = %version
Requires : %name-math = %version
Requires : %name-writer = %version
Requires : %name-impress = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-filters-optional = %version
Obsoletes : OpenOffice_org-filters-optional < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description filters-optional
This package includes some additional import and export filters for
LibreOffice:
- AportisDoc (Palm)
- Pocket Excel
- Pocket Word
- DocBook
- XHTML
%package mailmerge
License : LGPLv3
Summary : Mail Merge Functionality for LibreOffice
Group : Productivity/Office/Suite
Requires : %name-pyuno = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-mailmerge = %version
Obsoletes : OpenOffice_org-mailmerge < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description mailmerge
This module allows you to create form letters or send E-mail messages
to many recipients using LibreOffice office suite.
%if 0%{?suse_version} <= 01130
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%package mono
License : LGPLv3
Summary : Mono UNO Bridge for LibreOffice
Group : Productivity/Office/Suite
Requires : mono-core
Requires : %name = %version
# compat stuff
Provides : OpenOffice_org-mono = %version
Obsoletes : OpenOffice_org-mono < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description mono
The Mono/UNO binding allows a Mono application to access the complete
set of APIs exposed by LibreOffice via UNO. A trivial example
use-case might be a small mono application to create a spreadsheet,
populate it with data, charts, formatting, then save that in Excel
format.
Currently the use of Mono for add-ins & scripting inside OO.o itself is
not supported.
%endif
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%package pyuno
License : LGPLv3
Summary : Python UNO Bridge for LibreOffice
Group : Productivity/Office/Suite
Requires : %name = %version
%if 0%{?suse_version}
Supplements: %name
%endif
# compat stuff
Provides : OpenOffice_org-pyuno = %version
Obsoletes : OpenOffice_org-pyuno < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description pyuno
The Python-UNO bridge allows to use the standard LibreOffice API
from the well known Python scripting language. It can be used to
develop UNO components in python, thus python UNO components may be run
within the LibreOffice process and can be called from Java, C++ or
the built in StarBasic scripting language. You can create and invoke
scripts with the office scripting framework (OOo 2.0 and later) with
it. For example, it is used for the mail merge functionality.
You can find the more information at
http://udk.openoffice.org/python/python-bridge.html
%package testtool
License : LGPLv3
Summary : LibreOffice Test Tool
Group : Productivity/Office/Suite
Requires : %name = %version
# compat stuff
Provides : OpenOffice_org-testtool = %version
Obsoletes : OpenOffice_org-testtool < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description testtool
A Tool needed for automatic testing of LibreOffice office suite.
%package gnome
License : LGPLv3
Summary : GNOME Extensions for LibreOffice
Group : Productivity/Office/Suite
Requires : %name = %version
# compat stuff
Provides : OpenOffice_org17-gnome
Obsoletes : OpenOffice_org17-gnome
Provides : OpenOffice_org2-gnome
Obsoletes : OpenOffice_org2-gnome
Provides : OpenOffice_org-gnome = %version
Obsoletes : OpenOffice_org-gnome < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description gnome
This package contains some GNOME extensions for LibreOffice.
%package kde
License : LGPLv3
Summary : KDE Extensions for LibreOffice
Group : Productivity/Office/Suite
Requires : %name = %version
# compat stuff
Provides : OpenOffice_org17-kde
Obsoletes : OpenOffice_org17-kde
Provides : OpenOffice_org2-kde
Obsoletes : OpenOffice_org2-kde
Provides : OpenOffice_org-kde = %version
Obsoletes : OpenOffice_org-kde < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description kde
This package contains some KDE extensions for LibreOffice.
%package kde4
License : LGPLv3
Summary : KDE4 Extensions for LibreOffice
Group : Productivity/Office/Suite
Requires : %name = %version
# compat stuff
Provides : OpenOffice_org-kde4 = %version
Obsoletes : OpenOffice_org-kde4 < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description kde4
This package contains some KDE4 extensions for LibreOffice.
%if %lo_build_sdk == yes
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%package sdk
License : LGPLv3
Summary : LibreOffice SDK
Group : Documentation/HTML
Requires : %name = %version
Requires : make,zip,gcc-c++
%if %suse_version > 1000
Recommends: java-devel
%endif
# split build compat stuff obsoleted with LO-3.4
Provides : OpenOffice_org-ure-devel = %version
Obsoletes : OpenOffice_org-ure-devel < %version
Provides : libreoffice-ure-devel = %version
Obsoletes : libreoffice-ure-devel < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description sdk
This package contains the files needed to build plugins/add-ons for
LibreOffice. It includes header files, IDL files, needed build
tools, etc.
The documentation is in the package OpenOffice_org-sdk-doc
%package sdk-doc
License : LGPLv3
Summary : LibreOffice SDK Documentation
Group : Development/Libraries/Other
%if %suse_version > 1000
Suggests : %name-sdk = %version
Enhances: %name-sdk = %version
%endif
# split build compat stuff obsoleted with LO-3.4
Provides : OpenOffice_org-ure-devel-doc = %version
Obsoletes : OpenOffice_org-ure-devel-doc < %version
Provides : libreoffice-ure-devel-doc = %version
Obsoletes : libreoffice-ure-devel-doc < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description sdk-doc
This package includes documentation and examples for the LibreOffice
Software Development Kit (SDK).
%endif
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%package officebean
License : LGPLv3
Summary : OfficeBean Java Bean component for LibreOffice
Group : Productivity/Office/Suite
Requires : %name = %version
# compat stuff
Provides : OpenOffice_org:/usr/lib/ooo-2.0/program/libofficebean.so
Provides : OpenOffice_org2-officebean = %version
Obsoletes : OpenOffice_org2-officebean < %version
Provides : OpenOffice_org-officebean = %version
Obsoletes : OpenOffice_org-officebean < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description officebean
With the OfficeBean, a developer can easily write Java applications,
harnessing the power of LibreOffice. It encapsulates a connection to
a locally running LibreOffice process, and hides the complexity of
establishing and maintaining that connection from the developer.
It also allows embedding of LibreOffice documents within the Java
environment. It provides an interface the developer can use to obtain
Java AWT windows into which the backend LibreOffice process draws
its visual representation. These windows are then plugged into the UI
hierarchy of the hosting Java application. The embedded document is
controlled from the Java environment, since the OfficeBean allows
developers to access the complete LibreOffice API from their Java
environment giving them full control over the embedded document, its
appearance and behavior.
%package base-extensions
License : GPLv2 ; LGPLv2.1; LGPLv3 ; Other uncritical OpenSource License
Summary : LibreOffice Base Extensions
Group : Productivity/Office/Suite
PreReq : libreoffice = %version
Requires : libreoffice-base = %version
%if 0%{?suse_version} && 0%{?suse_version} < 01120
# use wake dependency for the mysql driver on older distros
# the extension is unpacked and the dependency automatically detected on newer
# distros
Recommends: libmysqlclient15
%endif
# compat stuff
Provides : OpenOffice_org-base-extensions = %version
Obsoletes : OpenOffice_org-base-extensions < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description base-extensions
This package provides extensions for LibreOffice Base:
%if 0%{?suse_version} && 0%{?suse_version} < 01120
- MySQL connector
%endif
- Report Builder
# new packages are not allowed on SLED11
# put the mysql driver into separate package on newer distros
%if 0%{?suse_version} >= 01120
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%package base-drivers-mysql
License : GPLv2 ; LGPLv3
Summary : MySQL Database Driver for LibreOffice
Group : Productivity/Office/Suite
PreReq : libreoffice = %version
Requires : libreoffice-base = %version
Supplements: packageand(libreoffice-base:mysql-client)
# compat stuff
Provides : OpenOffice_org-base-drivers-mysql = %version
Obsoletes : OpenOffice_org-base-drivers-mysql < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description base-drivers-mysql
This package allows to access MySQL databases from LibreOffice
Base.
%endif
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%package calc-extensions
License : LGPLv2.1+,LGPLv3
Summary : LibreOffice Calc Extensions
Group : Productivity/Office/Suite
PreReq : libreoffice = %version
Requires : libreoffice-calc = %version
# pyuno is needed for the numbertext extension
Requires : libreoffice-pyuno = %version
# the watchWindow extension is written in java
%if 0%{?suse_version}
# the gcj is required by the main package on 10.2 and lower
%if %suse_version > 01020
%ifarch %ix86 ppc
# the 32-bit build requires 32-bit JRE, bnc#222708
Recommends: jre-32 >= 1.6
%if 0%{?suse_version} > 01110
# jre-32 is not provided by the preferred openjdk until openSUSE-11.2
Requires : jre-32 > 1.5
%endif
%endif
# ---
%ifarch x86_64
Recommends: jre-64 >= 1.6
%if 0%{?suse_version} > 01110
# jre-64 is not provided by the preferred openjdk until openSUSE-11.2
Requires : jre-64 > 1.5
%endif
%endif
%endif
%endif
%if 0%{?meego_version}
Requires : jre >= 1.5
%endif
# compat stuff
Provides : OpenOffice_org-calc-extensions = %version
Obsoletes : OpenOffice_org-calc-extensions < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description calc-extensions
This package provides extensions for LibreOffice Calc:
- Convert Text to Number
- New Functions NUMBERTEXT and MONEYTEXT
- Solver for Nonlinear Programming
%package draw-extensions
License : LGPLv3
Summary : LibreOffice Draw Extensions
Group : Productivity/Office/Suite
PreReq : libreoffice = %version
Requires : libreoffice-draw = %version
# compat stuff
Provides : OpenOffice_org-draw-extensions = %version
Obsoletes : OpenOffice_org-draw-extensions < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description draw-extensions
This package provides extensions for LibreOffice Draw:
- PDF Import
%package impress-extensions
License : LGPLv3
Summary : LibreOffice Impress Extensions
Group : Productivity/Office/Suite
PreReq : libreoffice = %version
Requires : libreoffice-impress = %version
# compat stuff
Provides : OpenOffice_org-impress-extensions = %version
Obsoletes : OpenOffice_org-impress-extensions < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description impress-extensions
This package provides extensions for LibreOffice Impress:
- Presentation Minimizer
- Presenter Console
%package writer-extensions
License : LGPLv3 ; ASLv.. ; CDDL ; Other uncritical OpenSource License
Summary : LibreOffice Writer Extensions
Group : Productivity/Office/Suite
PreReq : libreoffice = %version
Requires : libreoffice-writer = %version
# the wiki extension is written in java
%if 0%{?suse_version}
# the gcj is required by the main package on 10.2 and lower
%if 0%{?suse_version} > 01020
%ifarch %ix86 ppc
# the 32-bit build requires 32-bit JRE, bnc#222708
Recommends: jre-32 >= 1.6
%if 0%{?suse_version} > 01110
# jre-32 is not provided by the preferred openjdk until openSUSE-11.2
Requires : jre-32 > 1.5
%endif
%endif
# ---
%ifarch x86_64
Recommends: jre-64 >= 1.6
%if %suse_version > 01110
# jre-64 is not provided by the preferred openjdk until openSUSE-11.2
Requires : jre-64 > 1.5
%endif
%endif
%endif
%endif
%if 0%{?meego_version}
Requires : jre >= 1.5
%endif
# compat stuff
Provides : OpenOffice_org-writer-extensions = %version
Obsoletes : OpenOffice_org-writer-extensions < %version
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%description writer-extensions
This package provides extensions for LibreOffice Writer:
- Google Docs, Zoho, and WebDAV Export/Import
- MediaWiki Publisher
%package icon-themes-prebuilt
License : LGPL v2.0 only; LGPLv3
2010-12-05 22:38:34 +01:00
Summary : Prebuilt LibreOffice Icon Themes
2010-10-21 01:05:15 +02:00
Group : Development/Sources
AutoReqProv : off
# compat stuff
Provides : OpenOffice_org-icon-themes-prebuilt = %version
2011-09-07 17:41:42 +02:00
Obsoletes : OpenOffice_org-icon-themes-prebuilt < %version
2010-10-21 01:05:15 +02:00
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%description icon-themes-prebuilt
2010-12-05 22:38:34 +01:00
This package includes the prebuilt LibreOffice Icon Themes. It is
2010-10-21 01:05:15 +02:00
not intended for real use. It needs to be repacked to the real
architecture independent package.
This is only temporary solution to get an installable set of
2010-12-05 22:38:34 +01:00
LibreOffice packages for a new version as fast as possible. The
2010-10-21 01:05:15 +02:00
architecture independent package will be built from the original
sources in the future.
2011-09-07 17:41:42 +02:00
%package l10n-prebuilt
License : LGPL v2.0 only; LGPLv3
Summary : Prebuilt LibreOffice Localization
Group : Development/Sources
2010-11-22 15:01:32 +01:00
AutoReqProv : off
# compat stuff
Provides : OpenOffice_org-l10n-prebuilt = %version
2011-09-07 17:41:42 +02:00
Obsoletes : OpenOffice_org-l10n-prebuilt < %version
# split build compat stuff obsoleted with LO-3.4
# components
Provides : OpenOffice_org-components-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-components-l10n-prebuilt < %version
Provides : libreoffice-components-l10n-prebuilt = %version
Obsoletes : libreoffice-components-l10n-prebuilt < %version
# extensions
Provides : OpenOffice_org-extensions = %version
Obsoletes : OpenOffice_org-extensions < %version
# filters
Provides : OpenOffice_org-filters-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-filters-l10n-prebuilt < %version
Provides : libreoffice-filters-l10n-prebuilt = %version
Obsoletes : libreoffice-filters-l10n-prebuilt < %version
# l10n-extras
Provides : OpenOffice_org-l10n-extras-prebuilt = %version
Obsoletes : OpenOffice_org-l10n-extras-prebuilt < %version
Provides : libreoffice-l10n-extras-prebuilt = %version
Obsoletes : libreoffice-l10n-extras-prebuilt < %version
# libs-core
Provides : OpenOffice_org-libs-core-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-libs-core-l10n-prebuilt < %version
Provides : libreoffice-libs-core-l10n-prebuilt = %version
Obsoletes : libreoffice-libs-core-l10n-prebuilt < %version
# libs-extern
Provides : OpenOffice_org-libs-extern-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-libs-extern-l10n-prebuilt < %version
Provides : libreoffice-libs-extern-l10n-prebuilt = %version
Obsoletes : libreoffice-libs-extern-l10n-prebuilt < %version
# libs-gui
Provides : OpenOffice_org-libs-gui-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-libs-gui-l10n-prebuilt < %version
Provides : libreoffice-libs-gui-l10n-prebuilt = %version
Obsoletes : libreoffice-libs-gui-l10n-prebuilt < %version
# base
Provides : OpenOffice_org-base-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-base-l10n-prebuilt < %version
Provides : libreoffice-base-l10n-prebuilt = %version
Obsoletes : libreoffice-base-l10n-prebuilt < %version
# calc
Provides : OpenOffice_org-calc-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-calc-l10n-prebuilt < %version
Provides : libreoffice-calc-l10n-prebuilt = %version
Obsoletes : libreoffice-calc-l10n-prebuilt < %version
# impress
Provides : OpenOffice_org-impress-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-impress-l10n-prebuilt < %version
Provides : libreoffice-impress-l10n-prebuilt = %version
Obsoletes : libreoffice-impress-l10n-prebuilt < %version
# writer
Provides : OpenOffice_org-writer-l10n-prebuilt = %version
Obsoletes : OpenOffice_org-writer-l10n-prebuilt < %version
Provides : libreoffice-writer-l10n-prebuilt = %version
Obsoletes : libreoffice-writer-l10n-prebuilt < %version
2010-11-22 15:01:32 +01:00
2011-10-11 17:58:40 +02:00
2010-11-22 15:01:32 +01:00
%description l10n-prebuilt
2011-09-07 17:41:42 +02:00
This package includes the prebuilt localization of LibreOffice.
It is not intended for a real use. It needs to be repacked to the real
architecture independent package.
2010-11-22 15:01:32 +01:00
This is only a temporary solution until we have an easier way to build
2010-12-05 22:38:34 +01:00
the LibreOffice localizations separately.
2010-10-21 01:05:15 +02:00
%prep
2011-09-07 17:41:42 +02:00
%if %prepare_build == 0
%setup -D -T -q -n libreoffice-bootstrap-%version
%else
%setup -q -n libreoffice-bootstrap-%version
bin/unpack-sources `pwd` \
%{S:1} %{S:2} %{S:3} %{S:4} %{S:5} \
%{S:6} %{S:7} %{S:8} %{S:9} %{S:10} \
%{S:11} %{S:12} %{S:13} %{S:14} %{S:15} \
%{S:16} %{S:17} %{S:18} %{S:19}
# SUSE config files
cp $RPM_SOURCE_DIR /SUSE*.conf distro-configs
# READMEs
cp $RPM_SOURCE_DIR /README* .
# extra fixes
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%patch10
%patch11
%patch12
2011-10-11 17:58:40 +02:00
%if %suse_version > 1130
# cpp/poppler-version.h is not included in older poppler packages
2011-09-26 10:08:32 +02:00
%patch13 -p1
2011-10-11 17:58:40 +02:00
%endif
%patch14
%patch15
2011-09-07 17:41:42 +02:00
# PostgreSQL SDBC driver
%patch801
%patch802
%patch803
%patch804
%patch805
%patch806
%patch807
%patch808
%patch809
%patch810
# No XUL
%patch831
%patch832
%patch833
%patch834
#
%if 0%{?meego_version}
# default to MS Office 97/2000/XP file formats on MeeGo; asked by HP
%patch900
%endif
#
%if %suse_version > 1130
# fix build with gcc-4.6 on openSUSE-12.0; hack my Caolan McNamara, see http://permalink.gmane.org/gmane.comp.documentfoundation.libreoffice.devel/10987
%patch910
%endif
#
2011-09-19 17:50:45 +02:00
%if %suse_version > 1140
# crazy hack to avoid /usr/lib64 in RPATH and pass brp-rpath check (bnc#717262)
%patch920
%endif
#
2011-09-07 17:41:42 +02:00
%endif
2010-10-21 01:05:15 +02:00
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%build
2011-09-07 17:41:42 +02:00
%if %prepare_build != 0
#
# Parallel build settings ...
PARALLEL_BUILD=
if test -n " % { ? j o b s : % j o b s } " -a -e " / o p t / i c e c r e a m / b i n / g c c " -a -e " / o p t / i c e c r e a m / b i n / g + + " ; then
PARALLEL_BUILD=" - - w i t h - g c c - s p e e d u p = i c e c r e a m
--with-max-jobs=%jobs"
fi
# parallel build of modules; it makes sense on machines with more CPUs
if test " % b u i l d _ m o d u l e _ i n _ p a r a l l e l " = " 1 " ; then
PARALLEL_BUILD=" $ P A R A L L E L _ B U I L D - - w i t h - n u m - c p u s = ` g r e p ^ p r o c e s s o r / p r o c / c p u i n f o | w c - l ` "
fi
if test " % b u i l d _ m o d u l e _ i n _ p a r a l l e l " -gt " 1 " ; then
PARALLEL_BUILD=" $ P A R A L L E L _ B U I L D - - w i t h - n u m - c p u s = % b u i l d _ m o d u l e _ i n _ p a r a l l e l "
fi
#
# Distro settings ...
%if 0%{?meego_version}
with_distro=" S U S E - 1 1 . 1 "
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01110
suse_major_ver=$((%{?suse_version} / 100))
suse_minor_ver=$((%{?suse_version} / 10 - $suse_major_ver * 10))
with_distro=" S U S E - $ s u s e _ m a j o r _ v e r . $ s u s e _ m i n o r _ v e r "
%endif
%if 0%{?suse_version} > 01110 && 0%{?suse_version} <= 01120
with_distro=" S U S E - 1 1 . 2 "
%endif
%if 0%{?suse_version} > 01120
with_distro=" S U S E "
%endif
#
# disable KDE4 on openSUSE-11.1-Evergreen but not on SLED11
%define libkde4_devel_ver %(rpm -q --queryformat '%{VERSION}' libkde4-devel)
DISABLE_KDE4=
test " %{libkde4_devel_ver} " = " 4 . 1 . 3 " && DISABLE_KDE4=" - - d i s a b l e - k d e 4 "
%endif
# make sure that JAVA_HOME is set correctly
%if 0%{?suse_version}
source /etc/profile.d/alljava.sh
%endif
%if 0%{?meego_version}
export JAVA_HOME=%{java_home}
%endif
# use RPM_OPT_FLAGS, ...
export ARCH_FLAGS=" ` e c h o $RPM_OPT_FLAGS | s e d - e ' s / \ - O [ 0 - 9 s ] / / g ' - e ' s / \ - f e x c e p t i o n s / / g ' ` - f n o - s t r i c t - a l i a s i n g "
# FIXME: genccode from the system icu is in /usr/sbin
export PATH=" $ P A T H : / u s r / s b i n "
%if %prepare_build != 0
./autogen.sh $PARALLEL_BUILD \
--with-external-tar=" $RPM_SOURCE_DIR " \
--with-arch-flags=" $ A R C H _ F L A G S " \
--libdir=%{_libdir} \
--prefix=%{_prefix} \
--mandir=%{_mandir} \
--sysconfdir=/etc \
2011-09-19 17:50:45 +02:00
--docdir=%{_docdir} /%{name} \
2011-09-07 17:41:42 +02:00
--with-distro=" $ w i t h _ d i s t r o " \
--without-git \
--without-download \
--with-lang=%lo_langs \
--with-poor-help-localizations=%lo_poor_help_localizations \
--with-mono-gac-root=%{_prefix} /lib \
--with-compat-oowrappers \
%if %test_build_binfilters != 0
--enable-binfilter \
%endif
--with-jdk-home=$JAVA_HOME \
--with-java-target-version=%java_target_version \
--disable-helpcontent \
%if %lo_build_sdk == yes
--enable-odk \
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01030
--with-additional-sections=" P o s t g r e S Q L " \
%endif
%if 0%{?meego_version}
--without-system-cairo \
--with-system-icu \
--disable-kde4 \
%endif
%if 0%{?meego_version}
--disable-kde \
%endif
$DISABLE_KDE4 \
%if 0%{?suse_version} > 01130
--disable-mono \
%endif
%if %suse_version <= 1110
--without-junit \
%endif
--with-system-mozilla=mozilla \
--disable-access \
--disable-post-install-scripts \
--disable-strip \
--disable-strip-solver \
--enable-openxml \
--disable-report-builder \
--disable-pdfimport \
--disable-presenter-console \
--enable-build-noarch \
--enable-ext-ct2n \
--enable-ext-nlpsolver \
%if 0%{?suse_version}
--with-system-mysql \
--enable-ext-mysql-connector \
%endif
%if 0%{?suse_version} > 01210
--with-system-mysql-cppconn \
%endif
%if 0%{?suse_version} > 01030 || 0%{?meego_version}
--enable-pdfimport \
%endif
2011-09-19 17:50:45 +02:00
--enable-ext-scripting-beanshell \
--enable-ext-scripting-javascript \
--enable-ext-scripting-python \
2011-09-07 17:41:42 +02:00
--enable-minimizer --enable-presenter-console \
--enable-wiki-publisher --enable-ogltrans --enable-report-builder \
--enable-split-app-modules \
--enable-split-opt-features
%endif
# hack to add icons for helpcontent that is build separately
(
. ./*Env.Set.sh
mkdir -p $SOLARVER/$INPATH/res/img
perl helpcontent2/helpers/create_ilst.pl -dir=default_images/res/helpimg >$SOLARVER/$INPATH/res/img/helpimg.ilst
)
# hack to correctly bootstrap python stuff with system python, (deb#501028, i#90701)
sed -i -e " s | @ I N S T A L L D I R @ | % l o _ p r e f i x / % l o _ h o m e | " pyuno/source/module/uno.py
# FIXME: try to finish build even with the strange random build crash in officecfg
make || make || make
2010-10-21 01:05:15 +02:00
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%install
2011-09-07 17:41:42 +02:00
%ifarch x86_64 ppc
%if 0%{?suse_version} && 0%{?suse_version} <= 01020
# FIXME: move this to libreoffice-build
export JAVA_HOME=/usr
%endif
%endif
#
make DESTDIR=$RPM_BUILD_ROOT distro-pack-install
################
# update desktop files
2010-10-21 01:05:15 +02:00
%if 0%{?suse_version}
2011-09-19 17:50:45 +02:00
builddir=`pwd`
cd $RPM_BUILD_ROOT %_datadir /applications
2011-09-07 17:41:42 +02:00
for desktop in * ; do
2011-09-19 17:50:45 +02:00
# relative link is needed by %%suse_update_desktop_file
2011-09-07 17:41:42 +02:00
relative_target=`readlink $desktop | sed " s | % l o _ p r e f i x | . . / . . / % _ l i b | " `
2011-09-19 17:50:45 +02:00
# FIXME: remove the libreoffice- prefix because the old desktop files are preferred in /etc/gnome_defaults.conf
desktop_new=`echo $desktop | sed -e " s / % l o _ h o m e - / / " `
rm $desktop
sed -i -e " s | %_datadir / a p p l i c a t i o n s / $ d e s k t o p | %_datadir / a p p l i c a t i o n s / $ d e s k t o p _ n e w | " $builddir/file-lists/*.txt
# finally, create the right link
ln -sf $relative_target $desktop_new
2011-09-07 17:41:42 +02:00
# suse_update
2011-09-19 17:50:45 +02:00
app=`echo $desktop_new | sed " s / . d e s k t o p / / " `
2011-10-11 17:58:40 +02:00
categ=" O t h e r "
if test " $ a p p " = " c a l c " ; then
categ=" S p r e a d s h e e t "
fi
if test " $ a p p " = " w r i t e r " ; then
categ=" W o r d P r o c e s s o r "
fi
if test " $ a p p " = " d r a w " ; then
categ=" F l o w C h a r t "
fi
if test " $ a p p " = " i m p r e s s " ; then
categ=" P r e s e n t a t i o n "
fi
if test " $ a p p " = " b a s e " ; then
categ=" D a t a b a s e "
fi
if test " $ a p p " = " s t a r t c e n t e r " ; then
categ=" "
fi
%suse_update_desktop_file $app $categ
2011-09-07 17:41:42 +02:00
done
cd -
2010-10-21 01:05:15 +02:00
%endif
2011-09-07 17:41:42 +02:00
################
# save l10n files in l10n-prebuild package
l10n_prebuilt_list=file-lists/l10n-prebuilt.txt
mkdir -p $RPM_BUILD_ROOT /%lo_prefix/%lo_home/share/file-lists
echo " % d i r % l o _ p r e f i x / % l o _ h o m e / s h a r e / f i l e - l i s t s " >file-lists/l10n-prebuilt.txt
for file_list in file-lists/lang_*.txt ; do
if test " $ f i l e _ l i s t " = " f i l e - l i s t s / l a n g _ e n _ U S _ l i s t . t x t " ; then
cat $file_list >>file-lists/common_list.txt
else
cat $file_list >>file-lists/l10n-prebuilt.txt
cp $file_list $RPM_BUILD_ROOT %lo_prefix/%lo_home/share/file-lists
echo " % l o _ p r e f i x / % l o _ h o m e / s h a r e / $ f i l e _ l i s t " >>file-lists/l10n-prebuilt.txt
fi
done
################
# compat stuff for noarch packages
mkdir -p $RPM_BUILD_ROOT /%_datadir /%lo_home/program
mkdir -p $RPM_BUILD_ROOT /%_datadir /%lo_home/%lo_basis_dir
ln -sf %lo_basis_dir $RPM_BUILD_ROOT /%_datadir /%lo_home/basis-link
install -m 755 $RPM_SOURCE_DIR /link-to-ooo-home $RPM_BUILD_ROOT %_datadir /%lo_home/
echo " % d i r %_datadir / % l o _ h o m e " >>file-lists/common_list.txt
echo " % d i r %_datadir / % l o _ h o m e / p r o g r a m " >>file-lists/common_list.txt
echo " % d i r %_datadir / % l o _ h o m e / % l o _ b a s i s _ d i r " >>file-lists/common_list.txt
echo " %_datadir / % l o _ h o m e / b a s i s - l i n k " >>file-lists/common_list.txt
echo " %_datadir / % l o _ h o m e / l i n k - t o - o o o - h o m e " >>file-lists/common_list.txt
################
# compat symlink to correctly uninstall OOo
mkdir -p $RPM_BUILD_ROOT %_datadir /ooo3
ln -sf ../libreoffice/link-to-ooo-home $RPM_BUILD_ROOT %_datadir /ooo3/link-to-ooo-home
echo " % d i r %_datadir / o o o 3 " >>file-lists/common_list.txt
echo " %_datadir / o o o 3 / l i n k - t o - o o o - h o m e " >>file-lists/common_list.txt
################
# helper script for noarch packages
# add missing directories to the file list
for dir in `find $RPM_BUILD_ROOT /%_datadir /icons/gnome -type d` ; do
dir=`echo $dir | sed -e " s | $RPM_BUILD_ROOT | | " `
echo " % d i r $ d i r " >>file-lists/common_list.txt
done
echo " % d i r %_datadir / a p p l i c a t i o n - r e g i s t r y " >>file-lists/common_list.txt
echo " % d i r %_datadir / m i m e - i n f o " >>file-lists/common_list.txt
echo " % d i r %_datadir / m i m e l n k " >>file-lists/common_list.txt
echo " % d i r %_datadir / m i m e l n k / a p p l i c a t i o n " >>file-lists/common_list.txt
################
# common helpcontent files
# create symlinks to /usr/share for noarch help packages
mkdir -p $RPM_BUILD_ROOT /%lo_prefix/%lo_home/%lo_basis_dir/help
mkdir -p $RPM_BUILD_ROOT /%_datadir /%lo_home/%lo_basis_dir/help
echo " % d i r % l o _ p r e f i x / % l o _ h o m e / % l o _ b a s i s _ d i r / h e l p " >>file-lists/common_list.txt
echo " % d i r %_datadir / % l o _ h o m e / % l o _ b a s i s _ d i r / h e l p " >>file-lists/common_list.txt
for file in idxcaption.xsl idxcontent.xsl main_transform.xsl ; do
install -m 644 solver/*/unxlng*.pro/bin/$file $RPM_BUILD_ROOT /%lo_prefix/%lo_home/%lo_basis_dir/help
ln -sf %lo_prefix/%lo_home/%lo_basis_dir/help/$file $RPM_BUILD_ROOT /%_datadir /%lo_home/%lo_basis_dir/help
echo " % l o _ p r e f i x / % l o _ h o m e / % l o _ b a s i s _ d i r / h e l p / $ f i l e " >>file-lists/common_list.txt
echo " %_datadir / % l o _ h o m e / % l o _ b a s i s _ d i r / h e l p / $ f i l e " >>file-lists/common_list.txt
done
################
# branding will be in separate packages
# first check wheter the prebuilt sofficerc is still the same
if ! diff $RPM_BUILD_ROOT %lo_prefix/%lo_home/program/sofficerc $RPM_SOURCE_DIR /sofficerc-upstream ; then
echo " E r r o r : T h e f i l e \" s o f f i c e r c \" h a s c h a n g e d i n t h e s o u r c e s "
echo " P l e a s e , u p d a t e t h e p r e b u i l t v a r i a n t i n $RPM_SOURCE_DIR / s o f f i c e r c - u p s t r e a m "
exit 1;
fi
# replace files with symlinks to noarch packages
mkdir -p $RPM_BUILD_ROOT /%_datadir /%lo_home/program/shell
for file in sofficerc \
about.png \
intro.png \
shell/backing_left.png \
shell/backing_right.png \
shell/backing_rtl_left.png \
shell/backing_rtl_right.png \
shell/backing_space.png ; do
rm -f $RPM_BUILD_ROOT /%lo_prefix/%lo_home/program/$file
ln -sf %_datadir /%lo_home/program/$file $RPM_BUILD_ROOT /%lo_prefix/%lo_home/program/$file
# touch the target file to make brp-symlink happy; the touched files are not packaged
# it would be possible to disable the error using NO_BRP_STALE_LINK_ERROR=yes but the check is pretty useful to catch other errors
touch $RPM_BUILD_ROOT /%_datadir /%lo_home/program/$file
done
################
2011-09-19 17:50:45 +02:00
# extra background picture into the gallery
export galdir=" % l o _ p r e f i x / % l o _ h o m e / % l o _ b a s i s _ d i r / s h a r e / g a l l e r y "
install -m 644 " $RPM_SOURCE_DIR / D r a f t . j p g " " $RPM_BUILD_ROOT $ g a l d i r / w w w - b a c k / "
echo " $ g a l d i r / w w w - b a c k / D r a f t . j p g " >>file-lists/common_list.txt
# make sure that the existing galleries can be modified
chmod 644 $RPM_BUILD_ROOT $galdir/sg*.???
# LC_ALL=en_US.UTF-8 is necessary to make sure that the name "Backgrounds" is compared with the right localization
LC_ALL=en_US.UTF-8 $RPM_BUILD_ROOT %lo_prefix/%lo_home/program/gengal -headless --name " B a c k g r o u n d s " --path " $RPM_BUILD_ROOT $ g a l d i r " --destdir " $RPM_BUILD_ROOT " " $RPM_BUILD_ROOT $ g a l d i r / w w w - b a c k / D r a f t . j p g " || exit 1;
################
2011-09-07 17:41:42 +02:00
# FIXME: fast hack to solve a customer issue, n#364523
# we need a more generic solution
ln -sf acor_fr-FR.dat $RPM_BUILD_ROOT %lo_prefix/%lo_home/%lo_basis_dir/share/autocorr/acor_fr-CA.dat
echo " % l o _ p r e f i x / % l o _ h o m e / % l o _ b a s i s _ d i r / s h a r e / a u t o c o r r / a c o r _ f r - C A . d a t " >>file-lists/common_list.txt
################
# helper script to create libstlport compat symlink (bnc#458952)
%ifarch %ix86
cat << EOF > $RPM_BUILD_ROOT %lo_prefix/%lo_home/ure/bin/create-libstlport-compat-links
#!/bin/sh
# helper script to create compat link needed to run upstream extensions (bnc#458952)
if ! test -L %_libdir /libstlport_gcc.so -a -r %_libdir /libstlport_gcc.so ; then
lib_name=\`ls /usr/lib/libstlport_gcc.so.4* 2>/dev/null | tail -n 1\`
if test -n " \ $ l i b _ n a m e " -a -r " \ $ l i b _ n a m e " ; then
lib_name=\`basename \$lib_name\`
rm -f %_libdir /libstlport_gcc.so
ln -sf \$lib_name %_libdir /libstlport_gcc.so
fi
fi
EOF
chmod 755 $RPM_BUILD_ROOT %lo_prefix/%lo_home/ure/bin/create-libstlport-compat-links
echo " % l o _ p r e f i x / % l o _ h o m e / u r e / b i n / c r e a t e - l i b s t l p o r t - c o m p a t - l i n k s " >>file-lists/common_list.txt
%endif
################
# helper script to update budled extensions cache
mkdir -p $RPM_BUILD_ROOT /%_prefix /sbin
cat << EOF > $RPM_BUILD_ROOT /%_prefix /sbin/unopkg-sync-bundled
#/bin/sh
#Create the command which creates a temporary directory
INSTDIR=\`mktemp -d -t " u s e r i n s t a l l . X X X X X X " \`
unopkg sync " - e n v : B U N D L E D _ E X T E N S I O N S _ U S E R = f i l e : / / % l o _ p r e f i x / % l o _ h o m e / s h a r e / p r e r e g / b u n d l e d " " - e n v : U s e r I n s t a l l a t i o n = f i l e : / / \ $ I N S T D I R " '-env:UNO_JAVA_JFW_INSTALL_DATA=file://%lo_prefix/%lo_home/%lo_basis_dir/share/config/javasettingsunopkginstall.xml' '-env:JFW_PLUGIN_DO_NOT_CHECK_ACCESSIBILITY=1'
find " % l o _ p r e f i x / % l o _ h o m e / s h a r e / p r e r e g / b u n d l e d " -type f -exec chmod 644 {} \\;
rm -rf " \ $ I N S T D I R "
exit 0
EOF
chmod 755 $RPM_BUILD_ROOT %_prefix /sbin/unopkg-sync-bundled
echo " %_prefix / s b i n / u n o p k g - s y n c - b u n d l e d " >>file-lists/common_list.txt
################
# KDE4 needed to be disabled on openSUSE-11.1-Evergreen but not on SLED11-SP1
%define libkde4_devel_ver %(rpm -q --queryformat '%{VERSION}' libkde4-devel)
if test " %{libkde4_devel_ver} " = " 4 . 1 . 3 " ; then
mkdir -p $RPM_BUILD_ROOT %{_docdir} /%name-kde4/
cat << EOF > $RPM_BUILD_ROOT %{_docdir} /%name-kde4/README.txt
Dear user,
LibreOffice KDE4 support requires newer KDE4 libraries and therefore
cannot be built for openSUSE-11.1. We suggest to switch to the last
stable openSUSE release.
Have a fun,
Your LibreOffice team
EOF
chmod 644 $RPM_BUILD_ROOT %{_docdir} /%name-kde4/README.txt
echo " % d o c % d i r \" %{_docdir} / % n a m e - k d e 4 \" " >>file-lists/kde4_list.txt
echo " % d o c \" %{_docdir} / % n a m e - k d e 4 / R E A D M E . t x t \" " >>file-lists/kde4_list.txt
fi
################
# officebean subpackage
rm -f file-lists/officebean_list.txt
for file in %lo_prefix/%lo_home/%lo_basis_dir/program/classes/officebean.jar \
%lo_prefix/%lo_home/%lo_basis_dir/program/libofficebean.so ; do
grep -v $file file-lists/common_list.txt >file-lists/common_list.txt.new
mv file-lists/common_list.txt.new file-lists/common_list.txt
echo $file >>file-lists/officebean_list.txt
done
################
# extensions
mkdir -p $RPM_BUILD_ROOT %lo_prefix/%lo_home/share/extensions
find solver -name " * . o x t " -exec cp {} $RPM_BUILD_ROOT %lo_prefix/%lo_home/share/extensions \;
# prebuilt extensions
cp $RPM_SOURCE_DIR /gdocs_%{gdocs_version} _modified.oxt $RPM_BUILD_ROOT %lo_prefix/%lo_home/share/extensions
cp $RPM_SOURCE_DIR /numbertext-%{numbertext_version} .oxt $RPM_BUILD_ROOT %lo_prefix/%lo_home/share/extensions
# unpack the extensions
cd $RPM_BUILD_ROOT %lo_prefix/%lo_home/share/extensions
for file in *.oxt ; do
dir=`echo $file | sed s/.oxt$//`
mkdir $dir
# FIXME: gdocs_2.1.0_modified.oxt includes AbsoluteLayout.jar twice => we must force overwriting
unzip -o -d $dir $file
rm $file
done
cd - >/dev/null
2010-10-21 01:05:15 +02:00
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%clean
rm -rf $RPM_BUILD_ROOT
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre
# crazy hack for the ugly extensions
if test $1 -gt 1 ; then
if test -d %{_libdir} /%lo_home/share/uno_packages/cache -a \
-n " ` f i n d %{_libdir} / % l o _ h o m e / s h a r e / u n o _ p a c k a g e s / c a c h e - n a m e L a n g u a g e T o o l - 0 . 9 . 3 . o x t ` " ; then
# try to remove the LangTool extension by the older URE; it can't be
# removed with OOo-3.1 and higher
echo " U n r e g i s t e r i n g t h e L a n g T o o l e x t e n s i o n f r o m L i b r e O f f i c e . . . "
unopkg remove --shared org.openoffice.languagetool.oxt || true;
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || true;
fi
fi
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%post
/sbin/ldconfig
/usr/bin/update-mime-database /usr/share/mime >/dev/null || true
# update GNOME icon caches
2011-02-21 15:30:09 +01:00
%if 0%{?suse_version} > 01130
%icon_theme_cache_post
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01130
2010-10-21 01:05:15 +02:00
SuSEconfig --module gtk2 || true
%endif
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%preun
2011-09-07 17:41:42 +02:00
test " $ 1 " = " 0 " && rm -rf ./%lo_prefix/%lo_home/share/uno_packages/cache || true
2010-10-21 01:05:15 +02:00
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%postun
/sbin/ldconfig
2011-09-19 17:50:45 +02:00
%_prefix /sbin/unopkg-sync-bundled || true
2010-10-21 01:05:15 +02:00
/usr/bin/update-mime-database /usr/share/mime >/dev/null || true
# update GNOME icon caches
2011-02-21 15:30:09 +01:00
%if 0%{?suse_version} > 01130
%icon_theme_cache_postun
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01130
2010-10-21 01:05:15 +02:00
SuSEconfig --module gtk2 || true
%endif
#
2011-09-07 17:41:42 +02:00
%ifarch %ix86
if test $1 = 0 ; then
# OOo is removed => remove the link as well if it is not created by stlport-devel package (bnc#458952)
if test -L %_libdir /libstlport_gcc.so -a ! -r %_prefix /include/stlport/ctime ; then
rm -f %_libdir /libstlport_gcc.so
fi
fi
%endif
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%posttrans
2011-09-19 17:50:45 +02:00
%_prefix /sbin/unopkg-sync-bundled || true
%ifarch %ix86
2011-09-07 17:41:42 +02:00
# the compat link was %%ghost in old OOo-ure packages, so it might be removed also during OOo-ure update (bnc#458952)
if test -f %lo_prefix/%lo_home/ure/bin/javaldx ; then
%lo_prefix/%lo_home/ure/bin/create-libstlport-compat-links || true;
fi
%endif
%ifarch %ix86
2010-10-21 01:05:15 +02:00
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%triggerin -- mysql-connector-java
2011-09-07 17:41:42 +02:00
%lo_prefix/%lo_home/basis-link/program/java-set-classpath /usr/share/java/mysql-connector-java.jar || true
2010-10-21 01:05:15 +02:00
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%triggerpostun -- mysql-connector-java
2011-09-07 17:41:42 +02:00
%lo_prefix/%lo_home/basis-link/program/java-set-classpath /usr/share/java/mysql-connector-java.jar || true
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%triggerin -- libstlport_gcc4
# create compat link needed to run upstream extensions (bnc#458952)
%lo_prefix/%lo_home/ure/bin/create-libstlport-compat-links || true;
%endif
%ifarch %ix86
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%triggerpostun -- libstlport_gcc4-devel
# create compat link needed to run upstream extensions (bnc#458952)
%lo_prefix/%lo_home/ure/bin/create-libstlport-compat-links || true;
%endif
%ifarch %ix86
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%triggerpostun -- libstlport_gcc4
# remove compat link needed to run upstream extensions (bnc#458952)
if test $2 = 0 ; then
if test -L %_libdir /libstlport_gcc.so -a ! -r %_libdir /libstlport_gcc.so ; then
rm -f %_libdir /libstlport_gcc.so
fi
fi
exit 0
%endif
#####################
2011-09-07 17:42:32 +02:00
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre filters-optional
if test $1 -gt 1 ; then
echo " U n r e g i s t e r i n g t h e o l d e r L i b r e O f f i c e o p t i o n a l f i l t e r e x t e n s i o n s . . . "
# Writer2latex extensions has been completely removed in 3.0.99.6 (bnc#529914)
if unopkg list --shared | grep -q " o r g . o p e n o f f i c e . d a . w r i t e r 2 l a t e x . o x t " ; then
unopkg remove --shared org.openoffice.da.writer2latex.oxt || true;
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || true
fi
fi
#####################
2011-09-07 17:42:32 +02:00
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre base-drivers-postgresql
if test $1 = 2 ; then
# unregister all extensions that were registered by LibO <= 3.2.99.3
# the version 0.7.5 has been replaced in OOo-3.0.99.1
unopkg remove --shared org.openoffice.legacy.postgresql-sdbc-0.7.5.zip >/dev/null 2>&1 || true;
# the version 0.7.6 has been replaced in OOo-3.2.0.8
unopkg remove --shared org.openoffice.legacy.postgresql-sdbc-0.7.6.zip >/dev/null 2>&1 || true;
unopkg remove --shared org.openoffice.legacy.postgresql-sdbc-0.7.6a.zip >/dev/null 2>&1 || true;
if unopkg list --shared | grep -q " o r g . o p e n o f f i c e . l e g a c y . p o s t g r e s q l - s d b c - % p o s t g r e s q l _ v e r s i o n . z i p " ; then
unopkg remove --shared org.openoffice.legacy.postgresql-sdbc-%postgresql_version.zip || true;
fi
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%post base-drivers-postgresql
if test -f %lo_prefix/ooo3/share/extension/install/postgresql-sdbc-*.zip ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : o r g . o p e n o f f i c e . l e g a c y . p o s t g r e s q l - s d b c - 0 . 7 . x . z i p "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%posttrans base-drivers-postgresql
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%postun base-drivers-postgresql
%_prefix /sbin/unopkg-sync-bundled || true
# base
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre base-extensions
if test $1 -gt 1 ; then
# unregister all extensions that were registered by LibO <= 3.2.99.3
# note that mysql connector has been put into separate package since openSUSE 11.2
if unopkg list --shared | grep -q " c o m . s u n . s t a r . m y s q l - c o n n e c t o r - o o o " ; then
unopkg remove --shared " c o m . s u n . s t a r . m y s q l - c o n n e c t o r - o o o " || true;
fi
if unopkg list --shared | grep -q " c o m . s u n . r e p o r t d e s i g n e r " ; then
unopkg remove --shared " c o m . s u n . r e p o r t d e s i g n e r " || true;
fi
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || true
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%post base-extensions
if test -f %ooo_prefix/ooo3/share/extension/install/report-builder.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : c o m . s u n . r e p o r t d e s i g n e r "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
if test -f %ooo_prefix/ooo3/share/extension/install/mysql-connector-ooo.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : c o m . s u n . s t a r . m y s q l - c o n n e c t o r - o o o "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%posttrans base-extensions
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%postun base-extensions
%_prefix /sbin/unopkg-sync-bundled || true
# MySQL driver
%if 0%{?suse_version} >= 01120
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre base-drivers-mysql
if test $1 -gt 1 ; then
# unregister all extensions that were registered by LibO <= 3.2.99.3
if unopkg list --shared | grep -q " c o m . s u n . s t a r . m y s q l - c o n n e c t o r - o o o " ; then
unopkg remove --shared " c o m . s u n . s t a r . m y s q l - c o n n e c t o r - o o o " || true;
fi
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || true
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%post base-drivers-mysql
if test -f %ooo_prefix/ooo3/share/extension/install/mysql-connector-ooo.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : c o m . s u n . s t a r . m y s q l - c o n n e c t o r - o o o "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%posttrans base-drivers-mysql
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%postun base-drivers-mysql
%_prefix /sbin/unopkg-sync-bundled || true
%endif
# calc
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre calc-extensions
if test $1 -gt 1 ; then
# unregister all extensions that were registered by LibO <= 3.2.99.3
# Calc solver has been completely removed in 3.0.99.6 (bnc#523588)
if unopkg list --shared | grep -q " o r g . g o - o o . C a l c S o l v e r " ; then
unopkg remove --shared " o r g . g o - o o . C a l c S o l v e r " || true;
fi
if unopkg list --shared | grep -q " n l . n o u e n o f f . c t 2 n " ; then
unopkg remove --shared " n l . n o u e n o f f . c t 2 n " || true;
fi
if unopkg list --shared | grep -q " c o m . s u n . s t a r . c o m p . C a l c . N L P S o l v e r " ; then
unopkg remove --shared " c o m . s u n . s t a r . c o m p . C a l c . N L P S o l v e r " || true;
fi
if unopkg list --shared | grep -q " o r g . n u m b e r t e x t - c a l c - a d d i n " ; then
unopkg remove --shared " o r g . n u m b e r t e x t - c a l c - a d d i n " || true;
fi
if unopkg list --shared | grep -q " o r g . o p e n o f f i c e . e x t e n s i o n s . w a t c h w i n d o w . W a t c h W i n d o w " ; then
unopkg remove --shared " o r g . o p e n o f f i c e . e x t e n s i o n s . w a t c h w i n d o w . W a t c h W i n d o w " || true;
fi
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || true
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%post calc-extensions
if test -f %ooo_prefix/ooo3/share/extension/install/ConvertTextToNumber-*.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : n l . n o u e n o f f . c t 2 n "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
if test -f %ooo_prefix/ooo3/share/extension/install/NLPSolver.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : c o m . s u n . s t a r . c o m p . C a l c . N L P S o l v e r "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
if test -f %ooo_prefix/ooo3/share/extension/install/numbertext-*.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : o r g . n u m b e r t e x t - c a l c - a d d i n "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%posttrans calc-extensions
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%postun calc-extensions
%_prefix /sbin/unopkg-sync-bundled || true
# draw
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre draw-extensions
if test $1 -gt 1 ; then
# unregister all extensions that were registered by LibO <= 3.2.99.3
if unopkg list --shared | grep -q " c o m . s u n . s t a r . P D F I m p o r t " ; then
unopkg remove --shared com.sun.star.PDFImport || true;
fi
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || true
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%post draw-extensions
if test -f %ooo_prefix/ooo3/share/extension/install/pdfimport.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : c o m . s u n . s t a r . P D F I m p o r t "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%posttrans draw-extensions
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%postun draw-extensions
%_prefix /sbin/unopkg-sync-bundled || true
# impress
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre impress-extensions
if test $1 -gt 1 ; then
# unregister all extensions that were registered by LibO <= 3.2.99.3
if unopkg list --shared | grep -q " c o m . s u n . s t a r . P r e s e n t a t i o n M i n i m i z e r " ; then
unopkg remove --shared com.sun.star.PresentationMinimizer || true;
fi
if unopkg list --shared | grep -q " c o m . s u n . P r e s e n t e r S c r e e n " ; then
unopkg remove --shared com.sun.PresenterScreen || true;
fi
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || true
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%post impress-extensions
if test -f %ooo_prefix/ooo3/share/extension/install/presentation-minimizer.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : c o m . s u n . s t a r . P r e s e n t a t i o n M i n i m i z e r "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
if test -f %ooo_prefix/ooo3/share/extension/install/presenter-screen.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : c o m . s u n . P r e s e n t e r S c r e e n "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%posttrans impress-extensions
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%postun impress-extensions
%_prefix /sbin/unopkg-sync-bundled || true
# writer
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%pre writer-extensions
if test $1 -gt 1 ; then
# unregister all extensions that were registered by LibO <= 3.2.99.3
if unopkg list --shared | grep -q " o r g . o p e n o f f i c e . g d o c s . o x t " ; then
unopkg remove --shared org.openoffice.gdocs.oxt || true;
fi
# the blogger extension existed only in few 3.2-beta versions
if unopkg list --shared | grep -q " o r g . o p e n o f f i c e . c a o l a n . b l o g g e r " ; then
unopkg remove --shared org.openoffice.caolan.blogger >/dev/null 2>&1 || true;
fi
if unopkg list --shared | grep -q " c o m . s u n . s t a r . P D F I m p o r t " ; then
unopkg remove --shared com.sun.star.PDFImport || true;
fi
# clear disk cache
unopkg list --shared > /dev/null 2>&1 || true
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%post writer-extensions
if test -f %ooo_prefix/ooo3/share/extension/install/gdocs*.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : o r g . o p e n o f f i c e . g d o c s . o x t "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
if test -f %ooo_prefix/ooo3/share/extension/install/wiki-publisher.oxt ; then
echo
echo " W A R N I N G : P l e a s e i g n o r e t h e f o l l o w i n g e r r o r a b o u t t h e e x t e n s i o n : "
echo " W A R N I N G : c o m . s u n . w i k i - p u b l i s h e r "
echo " W A R N I N G : I t i s p r i n t e d b y t h e o l d O p e n O f f i c e _ o r g p a c k a g e . T h e e x t e n s i o n c a n n o t "
echo " W A R N I N G : b e u n r e g i s t e r e d f r o m t h e O O o c a c h e b e c a u s e u n o p k g t o o l a l r e a d y "
echo " W A R N I N G : w o r k s w i t h t h e L O c a c h e . T h e L O i n s t a l l a t i o n w i l l b e c o r r e c t ! "
echo
fi
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%posttrans writer-extensions
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%postun writer-extensions
%_prefix /sbin/unopkg-sync-bundled || true
2011-09-19 17:50:45 +02:00
# pyuno
2011-10-11 17:58:40 +02:00
2011-09-19 17:50:45 +02:00
%posttrans pyuno
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-19 17:50:45 +02:00
%postun pyuno
%_prefix /sbin/unopkg-sync-bundled || true
# officebean
2011-10-11 17:58:40 +02:00
2011-09-19 17:50:45 +02:00
%posttrans officebean
%_prefix /sbin/unopkg-sync-bundled || true
2011-10-11 17:58:40 +02:00
2011-09-19 17:50:45 +02:00
%postun officebean
%_prefix /sbin/unopkg-sync-bundled || true
#######################
# file lists
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/common_list.txt
%defattr (-,root,root)
2011-09-19 17:50:45 +02:00
# common extensions
%lo_prefix/%lo_home/share/extensions/script-provider-for-javascript
2011-09-07 17:41:42 +02:00
# ignore helper files for brp-symlink check
%exclude %_datadir /%lo_home/program/sofficerc
%exclude %_datadir /%lo_home/program/*.png
%exclude %_datadir /%lo_home/program/shell/*.png
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/base_list.txt base
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/calc_list.txt calc
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/draw_list.txt draw
%defattr (-,root,root)
2010-10-21 01:05:15 +02:00
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/math_list.txt math
2010-10-21 01:05:15 +02:00
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/impress_list.txt impress
2010-10-21 01:05:15 +02:00
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/writer_list.txt writer
2010-11-22 15:01:32 +01:00
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files base-drivers-postgresql
%defattr (-,root,root)
%lo_prefix/%lo_home/share/extensions/postgresql-sdbc-*
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/filters_list.txt filters-optional
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/mailmerge_list.txt mailmerge
%defattr (-,root,root)
%if 0%{?suse_version} <= 01130
2011-09-07 17:42:32 +02:00
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/mono_list.txt mono
%defattr (-,root,root)
%endif
2011-09-07 17:42:32 +02:00
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/pyuno_list.txt pyuno
%defattr (-,root,root)
2011-09-19 17:50:45 +02:00
%lo_prefix/%lo_home/share/extensions/script-provider-for-python
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/testtool_list.txt testtool
%defattr (-,root,root)
2011-09-07 17:42:32 +02:00
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/gnome_list.txt gnome
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/kde_list.txt kde
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/kde4_list.txt kde4
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/officebean_list.txt officebean
%defattr (-,root,root)
2011-09-19 17:50:45 +02:00
%lo_prefix/%lo_home/share/extensions/script-provider-for-beanshell
2011-09-07 17:42:32 +02:00
2011-09-07 17:41:42 +02:00
%if %lo_build_sdk == yes
2011-09-07 17:42:32 +02:00
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/sdk_list.txt sdk
%defattr (-,root,root)
2011-09-07 17:42:32 +02:00
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/sdk_doc_list.txt sdk-doc
%defattr (-,root,root)
%endif
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files base-extensions
%defattr (-,root,root)
%lo_prefix/%lo_home/share/extensions/report-builder
%if 0%{?suse_version} && 0%{?suse_version} < 01120
%lo_prefix/%lo_home/share/extensions/mysql-connector-ooo
%endif
%if 0%{?suse_version} >= 01120
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files base-drivers-mysql
%defattr (-,root,root)
%lo_prefix/%lo_home/share/extensions/mysql-connector-ooo
%endif
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files calc-extensions
%defattr (-,root,root)
%doc README-scsolver.txt
%lo_prefix/%lo_home/share/extensions/ConvertTextToNumber
%lo_prefix/%lo_home/share/extensions/NLPSolver
%lo_prefix/%lo_home/share/extensions/numbertext-%{numbertext_version}
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files draw-extensions
%defattr (-,root,root)
%lo_prefix/%lo_home/share/extensions/pdfimport
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files impress-extensions
%defattr (-,root,root)
%lo_prefix/%lo_home/share/extensions/presentation-minimizer
%lo_prefix/%lo_home/share/extensions/presenter-screen
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files writer-extensions
%defattr (-,root,root)
%lo_prefix/%lo_home/share/extensions/gdocs_%{gdocs_version} _modified
%lo_prefix/%lo_home/share/extensions/wiki-publisher
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/icon_themes_prebuilt.txt icon-themes-prebuilt
%defattr (-,root,root)
2011-10-11 17:58:40 +02:00
2011-09-07 17:41:42 +02:00
%files -f file-lists/l10n-prebuilt.txt l10n-prebuilt
%defattr (-,root,root)
2011-09-07 17:42:32 +02:00
2011-10-11 17:58:40 +02:00
2010-10-21 01:05:15 +02:00
%changelog