Sophie

Sophie

distrib > Mandriva > 2007.1 > i586 > media > main-updates-src > by-pkgid > b3c414f748b0545573f927085335bbd2 > files > 36

openoffice.org-2.1.0-10.2mdv2007.1.src.rpm

%ifarch x86_64
%define	ooname		openoffice.org64
%define name		openoffice.org64
%define oooaltpri	21
%else
%define	ooname		openoffice.org
%define name		openoffice.org
%define oooaltpri	20
%endif

%define version		2.1.0
%define subrel		2
%define release		%mkrel 10

%define oootagver	ooe680-m6
%define ooobuildver	2.1.9.cvs20070330
%define jdkver		1.4.2_13
%ifarch x86_64
%define mdvsuffix	2.1_64
%else
%define mdvsuffix	2.1
%endif
%define libdbver	4.2
%define ooolangs	"en-US af ar bg br bs ca cs cy da de el en-GB es et eu fi fr he hi hu it ja ko mk nb nl nn pl pt pt-BR ru sk sl sv ta tr zh-TW zh-CN zu"

%ifarch x86_64
%define ooomenu		openoffice.org64-%{mdvsuffix}
%else
%define ooomenu		openoffice.org-%{mdvsuffix}
%endif

%define oootarext	lzma

%ifarch x86_64
%define distroname      Mandriva64
%define jdkver          1.4.2
%else
%define distroname      Mandriva
%define jdkver          1.4.2_13
%endif

%ifarch x86_64
%define use_gcj		1
%else
%define	use_gcj		0
%endif
%{?_with_gcj: %global use_gcj 1}
%{?_without_gcj: %global use_gcj 0}

%define use_hunspell	1
%{?_with_hunspell: %global use_hunspell 1}
%{?_without_hunspell: %global use_hunspell 0}

%define use_icecream	0
%{?_with_icecream: %global use_icecream 1}
%{?_without_icecream: %global use_icecream 0}

%define use_ccache	0
%define ccachedir	%{_tmppath}/.ccache
%{?_with_ccache: %global use_ccache 1}
%{?_without_ccache: %global use_ccache 0}

%define use_smp		0
%{?_with_smp: %global use_smp 1}
%{?_without_smp: %global use_smp 0}

%define use_mono	1
%{?_with_mono: %global use_mono 1}
%{?_without_mono: %global use_mono 0}

%define use_openclipart	1
%{?_with_clipart: %global use_openclipart 1}
%{?_without_clipart: %global use_openclipart 0}

%define use_systemdb	0
%{?_with_systemdb: %global use_systemdb 1}
%{?_without_systemdb: %global use_systemdb 0}

%define use_systemwpd	0
%{?_with_systemwpd: %global use_systemwpd 1}
%{?_without_systemwpd: %global use_systemwpd 0}

%define use_systemboost 0
%{?_with_systemdb: %global use_systeboost 1}
%{?_without_systemdb: %global use_systemboost 0}

%define skip_install	0
%{?_with_skipinstall: %global skip_install 1}
%{?_without_skipinstall: %global skip_install 0}

%define tiny_langset	0
%{?_with_tiny_langset:	%global tiny_langset 1}
%{?_without_tiny_langset: %global tiny_langset 0}

# disable for now in X86-64 (gengal segfaults)
%ifarch x86_64
%define use_systemdb	1
%define use_systemboost 1
%endif

# (fix to avoid gcc 4.0.2 produces segfaulting javaldx bin which breaks
# building process)
%if %{mdkversion} >= 200610
%define optsafe	""
%else
%define optsafe ""
%endif

%if %{tiny_langset}
%define ooolangs	"en-US it"
%endif

%define _requires_exceptions libjawt.so\\|libmyspell.so\\|libstlport_gcc.so
%define _provides_exceptions libsndfile.so\\|libportaudio.so\\|libdb-4.2.so\\|libdb_java-4.2.so\\|libmyspell.so\\|libstlport_gcc.so

Summary:	Open source office suite (ooo-build)
Name:		%{name}
Version:	%{version}
Release:	%{release}
URL:		http://www.go-ooo.org
License:	LGPL
Group:		Office
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
PreReq:		/usr/sbin/chkfontpath
Requires:	freetype2 >= 2.1.3-3mdk
Requires:	ghostscript
Requires:	libgcc >= 3.2-0.3mdk
Requires:	libstdc++ >= 3.2-0.3mdk
Requires:	%{mklibname unixODBC 1}
Requires:	%{mklibname sane 1}
Requires:	%{mklibname sndfile 1}
Requires:	%{mklibname portaudio 0}
Requires:	mandrake_desk >= 10.1-6mdk
Requires:	Xaw3d
PreReq: /usr/sbin/update-alternatives
%if %{mdkversion} >= 200610
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
%endif
Obsoletes:	OpenOffice.org
Obsoletes:	OpenOffice.org-libs
Provides:	OpenOffice.org
Provides:	OpenOffice.org-libs
#
# Requirements for building
#
%if %{use_icecream}
BuildRequires:	icecream
%endif
%if %{use_ccache}
BuildRequires:	ccache
%endif
#
BuildRequires:  automake1.8
BuildRequires:	autoconf
%ifarch x86_64
BuildRequires:	boost-devel
%endif
BuildRequires:	bison >= 1.32-2mdk
%if %{use_openclipart}
BuildRequires:	clipart-openclipart
BuildRequires:	inkscape
%endif
BuildRequires:	cups-devel
BuildRequires:	dbus-devel >= 0.60
BuildRequires:	ed
BuildRequires:	expat-devel
BuildRequires:	flex
BuildRequires:	freetype2-devel >= 2.1.3-3mdk
BuildRequires:	gcc >= 3.2-0.3mdk
BuildRequires:	gcc-c++ >= 3.2-0.3mdk
BuildRequires:	glitz-devel
BuildRequires:	gnutls-devel
BuildRequires:	gnome-vfsmm2.6-devel
BuildRequires:	ImageMagick
BuildRequires:	kdelibs-devel
BuildRequires:	kernel-source
BuildRequires:	db1-devel
%if %{use_systemdb}
BuildRequires:	%{mklibname db 4.2} >= 4.2.5-4mdk
BuildRequires:	libdbcxx >= 4.2.5-4mdk
BuildRequires:	libdb-devel >= 4.2.5-4mdk
BuildRequires:	libdbjava >= 4.2.5-4mdk
%else
BuildConflicts: libdbjava4.2
%endif
BuildRequires:	libcurl-devel
BuildRequires:	libgtk+2-devel
%if %{mdkversion} >= 200610
BuildRequires:	libgstreamer-plugins-base-devel
BuildRequires:  libxaw-devel
%endif
BuildRequires:	libldap-devel
BuildRequires:	%{mklibname portaudio 0}-devel
BuildConflicts: %{mklibname libportaudio 2}-devel
BuildRequires:	libsndfile-devel
BuildRequires:	unixODBC-devel
BuildRequires:	libwpd-devel
BuildRequires:  libxp-devel
BuildRequires:	libxslt-proc >= 1.0.19
BuildRequires:	libxslt-devel
BuildRequires:	libxml2 >= 2.4.23
%if %{use_mono}
BuildRequires:	mono-devel
BuildRequires:	mono-data-sqlite
%endif
BuildRequires:	mozilla-firefox-devel
BuildRequires:	nss-devel
BuildRequires:  nas-devel
BuildRequires:	neon-devel
BuildRequires:	pam-devel
BuildRequires:	perl
BuildRequires:	perl-Archive-Zip
BuildRequires:	perl-MDK-Common
BuildRequires:	perl-HTML-Parser
BuildRequires:	perl-XML-Twig
BuildRequires:	python-devel
BuildRequires:	qt3-devel
BuildRequires:	readline-devel
BuildRequires:	recode
BuildRequires:	sane-devel
BuildRequires:	sharutils
BuildRequires:	startup-notification-devel
%if %{oootarext} == "lzma"
BuildRequires:	lzma
BuildRequires:	tar >= 1.15.1-7mdk
%endif
BuildRequires:	tcsh >= 6.12-2mdk
BuildRequires:	unzip
BuildRequires:	XFree86
%if %{mdkversion} >= 200710
BuildRequires:	x11-server-xvfb
%else
BuildRequires:	XFree86-Xvfb
%endif
BuildRequires:	xpm-devel
BuildRequires:	zlib-devel
BuildRequires:	zip
#
# locales
BuildRequires:  locales-en
BuildRequires:  locales-it
%if !%{tiny_langset}
BuildRequires:	locales-bg
BuildRequires:  locales-br
BuildRequires:  locales-cy
BuildRequires:	locales-cs
BuildRequires:  locales-da
BuildRequires:  locales-de
BuildRequires:	locales-el
BuildRequires:  locales-eo
BuildRequires:  locales-es
BuildRequires:  locales-et
BuildRequires:  locales-fa
BuildRequires:	locales-fi
BuildRequires:	locales-fo
BuildRequires:  locales-fr
BuildRequires:	locales-ga
BuildRequires:	locales-gl
BuildRequires:  locales-he
BuildRequires:	locales-hi
BuildRequires:	locales-hr
BuildRequires:	locales-hu
BuildRequires:	locales-is
BuildRequires:  locales-ja
BuildRequires:	locales-ku
BuildRequires:	locales-lt
BuildRequires:	locales-lv
BuildRequires:	locales-mi
BuildRequires:	locales-mk
BuildRequires:	locales-ms
BuildRequires:  locales-nl
BuildRequires:  locales-no
BuildRequires:	locales-ph
BuildRequires:  locales-pl
BuildRequires:  locales-pt
BuildRequires:	locales-ro
BuildRequires:	locales-ta
BuildRequires:  locales-ru
BuildRequires:	locales-sl
BuildRequires:  locales-sv
BuildRequires:	locales-sk
BuildRequires:	locales-uk
BuildRequires:  locales-uz
BuildRequires:  locales-zh
BuildRequires:	locales-zu
%endif
#
# java
%if %{use_gcj}
BuildRequires:	ant
BuildRequires:	java-1.4.2-gcj-compat
# for javadoc
BuildRequires:  java-1.4.2-gcj-compat-devel
#
BuildRequires:	gcj-tools
BuildRequires:	gcc-java
BuildRequires:	xml-commons-apis
%else
BuildRequires:	jdk >= %{jdkver}
BuildRequires:	jre >= %{jdkver}
BuildRequires:	j2sdk-ant
BuildConflicts:	gcc-java
BuildConflicts:	gcj-tools
BuildConflicts: java-kaffe
%endif
BuildConflicts:	STLport-devel
#


####################################################################
#
# Sources
#
####################################################################

Source0:	http://www.go-ooo.org/packages/OOC680/ooo-build-%{ooobuildver}.tar.bz2
Source1:	http://www.go-ooo.org/packages/OOC680/%{oootagver}-core.tar.%{oootarext}
Source2:	http://www.go-ooo.org/packages/OOC680/%{oootagver}-lang.tar.%{oootarext}
Source3:	http://www.go-ooo.org/packages/OOC680/%{oootagver}-binfilter.tar.%{oootarext}
Source4:	http://www.go-ooo.org/packages/OOC680/%{oootagver}-system.tar.%{oootarext}
Source5:	http://www.go-ooo.org/packages/OOC680/%{oootagver}-sdk_oo.tar.%{oootarext}
Source10:	http://www.go-ooo.org/packages/SRC680/ooo_tango_images-1.tar.bz2
Source11:	http://www.go-ooo.org/packages/SRC680/ooo_crystal_images-1.tar.gz
Source12:	http://www.go-ooo.org/packages/SRC680/ooo_custom_images-13.tar.bz2
Source13:	http://www.go-ooo.org/packages/SRC680/extras-2.tar.bz2
# from ftp://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries
Source14:	hyph-2.tar
Source15:	thes-2.tar
Source16:	dict-2.tar
#
Source17:	http://www.go-ooo.org/packages/SRC680/mdbtools-0.6pre1.tar.gz
Source18:	http://www.go-ooo.org/packages/SRC680/hunspell-1.0.8.tar.gz
Source19:	http://www.go-ooo.org/packages/SRC680/hunspell_UNO_1.1.tar.gz
Source20:	http://www.go-ooo.org/packages/SRC680/cli_types.dll
Source21:	http://www.go-ooo.org/packages/SRC680/cli_types_bridgetest.dll
Source22:	http://go-ooo.org/packages/libwpd/libwpd-0.8.8.tar.gz
Source23:	http://www.go-ooo.org/packages/xt/xt-20051206-src-only.zip
Source24:	http://www.go-ooo.org/packages/SRC680/lp_solve_5.5.tar.gz
Source25:	http://www.go-ooo.org/packages/SRC680/biblio.tar.bz2
Source26:	http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll
# splash screens
Source27:	openintro_mandriva.bmp
Source28:	openabout_mandriva.bmp
#
Source29:	http://www.go-ooo.org/packages/SRC680/libwps-0.1.0~svn20070129.tar.gz
# splash screens (64bit)
Source30:	openintro_mandriva64.bmp
Source31:	openabout_mandriva64.bmp
#
Source50:	http://oooconv.free.fr/fontooo/FontOOo.sxw.bz2
Source51:	http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/dicooo/DicOOo.sxw.bz2
Source53:	extra_kde-mimetypes.tar.bz2

Patch1:		ooo-build-2.1.0-lzmatarball.patch
Patch2:		openoffice.org2-2.0.1-localwidget.patch
Patch4:		openoffice.org2-2.0.2-qstart.patch
Patch6:		openoffice.org-2.1.0-firefox-xpcom.patch
Patch10:	openoffice.org-2.1.0-install.patch
Patch11:	openoffice.org-2.1.0-cve-2007-0238.patch
Patch12:	openoffice.org-2.1.0-cve-2007-0239.patch
Patch13:	openoffice.org-2.2.1-CVE-2007-0245.patch
Patch14:	openoffice-2.0.4-CVE-2007-2834.patch

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

%ifarch x86_64
Note: this native 64bit %{ooname} package is still at alpha/beta quality
level. It is not advised to use it for production. Use instead the 32bit
version over the x86_64 installation.
%endif

%package gnome
Summary:	GNOME Extensions for OpenOffice.org
Group:		Office
Provides:	%{ooname}-gnome = %{version}-%{release}
Requires:	%{ooname} = %{version}

%description gnome
This package contains GNOME extensions for OpenOffice.org.


%package kde
Summary:	KDE Extensions for OpenOffice.org
Group:		Office
Provides:	%{ooname}-kde = %{version}-%{release}
Requires:	%{ooname} = %{version}

%package ooqstart
Summary:	Internal quickstarter for OpenOffice.org
Group:		Office
Requires:	%{ooname} = %{version}

%description ooqstart
This package contains the internal OpenOffice.org quickstarter.

%description kde
This package contains KDE extensions for OpenOffice.org.

%package mono
Summary:	Mono UNO Bridge for OpenOffice.org
Group:		Office
Requires:	%{ooname} = %{version}

%description mono
The Mono/UNO binding allows a Mono application to access the complete
set of APIs exposed by OpenOffice.org via UNO.

Currently the use of Mono for add-ins & scripting inside OO.o itself is
not supported.

%if %{use_openclipart}
%package galleries
Summary:	Extra Galleries for OpenOffice.org
Group:		Office
Requires:	%{ooname} = %{version}
Requires:	clipart-openclipart

%description galleries
Extra set of galleries for OpenOffice.org.
%endif

%package devel-doc
Summary:	OpenOffice.org SDK Documentation
Group:		Development/C++

%description devel-doc
Documentation for the OpenOffice.org SDK.

%package devel
Summary:	OpenOffice.org SDK
Group:		Development/C++
Requires:	%{ooname} = %{version}

%description devel
Files needed to build plugins/addons for OpenOffice.org.


%if %{mdkversion} < 200710
%package mimelnk
Summary: Extra mime-types for old OpenOffice.org format
Group: Graphical desktop/KDE

%description mimelnk
This package contains extra mime-types for old Openoffice.org
formats which are not included in kdelibs-common package.
%endif

%package l10n-it
Summary:	Italian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-it
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-it
Requires:	myspell-hyph-it

%description l10n-it
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Italian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%if !%{tiny_langset}
%package l10n-af
Summary:	Afrikaans language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-af
Requires:	urw-fonts
Requires:	myspell-af
Obsoletes:	OpenOffice.org-l10n-af
Provides:	OpenOffice.org-l10n-af

%description l10n-af
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Afrikaans.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-ar
Summary:	Arabic language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-ar
Requires:	fonts-ttf-arabic
Obsoletes:	OpenOffice.org-l10n-ar
Provides:	OpenOffice.org-l10n-ar

%description l10n-ar
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Arabic.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-bg
Summary:	Bulgarian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-bg
Obsoletes:	OpenOffice.org-l10n-bg
Provides:	OpenOffice.org-l10n-bg

%description l10n-bg
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Bulgarian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-br
Summary:	Breton language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-br

%description l10n-br
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Breton.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-bs
Summary:	Bosnian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-bs

%description l10n-bs
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Bosnian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-ca
Summary:	Catalan language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-ca
Requires:	urw-fonts
Requires:	myspell-ca
Obsoletes:	OpenOffice.org-l10n-ca
Provides:	OpenOffice.org-l10n-ca

%description l10n-ca
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Catalan.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-cs
Summary:	Czech language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-cs
Requires:	urw-fonts
Requires:	myspell-cs
Requires:	myspell-hyph-cs
Obsoletes:	OpenOffice.org-l10n-cs
Obsoletes:	OpenOffice.org-help-cs
Provides:	OpenOffice.org-l10n-cs
Provides:	OpenOffice.org-help-cs

%description l10n-cs
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Czech.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-cy
Summary:	Welsh language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-cy
Requires:	urw-fonts
Requires:	myspell-cy
Obsoletes:	OpenOffice.org-l10n-cy
Provides:	OpenOffice.org-l10n-cy

%description l10n-cy
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Welsh.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-da
Summary:	Danish language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-da
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-da, myspell-hyph-da
Obsoletes:	OpenOffice.org-l10n-da
Provides:	OpenOffice.org-l10n-da

%description l10n-da
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Danish.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-de
Summary:	German language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-de
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-de
Requires:	myspell-hyph-de
Obsoletes:	OpenOffice.org-l10n-de
Obsoletes:	OpenOffice.org-help-de
Provides:	OpenOffice.org-l10n-de
Provides:	OpenOffice.org-help-de

%description l10n-de
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in German.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-el
Summary:	Greek language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-el
Requires:	fonts-type1-greek
Requires:	myspell-el
Requires:	myspell-hyph-el
Obsoletes:	OpenOffice.org-l10n-el
Provides:	OpenOffice.org-l10n-el

%description l10n-el
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Greek.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-en_GB
Summary:	British language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-en
Requires:	urw-fonts
Requires:	myspell-en_GB
Requires:	myspell-hyph-en

%description l10n-en_GB
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in British.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-es
Summary:	Spanish language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-es
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-es
Requires:	myspell-hyph-es
Obsoletes:	OpenOffice.org-l10n-es
Obsoletes:	OpenOffice.org-help-es
Provides:	OpenOffice.org-l10n-es
Provides:	OpenOffice.org-help-es

%description l10n-es
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Spanish.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-et
Summary:	Estonian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-et
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-et
Requires:	myspell-hyph-et
Obsoletes:	OpenOffice.org-l10n-et
Provides:	OpenOffice.org-l10n-et

%description l10n-et
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Estonian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-eu
Summary:	Basque language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-eu
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-eu
Obsoletes:	OpenOffice.org-help-eu
Provides:	OpenOffice.org-l10n-eu
Provides:	OpenOffice.org-help-eu

%description l10n-eu
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Basque.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-fi
Summary:	Finnish language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-fi
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-hyph-fi
Obsoletes:	OpenOffice.org-l10n-fi
Obsoletes:	OpenOffice.org-help-fi
Provides:	OpenOffice.org-l10n-fi
Provides:	OpenOffice.org-help-fi

%description l10n-fi
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Finnish.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-fr
Summary:	French language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-fr
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-fr
Requires:	myspell-hyph-fr
Obsoletes:	OpenOffice.org-l10n-fr
Obsoletes:	OpenOffice.org-help-fr
Provides:	OpenOffice.org-l10n-fr
Provides:	OpenOffice.org-help-fr

%description l10n-fr
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in French.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-he
Summary:	Hebrew language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-he
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-he
Provides:	OpenOffice.org-l10n-he

%description l10n-he
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Hebrew.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-hi
Summary:	Hindi language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-hi
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-hi
Provides:	OpenOffice.org-l10n-hi

%description l10n-hi
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Hindi.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-hu
Summary:	Hungarian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-hu
Requires:	urw-fonts
Requires:	myspell-hu
Requires:	myspell-hyph-hu
Obsoletes:	OpenOffice.org-l10n-hu
Provides:	OpenOffice.org-l10n-hu

%description l10n-hu
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Hungarian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-ja
Summary:	Japanese language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-ja
Requires:	fonts-ttf-japanese >= 0.20020727-1mdk
Obsoletes:	OpenOffice.org-l10n-ja
Obsoletes:	OpenOffice.org-help-ja
Provides:	OpenOffice.org-l10n-ja
Provides:	OpenOffice.org-help-ja

%description l10n-ja
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Japanese.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-ko
Summary:	Korean language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-ko
Requires:	fonts-ttf-korean >= 2.1
Obsoletes:	OpenOffice.org-l10n-ko
Obsoletes:	OpenOffice.org-help-ko
Provides:	OpenOffice.org-l10n-ko
Provides:	OpenOffice.org-help-ko

%description l10n-ko
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Korean.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-mk
Summary:	Macedonian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-mk

%description l10n-mk
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Macedonian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-nb
Summary:	Norwegian Bokmal language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-no
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-nb
Provides:	OpenOffice.org-l10n-nb

%description l10n-nb
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Norwegian Bokmal.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-nl
Summary:	Dutch language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-nl
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-nl
Requires:	myspell-hyph-nl
Obsoletes:	OpenOffice.org-l10n-nl
Obsoletes:	OpenOffice.org-help-nl
Provides:	OpenOffice.org-l10n-nl
Provides:	OpenOffice.org-help-nl

%description l10n-nl
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Dutch.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-nn
Summary:	Norwegian Nynorsk language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-no
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-nn
Provides:	OpenOffice.org-l10n-nn

%description l10n-nn
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Norwegian Nynorsk.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.

%package l10n-pl
Summary:	Polish language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-pl
Requires:	urw-fonts
Requires:	myspell-pl
Requires:	myspell-hyph-pl
Obsoletes:	OpenOffice.org-l10n-pl
Provides:	OpenOffice.org-l10n-pl

%description l10n-pl
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Polish.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-pt
Summary:	Portuguese language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-pt
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-pt
Requires:	myspell-hyph-pt
Obsoletes:	OpenOffice.org-l10n-pt
Provides:	OpenOffice.org-l10n-pt

%description l10n-pt
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Portuguese.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-pt_BR
Summary:	Portuguese Brazilian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-pt
Requires:	urw-fonts
Requires:	myspell-pt_BR
Obsoletes:	OpenOffice.org-l10n_pt_BR
Obsoletes:	OpenOffice.org-help-pt_BR
Provides:	OpenOffice.org-l10n_pt_BR
Provides:	OpenOffice.org-help-pt_BR

%description l10n-pt_BR
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Portuguese Brazilian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-ru
Summary:	Russian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-ru
Requires:	urw-fonts >= 2.0-6mdk
Requires:	myspell-ru
Requires:	myspell-hyph-ru
Obsoletes:	OpenOffice.org-l10n-ru
Obsoletes:	OpenOffice.org-help-ru
Provides:	OpenOffice.org-l10n-ru
Provides:	OpenOffice.org-help-ru

%description l10n-ru
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Russian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-sk
Summary:	Slovak language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-sk
Requires:	urw-fonts
Requires:	myspell-sk
Requires:	myspell-hyph-sk
Obsoletes:	OpenOffice.org-l10n-sk
Obsoletes:	OpenOffice.org-help-sk
Provides:	OpenOffice.org-l10n-sk
Provides:	OpenOffice.org-help-sk

%description l10n-sk
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Slovak.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-sl
Summary:	Slovenian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-sl
Requires:	urw-fonts
Requires:	myspell-sl, myspell-hyph-sl
Obsoletes:	OpenOffice.org-l10n-sl
Obsoletes:	OpenOffice.org-help-sl
Provides:	OpenOffice.org-l10n-sl
Provides:	OpenOffice.org-help-sl

%description l10n-sl
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Slovenian.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-sv
Summary:	Swedish language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-sv
Requires:	fonts-ttf-vera
Requires:	urw-fonts
Requires:	myspell-sv
Requires:	myspell-hyph-sv
Obsoletes:	OpenOffice.org-l10n-sv
Obsoletes:	OpenOffice.org-help-sv
Provides:	OpenOffice.org-l10n-sv
Provides:	OpenOffice.org-help-sv

%description l10n-sv
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Swedish.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-ta
Summary:	Tamil language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-ta
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-ta
Provides:	OpenOffice.org-l10n-ta

%description l10n-ta
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Tamil.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-tr
Summary:	Turkish language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-tr
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-tr
Obsoletes:	OpenOffice.org-help-tr
Provides:	OpenOffice.org-l10n-tr
Provides:	OpenOffice.org-help-tr

%description l10n-tr
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Turkish.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-zh_CN
Summary:	Chinese Simplified language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-zh
Requires:	fonts-ttf-chinese
Obsoletes:	OpenOffice.org-l10n-zh_CN
Obsoletes:	OpenOffice.org-help-zh_CN
Provides:	OpenOffice.org-l10n-zh_CN
Provides:	OpenOffice.org-help-zh_CN

%description l10n-zh_CN
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Chinese Simplified.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-zh_TW
Summary:	Chinese Traditional language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-zh
Requires:	fonts-ttf-chinese
Obsoletes:	OpenOffice.org-l10n-zh_TW
Obsoletes:	OpenOffice.org-help-zh_TW
Provides:	OpenOffice.org-l10n-zh_TW
Provides:	OpenOffice.org-help-zh_TW

%description l10n-zh_TW
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Chinese Traditional.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.


%package l10n-zu
Summary:	Zulu language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{version}-%{release}
Requires:	%{ooname} = %{version}
Requires:	locales-zu
Requires:	urw-fonts
Requires:	myspell-zu
Obsoletes:	OpenOffice.org-l10n-zu
Provides:	OpenOffice.org-l10n-zu

%description l10n-zu
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localization of OpenOffice.org in Zulu.
It contains the user interface, the templates and the autotext
features. Please note that not all of these are available for all
possible language. You can switch user interface language using the
standard locales system.
%endif


%prep
%setup -n ooo-build
%if %{oootarext} == "lzma"
%patch1 -p1 -b .lzma
%endif
#%patch2 -p1 -b .localwidget
%patch4 -p1 -b .qstart
%if %{mdkversion} >= 200710
%patch6 -p1 -b .xpcom
%endif
%patch10 -p1 -b .oooinst
%patch11 -p1 -b .cve2007-0239
%patch12 -p1 -b .cve2007-0238
%patch13 -p1 -b .cve-2007-0245
%patch14 -p1 -b .cve-2007-2834

%build
# Workaround for bug http://qa.mandriva.com/show_bug.cgi?id=27771
if [ -z $QTDIR ]; then
	. /etc/profile.d/qtdir3.sh
fi
%if !%{use_gcj}
if [ -z $JAVA_HOME ]; then
	. /etc/profile.d/jdk-%{jdkver}.sh
fi
%endif

# add moc in PATH
if [ ! -z $QTDIR ]; then
	export QTPATH=$QTDIR/bin
	export PATH=$PATH:$QTPATH
else
	export PATH=$PATH:%{_prefix}/lib/qt3
fi

%if %{use_gcj}
if [ "`readlink -f %{_bindir}/java`" = "%{_bindir}/jamvm" ]; then
	echo "Warning: Alternatives for java-1.4.2-gcj-compat are not installed properly."
	echo "Warning: Try running \"update-alternatives --config java\" before building this package."
	exit 1
fi
%endif

%if !%{use_icecream}
PATH=/bin:/usr/bin:/usr/X11R6/bin:$QTPATH
export PATH
%endif

mkdir -p src
ln -s %{SOURCE1} src/
ln -s %{SOURCE2} src/
ln -s %{SOURCE3} src/
ln -s %{SOURCE4} src/
ln -s %{SOURCE5} src/
ln -s %{SOURCE10} src/
ln -s %{SOURCE11} src/
ln -s %{SOURCE12} src/
ln -s %{SOURCE13} src/
ln -s %{SOURCE17} src/
%if %use_hunspell
ln -s %{SOURCE18} src/
ln -s %{SOURCE19} src/
%endif
%if %{use_mono}
ln -s %{SOURCE20} src/
ln -s %{SOURCE21} src/
ln -s %{SOURCE26} src/
%endif
ln -s %{SOURCE22} src/
ln -s %{SOURCE23} src/
ln -s %{SOURCE24} src/
ln -s %{SOURCE25} src/
ln -s %{SOURCE29} src/
tar -xf %{SOURCE14} -C src/
tar -xf %{SOURCE15} -C src/
tar -xf %{SOURCE16} -C src/
# splash screen
ln -s %{SOURCE27} src/
ln -s %{SOURCE28} src/
ln -s %{SOURCE30} src/
ln -s %{SOURCE31} src/

if [ -x ./autogen.sh ]; then
	./autogen.sh --with-distro=%{distroname}
fi

%if %{use_ccache}
export CCACHE_DIR=%{ccachedir}
export PATH=$PATH:%{_libdir}/ccache/bin
%endif

export     ARCH_FLAGS="%{optflags} %{optsafe} -fno-omit-frame-pointer -fno-strict-aliasing"
export  ARCH_FLAGS_CC="%{optflags} %{optsafe} -fno-omit-frame-pointer -fno-strict-aliasing"
export ARCH_FLAGS_CXX="%{optflags} %{optsafe} -fno-omit-frame-pointer -fno-strict-aliasing -fpermissive -fvisibility-inlines-hidden"
export ARCH_FLAGS_OPT="%{optflags} -O2 %{optsafe}"
CFLAGS="%{optflags} %{optsafe} -fno-omit-frame-pointer -fno-strict-aliasing" \
CXXFLAGS="%{optflags} %{optsafe} -fno-omit-frame-pointer -fno-strict-aliasing -fpermissive -fvisibility-inlines-hidden" \
%configure2_5x \
	--with-distro=%{distroname} \
	--with-vendor=Mandriva \
        --with-tag=%{oootagver} \
	--with-build-version="%{ooobuildver}" \
	--disable-quickstart \
        --enable-odk \
        --enable-java \
%ifarch x86_64
	--with-intro-bitmaps="%{SOURCE30}" \
        --with-about-bitmaps="%{SOURCE31}" \
%else
	--with-intro-bitmaps="%{SOURCE27}" \
        --with-about-bitmaps="%{SOURCE28}" \
%endif
%if %use_gcj
	--with-java=gij \
%else
	--with-jdk-home=$JAVA_HOME \
%endif
%if %{use_systemdb}
        --with-system-db \
	--with-db-jar=%{_datadir}/java/db-%{libdbver}.jar \
%endif
%if %{use_systemboost}
	--with-system-boost \
%endif
        --with-system-gcc \
	--with-lang=%{ooolangs} \
	--with-binsuffix=%{mdvsuffix} \
	--with-installed-ooo-dirname=ooo-%{mdvsuffix} \
	--with-docdir=%{_datadir}/doc/packages/ooo-%{mdvsuffix} \
	--with-system-glitz \
	--with-system-sane-header \
%if %{use_systemwpd}
	--with-system-libwpd \
%endif
%ifarch x86_64
	--disable-cairo \
	--disable-canvas \
%else
	--with-system-cairo \
%endif
%if %{mdkversion} >= 200610
	--with-system-nas \
%endif
	--with-dynamic-xinerama \
	--enable-binfilter \
        --enable-access \
%if %use_hunspell
        --enable-hunspell \
%else
	--disable-hunspell
%endif
%if %{use_openclipart}
	--with-openclipart=%{_datadir}/images/openclipart \
%endif
%if %{use_mono}
	--enable-mono \
%else
	--disable-mono \
%endif
%if %{use_smp}
	--with-num-cpus=`expr \`getconf _NPROCESSORS_ONLN\` + 1` \
%endif
%if %{use_ccache} && !%{use_icecream}
	--with-gcc-speedup=ccache \
%else
 %if !%{use_ccache} && %{use_icecream}
	--with-gcc-speedup=icecream \
	--with-icecream-max-jobs=10 \
	--with-icecream-bindir=%{_libdir}/icecream/bin
 %else
  %if %{use_ccache} && %{use_icecream}
	--with-gcc-speedup=ccache,icecream \
	--with-icecream-max-jobs=10 \
	--with-icecream-bindir=%{_libdir}/icecream/bin
  %endif
 %endif
%endif

make \
	ARCH_FLAGS="%{optflags} %{optsafe} -fno-omit-frame-pointer -fno-strict-aliasing" \
	ARCH_FLAGS_CC="%{optflags} %{optsafe} -fno-omit-frame-pointer -fno-strict-aliasing" \
	ARCH_FLAGS_CXX="%{optflags} %{optsafe} -fno-omit-frame-pointer -fno-strict-aliasing -fpermissive -fvisibility-inlines-hidden" \
	ARCH_FLAGS_OPT="%{optflags} -O2 %{optsafe}"

%install
%if ! %{skip_install}
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT/opt
%else
rm -f $RPM_BUILD_ROOT%{_menudir}/%{ooomenu}
%endif

# Generate menus
mkdir -p $RPM_BUILD_ROOT%{_menudir}

GenerateMenu() {
[ -f "$RPM_BUILD_ROOT%{_menudir}/%{ooomenu}" ] || touch $RPM_BUILD_ROOT%{_menudir}/%{ooomenu}
mimetypes_item=
[ "$6" != "" ] && mimetypes_item="mimetypes=\"$6\""
cat >> $RPM_BUILD_ROOT%{_menudir}/%{ooomenu} << EOF
?package(%{name}): needs=x11 section="$2" icon="$3" title="$4" longtitle="$5" command="oo$1%{mdvsuffix}" \
$mimetypes_item kde_opt="InitialPreference=110" \
%if %{mdkversion} >= 200610
xdg="true" \
%endif
startup_notify="true"
EOF
}

GenerateMenu calc \
  "Office/Spreadsheets" \
  "ooo-calc%{mdvsuffix}.png" \
  "OpenOffice.org Calc" \
  "OpenOffice.org Spreadsheet" \
  "application/vnd.sun.xml.calc,application/vnd.sun.xml.calc.template,application/vnd.ms-excel,application/vnd.stardivision.calc,application/vnd.stardivision.chart,application/vnd.lotus-1-2-3,text/x-comma-separated-values,application/vnd.oasis.opendocument.spreadsheet,application/vnd.oasis.opendocument.spreadsheet-template"

GenerateMenu draw \
  "Office/Drawing" \
  "ooo-draw%{mdvsuffix}.png" \
  "OpenOffice.org Draw" \
  "OpenOffice.org Drawing" \
  "application/vnd.sun.xml.draw,application/vnd.sun.xml.draw.template,application/vnd.stardivision.draw,application/vnd.oasis.opendocument.graphics,application/vnd.oasis.opendocument.graphics-template"

GenerateMenu impress \
  "Office/Presentations" \
  "ooo-impress%{mdvsuffix}.png" \
  "OpenOffice.org Impress" \
  "OpenOffice.org Presentation" \
  "application/vnd.sun.xml.impress,application/vnd.sun.xml.impress.template,application/vnd.ms-powerpoint,application/vnd.stardivision.impress,application/vnd.oasis.opendocument.presentation,application/vnd.oasis.opendocument.presentation-template"

GenerateMenu writer \
  "Office/Wordprocessors" \
  "ooo-writer%{mdvsuffix}.png" \
  "OpenOffice.org Writer" \
  "OpenOffice.org Word Processing Component" \
  "application/vnd.sun.xml.writer,application/vnd.sun.xml.writer.global,application/vnd.sun.xml.writer.template,application/vnd.ms-word,application/x-mswrite,application/vnd.stardivision.writer,application/vnd.wordperfect,application/wordperfect,application/rtf,text/rtf,application/vnd.oasis.opendocument.text,application/vnd.oasis.opendocument.text-master,application/vnd.oasis.opendocument.text-template,application/vnd.ms-works,application/x-msworks-wp,zz-application/zz-winassoc-wps"

GenerateMenu math \
  "Office/Wordprocessors" \
  "ooo-math%{mdvsuffix}.png" \
  "OpenOffice.org Math" \
  "OpenOffice.org Formula Editor" \
  "application/vnd.stardivision.math,application/vnd.sun.xml.writer.math"

# desktop files
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-Office-Wordprocessors" \
  --add-mime-type="application/vnd.ms-works;application/x-msworks-wp;zz-application/zz-winassoc-wps" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/writer*desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-Office-Spreadsheets" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/calc*desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-Office-Drawing" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/draw*desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-Office-Presentations" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/impress*desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-Office-Other" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/math*desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-Office-Other" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/web*desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-Office" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/template*desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-MoreApplications-Databases" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/base*desktop

# FontOOo|DictOOo wizard
bzcat %{SOURCE50} > $RPM_BUILD_ROOT%{_libdir}/ooo-%{mdvsuffix}/share/dict/ooo/FontOOo.sxw
bzcat %{SOURCE51} > $RPM_BUILD_ROOT%{_libdir}/ooo-%{mdvsuffix}/share/dict/ooo/DicOOo.sxw
chmod 644 $RPM_BUILD_ROOT%{_libdir}/ooo-%{mdvsuffix}/share/dict/ooo/*sxw

# fix permissions for stripping
find $RPM_BUILD_ROOT -type f -exec chmod u+rw '{}' \;

# fix permission of .so libraries
find $RPM_BUILD_ROOT -type f \( -name '*.so' -o -name '*.so.*' \) -exec chmod a+x '{}' \;

# remove /usr/bin/soffice (made with update-alternatives)
rm -f $RPM_BUILD_ROOT%{_bindir}/soffice

cat build/common_list.txt | \
        grep -v gallery/htmltheme.orig | \
        grep -v ^$ | \
        sed -e 's/^\t//g' > build/common_list_fixed.txt

if [ -f $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ooo-wrapper.sh ]; then
 mv $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ooo-wrapper.sh \
 	$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ooo-wrapper%{mdvsuffix}.sh
fi

if [ -f $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ooffice.sh ]; then
 mv $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ooffice.sh \
 	$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/ooffice%{mdvsuffix}.sh
fi

# Fix german dictionary
if ! grep -q "^DICT de DE de_DE_comb" $RPM_BUILD_ROOT%{_libdir}/ooo-%{mdvsuffix}/share/dict/ooo/dictionary.lst; then
        echo "DICT de DE de_DE_comb" >> $RPM_BUILD_ROOT%{_libdir}/ooo-%{mdvsuffix}/share/dict/ooo/dictionary.lst
fi

%if %{mdkversion} < 200710
# Extra KDE mime-types
mkdir -p $RPM_BUILD_ROOT%{_datadir}/mimelnk/application
tar -xjf %{SOURCE53} -C $RPM_BUILD_ROOT%{_datadir}/mimelnk/application/
%endif

if [ -e $RPM_BUILD_ROOT%{_libdir}/pkgconfig/mono-ooo-%{mdvsuffix}.pc ]; then
mv $RPM_BUILD_ROOT%{_libdir}/pkgconfig/mono-ooo-%{mdvsuffix}.pc \
   $RPM_BUILD_ROOT%{_libdir}/pkgconfig/mono-ooo%{mdvsuffix}-2.1.pc
fi

%clean
%if ! %{skip_install}
rm -rf $RPM_BUILD_ROOT
%endif


%post
%{update_menus}
%if %{mdkversion} >= 200610
%{update_desktop_database}
%endif
/usr/sbin/update-alternatives \
        --install %{_bindir}/soffice ooffice %{_bindir}/ooffice%{mdvsuffix} %{oooaltpri} \
	--slave %{_bindir}/ooffice   ooffice%{mdvsuffix}   %{_bindir}/ooffice%{mdvsuffix} \
	--slave %{_bindir}/oowriter  oowriter%{mdvsuffix}  %{_bindir}/oowriter%{mdvsuffix} \
	--slave %{_bindir}/oobase    oobase%{mdvsuffix}    %{_bindir}/oobase%{mdvsuffix} \
	--slave %{_bindir}/ooimpress ooimpress%{mdvsuffix} %{_bindir}/ooimpress%{mdvsuffix} \
	--slave %{_bindir}/oocalc    oocalc%{mdvsuffix}    %{_bindir}/oocalc%{mdvsuffix} \
        --slave %{_bindir}/ootool    ootool%{mdvsuffix}    %{_bindir}/ootool%{mdvsuffix} \
        --slave %{_bindir}/ooweb     ooweb%{mdvsuffix}     %{_bindir}/ooweb%{mdvsuffix}
[ -e %{_bindir}/ooffice ] || /usr/sbin/update-alternatives --auto ooffice

%postun
%{clean_menus}
%if %{mdkversion} >= 200610
%{clean_desktop_database}
%endif
if [ "$1" = "0" ]; then
        /usr/sbin/update-alternatives --remove ooffice %{_bindir}/ooffice%{mdvsuffix}
fi

%files -f build/common_list_fixed.txt
%defattr(-,root,root)
%{_sysconfdir}/bash_completion.d/o*%{mdvsuffix}.sh
%{_bindir}/*
%{_datadir}/pixmaps/*.png
%{_datadir}/mime/packages/openoffice.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/ooo-*%{mdvsuffix}.png
%{_datadir}/icons/hicolor/*/apps/ooo-*%{mdvsuffix}.svg
%{_mandir}/man1/*1.*
%{_menudir}/%{ooomenu}
%{_libdir}/ooo-%{mdvsuffix}/share/dict/ooo/FontOOo.sxw
%{_libdir}/ooo-%{mdvsuffix}/share/dict/ooo/DicOOo.sxw

%files gnome -f build/gnome_list.txt
%defattr(-,root,root)

%files kde -f build/kde_list.txt
%defattr(-,root,root)

%files ooqstart -f build/ooqstart_list.txt
%defattr(-,root,root)

%if %{use_mono}
%files mono -f build/mono_list.txt
%defattr(-,root,root)
%{_libdir}/pkgconfig/mono-ooo%{mdvsuffix}-2.1.pc
%endif

%if %{use_openclipart}
%files galleries -f build/galleries.txt
%defattr(-,root,root)
%endif

%files devel -f build/sdk_list.txt
%defattr(-,root,root)

%files devel-doc -f build/sdk_doc_list.txt
%defattr(-,root,root)

%if %{mdkversion} < 200710
%files mimelnk
%defattr(-,root,root)
%attr(644,root,root) %{_datadir}/mimelnk/application/*.desktop
%endif

%files l10n-it -f build/lang_it_list.txt
%defattr(-,root,root)

%if !%{tiny_langset}
%files l10n-af -f build/lang_af_list.txt
%defattr(-,root,root)

%files l10n-ar -f build/lang_ar_list.txt
%defattr(-,root,root)

%files l10n-bg -f build/lang_bg_list.txt
%defattr(-,root,root)

%files l10n-br -f build/lang_br_list.txt
%defattr(-,root,root)

%files l10n-bs -f build/lang_bs_list.txt
%defattr(-,root,root)

%files l10n-ca -f build/lang_ca_list.txt
%defattr(-,root,root)

%files l10n-cs -f build/lang_cs_list.txt
%defattr(-,root,root)

%files l10n-cy -f build/lang_cy_list.txt
%defattr(-,root,root)

%files l10n-da -f build/lang_da_list.txt
%defattr(-,root,root)

%files l10n-de -f build/lang_de_list.txt
%defattr(-,root,root)

%files l10n-el -f build/lang_el_list.txt
%defattr(-,root,root)

%files l10n-en_GB -f build/lang_en-GB_list.txt
%defattr(-,root,root)

%files l10n-es -f build/lang_es_list.txt
%defattr(-,root,root)

%files l10n-et -f build/lang_et_list.txt
%defattr(-,root,root)

%files l10n-eu -f build/lang_eu_list.txt
%defattr(-,root,root)

%files l10n-fi -f build/lang_fi_list.txt
%defattr(-,root,root)

%files l10n-fr -f build/lang_fr_list.txt
%defattr(-,root,root)

%files l10n-he -f build/lang_he_list.txt
%defattr(-,root,root)

%files l10n-hi -f build/lang_hi_list.txt
%defattr(-,root,root)

%files l10n-hu -f build/lang_hu_list.txt
%defattr(-,root,root)

%files l10n-ja -f build/lang_ja_list.txt
%defattr(-,root,root)

%files l10n-ko -f build/lang_ko_list.txt
%defattr(-,root,root)

%files l10n-mk -f build/lang_mk_list.txt
%defattr(-,root,root)

%files l10n-nb -f build/lang_nb_list.txt
%defattr(-,root,root)

%files l10n-nl -f build/lang_nl_list.txt
%defattr(-,root,root)

%files l10n-nn -f build/lang_nn_list.txt
%defattr(-,root,root)

%files l10n-pl -f build/lang_pl_list.txt
%defattr(-,root,root)

%files l10n-pt -f build/lang_pt_list.txt
%defattr(-,root,root)

%files l10n-pt_BR -f build/lang_pt-BR_list.txt
%defattr(-,root,root)

%files l10n-ru -f build/lang_ru_list.txt
%defattr(-,root,root)

%files l10n-sk -f build/lang_sk_list.txt
%defattr(-,root,root)

%files l10n-sl -f build/lang_sl_list.txt
%defattr(-,root,root)

%files l10n-sv -f build/lang_sv_list.txt
%defattr(-,root,root)

%files l10n-ta -f build/lang_ta_list.txt
%defattr(-,root,root)

%files l10n-tr -f build/lang_tr_list.txt
%defattr(-,root,root)

%files l10n-zh_CN -f build/lang_zh-CN_list.txt
%defattr(-,root,root)

%files l10n-zh_TW -f build/lang_zh-TW_list.txt
%defattr(-,root,root)

%files l10n-zu -f build/lang_zu_list.txt
%defattr(-,root,root)
%endif


%changelog
* Tue Sep 18 2007 Vincent Danen <vdanen@mandriva.com> 2.1.0-10.2mdv2007.1
- P14: security fix for CVE-2007-2834

* Thu Jul 05 2007 Vincent Danen <vdanen@mandriva.com> 2.1.0-10.1mdv2007.1
- P13: security fix for CVE-2007-0245

* Sat Mar 31 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-10mdv2007.1
- Added Patch11, Patch12 for fixing security bug #29975.
- Fix for bug #29650.
- ooo-build-2.1.9_cvs20070330 (tango icons set for GNOME, fix various bugs
  in VBA).

* Sat Mar 17 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-9mdv2007.1
- Rebuilt against latest clipart-openclipart (fixes bug #29568).

* Mon Mar 12 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-8mdv2007.1
- Removed X-MandrivaLinux-Office-Spreadsheet from base*.desktop (bug #29381).
- Don't use splash screens with transparencies (report by Hélène).

* Tue Mar 06 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-7mdv2007.1
- Fixed splash screen.

* Sat Mar 03 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-6mdv2007.1
- ooo-build 2.1.7_cvs20070304.
- merged Felipe Arruda's fixes for brazilian .desktop files translations.
- merged Funda Wang patches for VCL.xcu for chinese menus (bug #29026), and
  removed Patch7.
- force building with system sane.
- Updated Splash Screens (thanks to Hélène Durosini).

* Sat Feb 24 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-5mdv2007.1
- removed mimelnk subpackage
- ooo-build 2.1.6_cvs20070224 (fix problem when saving in PPT).
- added update-alternatives for ooffice links into %{_bindir}.
- moved docdir (to allow coexisting between i586 and x86_64 packages).

* Fri Feb 16 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-4mdv2007.1
- ooo-build 2.1.6_cvs20070216.
- Removed Patch8 (merged upstream).
- Removed Patch9 (merged upstream).
- Rebuilt Patch10 (partially merged upstream).

* Mon Feb 12 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-3mdv2007.1
- Updated Source15 (updates for de_DE, it_IT, pl_PL,
  new thesaurus for pt_PT, nb_NO, ru_RU).

* Sat Feb 10 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-2mdv2007.1
- ooo-build 2.1.5_cvs20070210.
- Added Patch7 for serializer.jar for problems with gcj.

* Thu Feb 08 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.1.0-1mdv2007.1
- ooo-build 2.1.3_cvs20070208.
- use 2.1 for mdvsuffix.
- Removed Patch5 (no longer needed).
- OpenOffice 2.1.0.
- Added Patch7 (temporary disable patch for chinese, as it
  doesn't apply anymore and need to be rediffed).
- Added BuildConflicts for libportaudio2 (Florian Hubold).

* Tue Jan 30 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.4-4mdv2007.1
- ooo-build 2.0.4.14_cvs20070130.

* Mon Jan 29 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.4-3mdv2007.0
- BuildRequires for libportaudio0-devel instead libportaudio-devel
  (libportaudio2-devel is broken?).

* Thu Jan 04 2007 Vincent Danen <vdanen@mandriva.com> 2.0.4-2.1mdv2007.0
- build for updates, includes the fix for CVE-2006-5870

* Wed Dec 20 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.4-2mdv2007.0
- added mime-types 'application/vnd.ms-works;application/x-msworks-wp;
  zz-application/zz-winassoc-wps' to writer*desktop (bug #27616).
- cosmetics to the SPEC file.

* Wed Dec 20 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.4-1mdv2007.0
- OpenOffice to 2.0.4.
- ooo-build 20061220 cvs.

* Tue Sep 19 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-6mdv2007.0
- ooo-build 20060919 cvs: fix cjk fonts (bug #22018, #25701).

* Fri Sep 15 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-5mdv2007.0
- Rebuilt against mozilla-firefox 1.5.0.7.

* Thu Sep 14 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-4mdv2007.0
- Changed .desktop entries categories according to bug #25641.
- Fixed splash screen (ooo-build 20060914 cvs).

* Mon Sep 11 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-3mdv2007.0
- use %%mklibname for unixODBC (from Gwenole).
- added mk in language list.
- fixed csh path in setsdk_unix.csh script.
- Updated FontOOo.sxw wizard to release 1.6.
- Updated DicOOo.sxwd wizard to release 1.6.1.
- Removed Patch5,6 (unused).
- Removed Patch7, merged ooo-build upstream (ooo-build 2.0.3-20060911).
- Added mimetypes for old OpenOffice formats (missed in kdelibs-common),
  Source53 and mimelnk subpackage.
- Removed kaffe from "Conflicts" (seems not conflicting in runtime)
  (from D.Walluck).

* Mon Aug 21 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-2mdv2007.0
- ooo-build 20060821 cvs.
- Merged Anssi Hannula's fixes (and added -devel and -devel-doc subpackages).
- Added Patch7 for dbus-0.91.

* Thu Jul 06 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-1mdv2007.0
- Release 2.0.3.
- ooo-build 20060706 cvs.

* Mon Jun 26 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-0.m6.2mdv2007.0
- ooo-build 20060624 cvs.

* Wed Jun 21 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-0.m6.1mdv2006.0
- Release oooc680-m6.
- Added Breton language.

* Mon Jun 19 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.3-0.m5.1mdk
- 2.0.3-m5.
- ooo-build 20060619 cvs.
- Removed hunspell subpackage (was empty).
- Renamed package to OpenOffice.org (warly).

* Sat May 06 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-6mdk
- ooo-build 2.0.2.9.
- Added Patch6 to allow building with neon library version 0.26.

* Sat Apr 15 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-5mdk
- ooo-build 2.0.2.7 (fixes also bug #21869).
- fix typo in Requires when --with systemdb is used (thanks to Richard Houser).
- Disable default cairo rendering for 2006.0 (cause jittering/slow down under
  Impress presentations).

* Sat Mar 18 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-4mdk
- ooo-build 2.0.2.1.

* Sat Mar 11 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-3mdk
- Removed Patch3 (merged into ooo-build upstream).
- ooo-build 2.0.2.cvs20060311.

* Sat Mar 11 2006 Giuseppe Ghibr <ghibo@mandriva.com> 2.0.2-2mdk
- Modified Patch3 (set OOO_EXTRA_ARG to empty string which is
  not the same as unset).

* Thu Mar 09 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-1mdk
- Release 2.0.2 final.
- ooo-build 2.0.2.

* Mon Mar 06 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-0.rc4.3mdk
- moved ooqstart to a standalone subpackage (Patch4).

* Sat Mar 04 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-0.rc4.2mdk
- ooo-build 2.0.157.cvs20060304 (fixes bug #21428, IZ#62068).
- Added Patch3 (fixes OOO_EXTRA_ARG env var when it's not set and
  called from ooffice2.0 wrapper).

* Fri Mar 03 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-0.rc4.1mdk
- ooo-build 2.0.157.cvs20060302.
- Disable direct quickstart call for now.

* Thu Mar 02 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-0.m5.2mdk
- ooo-build 2.0.157.cvs20060301.
- Added Conflicts: kaffe.

* Wed Mar 01 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-0.m5.1mdk
- Release oob680-m5.

* Tue Feb 28 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.2-0.m4.1mdk
- Release oob680-m4.

* Mon Feb 06 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0.1-1mdk
- Release 2.0.1
- remove --with-system-db-version in configure because doesn't exists anymore.
- added --with-systemdb conditional flag.
- added --with-tiny_langset conditional flag
- ooo-build-2.0.1.3.
- Added --with gcj switch for building with gcj instead of Sun JDK.
- Added Patch1 for supporting .lzma tarballs.
- Added Patch2 to fix bug #19111 (from Eskild Hustvedt).
- Moved Patch5 into ooo-build tree.

* Sat Jan 14 2006 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-7mdk
- fixed bug IZ#47323.
- removed de-DE.tar.bz2 from Source15 not Source14.
- ooo-build-cvs20051026 (fix bug IZ#52047).
- renamed menu name to openoffice.org-2.0 (Gwenole).
- Added bulgarian l10n subpackage.
- ooo-build-cvs20060114.
- Lowered optimization to -O1, as -O2 causes segfaults (with gcc 4.0.2-1mdk) in the
  libunosal.so.3 libs from javaldx executable during package building.

* Thu Oct 20 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-1mdk
- 2.0 final.

* Fri Oct 14 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.rc3.1mdk
- 2.0-rc3.

* Mon Sep 26 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m129.3mdk
- ooobuild cvs 20050924.
- moved libsndfile.so, libportaudio.so, libdb-4.2.so, libmyspell.so,
  libstlport_gcc.so to provides exceptions (Pascal Terjan).

* Sat Sep 24 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m129.2mdk
- ooobuild cvs 20050921.
- Removed Patch4 (fixed in upstream).
- Added libdb-4.2.so, libmyspell.so, libstlport_gcc.so to require exceptions
  (bug #17262).

* Sat Sep 17 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m129.1mdk
- 1.9.129.
- ooobuild cvs 20050918.
- Removed Patch0->3 (merged upstream).
- Added Patch4 (disable patch for i54709), because it doesn't apply correctly.
- White progressbar.
- Added Gwenole Patches for having OOo2 working under X86_64 in 32bit mode
  (Patch5).

* Thu Sep 14 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m128.5mdk
- Fix bug #18581 (libportaudio).
- Move libkab1.so to -kde package (pterjan).

* Wed Sep 14 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m128.4mdk
- ooobuild cvs 20050914.

* Wed Sep 14 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m128.3mdk
- added Patch0 for spellchecker
- Updated Source16.

* Mon Sep 12 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m128.2mdk
- binfilters, mono.

* Thu Sep 08 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m128.1mdk
- 1.9.128.

* Mon Jul 25 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m121.1mdk
- 1.9.121.

* Mon Jul 11 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m116.1mdk
- 1.9.116.

* Mon Jul 11 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m114.1mdk
- 1.9.114.

* Fri Jun 24 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m110.1mdk
- Updated ooo-build to cvs 20050624.
	
* Thu Jun 23 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m108.2mdk
- Updated ooo-build to cvs 20050623 (fixes problem with
  icon sets).

* Wed Jun 22 2005 Giuseppe Ghibò <ghibo@mandriva.com> 2.0-0.m108.1mdk
- 1.9.110.

* Wed Mar 23 2005 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.1.4-1mdk
- 1.1.4.

* Fri Jan 21 2005 Giuseppe Ghibò <ghibo@mandrakesoft.com> 1.1.3-1mdk
- Initial release.