Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > daa97b8c1c51c3cf7fc9b4fedaffc08c > files > 41

openoffice.org-2.2.1-3mdv2008.0.src.rpm

%define unstable	0

%ifarch x86_64
%define	ooname		openoffice.org64
%define name		openoffice.org64
%define oooaltpri	23
%else
%define	ooname		openoffice.org
%define name		openoffice.org
%define oooaltpri	22
%endif

%define _binary_payload w9.bzdio
#define _source_payload w9.bzdio

%define version		2.2.1
%define release		%mkrel 3

%define oootagver	oof680-m18
%define ooobuildver	2.2.1.10110
%define jdkver		1_5_0_11
%ifarch x86_64
%define mdvsuffix	2.2_64
%else
%define mdvsuffix	2.2
%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	bz2

%ifarch x86_64
%define distroname      Mandriva64
%define jdkver          1.4.2
%else
%define distroname      Mandriva
%define jdkver          1_5_0_11
%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_systemboost 0
%{?_with_systemboost: %global use_systemboost 1}
%{?_without_systemboost: %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)
%define optsafe	""

%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
Requires:	freetype2 >= 2.1.3-3mdk
Requires:	ghostscript
Requires:	fonts-ttf-liberation
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
# Due to %{_bindir}/paperconf
Requires:	paper-utils
Requires(post): desktop-file-utils update-alternatives
Requires(postun): desktop-file-utils update-alternatives
Obsoletes:	OpenOffice.org
Obsoletes:	OpenOffice.org-libs
Obsoletes:	%{ooname}-go-ooo <= %{version}
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
%if %{use_systemboost}
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
BuildRequires:	libgstreamer-plugins-base-devel
BuildRequires:  libxaw-devel
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 >= 0.26
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-gcj-compat-devel >= 1.0.76-14.8
#
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
#
# <mrl> Not yet, must check java stuff first.
#BuildRequires:	hsqldb
# <mrl> not working as external yet
#BuildRequires:	bsh
#BuildRequires:	libsablotron0-devel

BuildRequires:	libwpg-devel
BuildRequires:	libwps-devel
BuildRequires:	icu
BuildRequires:	libicu-devel
BuildRequires:	libwps-devel
BuildRequires:	libmdbtools-devel
BuildRequires:	xmlsec1-nss-devel


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

Source0:	http://www.go-ooo.org/packages/OOF680/ooo-build-%{ooobuildver}.tar.gz
Source1:	http://www.go-ooo.org/packages/OOF680/%{oootagver}-core.tar.%{oootarext}
Source2:	http://www.go-ooo.org/packages/OOF680/%{oootagver}-lang.tar.%{oootarext}
Source3:	http://www.go-ooo.org/packages/OOF680/%{oootagver}-binfilter.tar.%{oootarext}
Source4:	http://www.go-ooo.org/packages/OOF680/%{oootagver}-system.tar.%{oootarext}
Source5:	http://www.go-ooo.org/packages/OOF680/%{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
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
# splash screens (64bit)
Source31:	openintro_mandriva64.bmp
Source32:	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
Source60:	openoffice.org.csh
Source61:	openoffice.org.sh

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
Patch8:		ooo-build-2.2.1-xdg.patch
Patch10:	openoffice.org-2.1.0-install.patch
Patch14:	ooo-build-2.2.1-kde.patch
Patch16:	oof680-m18-core-ooqstart.patch
Patch17:	ooo-build-fix-build-java-target-patch.patch
Patch18:	ooo-build-2.2.1-neon.patch
Patch19:	ooo-build-2.2.1-desktop_files.patch
Patch20:	ooo-build-2.2.1-neon2.patch
Patch21:	openoffice.org-2.2.1-CVE-2007-2834.patch
# (mrl) Force document downloads. http://qa.mandriva.com/show_bug.cgi?id=26983
Patch22:	ooo-build-2.2.1-force_downloads.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}
Obsoletes:	%{ooname}-go-ooo-gnome <= %{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}
Obsoletes:	%{ooname}-go-ooo-kde <= %{version}

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

%package ooqstart
Summary:	Internal quickstarter for OpenOffice.org
Group:		Office
Requires:	%{ooname} = %{version}
Obsoletes:	%{ooname}-go-ooo-ooqstart <= %{version}

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

%package mono
Summary:	Mono UNO Bridge for OpenOffice.org
Group:		Office
Requires:	%{ooname} = %{version}
Obsoletes:	%{ooname}-go-ooo-mono <= %{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
Obsoletes:	%{ooname}-go-ooo-clipart <= %{version}

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

%package devel-doc
Summary:	OpenOffice.org SDK Documentation
Group:		Development/C++
Obsoletes:	%{ooname}-go-ooo-devel-doc <= %{version}

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

%package devel
Summary:	OpenOffice.org SDK
Group:		Development/C++
Requires:	%{ooname} = %{version}
Obsoletes:	%{ooname}-go-ooo-devel <= %{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
Obsoletes:	%{ooname}-go-ooo-mimelnk <= %{version}

%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-dejavu
Requires:	urw-fonts
Requires:	myspell-it
Requires:	myspell-hyph-it
Obsoletes:	%{ooname}-go-ooo-l10n-it <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-af <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-ar <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-bg <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-br <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-bs <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-ca <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-cs <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-cy <= %{version}

%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-dejavu
Requires:	urw-fonts
Requires:	myspell-da, myspell-hyph-da
Obsoletes:	OpenOffice.org-l10n-da
Provides:	OpenOffice.org-l10n-da
Obsoletes:	%{ooname}-go-ooo-l10n-da <= %{version}

%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-dejavu
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
Obsoletes:	%{ooname}-go-ooo-l10n-de <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-el <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-en_GB <= %{version}

%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-dejavu
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
Obsoletes:	%{ooname}-go-ooo-l10n-es <= %{version}

%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-dejavu
Requires:	urw-fonts
Requires:	myspell-et
Requires:	myspell-hyph-et
Obsoletes:	OpenOffice.org-l10n-et
Provides:	OpenOffice.org-l10n-et
Obsoletes:	%{ooname}-go-ooo-l10n-et <= %{version}

%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-dejavu
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-eu
Obsoletes:	OpenOffice.org-help-eu
Provides:	OpenOffice.org-l10n-eu
Provides:	OpenOffice.org-help-eu
Obsoletes:	%{ooname}-go-ooo-l10n-eu <= %{version}

%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-dejavu
Requires:	urw-fonts
Requires:	%{ooname}-voikko
Obsoletes:	OpenOffice.org-l10n-fi
Obsoletes:	OpenOffice.org-help-fi
Provides:	OpenOffice.org-l10n-fi
Provides:	OpenOffice.org-help-fi
Obsoletes:	%{ooname}-go-ooo-l10n-fi <= %{version}

%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-dejavu
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
Obsoletes:	%{ooname}-go-ooo-l10n-fr <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-he <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-hi <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-hu <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-ja <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-ko <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-mk <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-nb <= %{version}

%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-dejavu
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
Obsoletes:	%{ooname}-go-ooo-l10n-nl <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-nn <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-pl <= %{version}

%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-dejavu
Requires:	urw-fonts
Requires:	myspell-pt
Requires:	myspell-hyph-pt
Obsoletes:	OpenOffice.org-l10n-pt
Provides:	OpenOffice.org-l10n-pt
Obsoletes:	%{ooname}-go-ooo-l10n-pt <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-pt_BR <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-ru <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-su <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-sl <= %{version}

%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-dejavu
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
Obsoletes:	%{ooname}-go-ooo-l10n-sv <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-ta <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-tr <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-zh_CN <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-zh_TW <= %{version}

%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
Obsoletes:	%{ooname}-go-ooo-l10n-zu <= %{version}

%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 -q -n ooo-build-%{ooobuildver}

# Add lzma support
%if %{oootarext} == "lzma"
%patch1 -p1 -b .lzma
%endif

#%patch2 -p1 -b .localwidget
%patch4 -p1 -b .qstart
%if %{mdkversion} >= 200710
%patch6 -p1 -b .xpcom
%endif
%patch8 -p1 -b .xdg
%patch10 -p1 -b .oooinst
%patch14 -p1 -b .kde
%patch16 -p1 -b .ooqstart
%patch17 -p1 -b .javac
%patch18 -p1 -b .neon
%if ! %unstable
%patch19 -p1 -b .desktop_files
%endif
%patch20 -p1 -b .neon2
%patch21 -p1 -b .cve-2007-2834

# Fix Icon tags
sed -i s/.png$// desktop/*desktop*

%patch22 -p1 -b .bug26983

%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}
# sbin due to icu stuff there
PATH=/bin:/usr/bin:/usr/X11R6/bin:$QTPATH:/usr/sbin
export PATH
%endif

mkdir -p src
ln -sf %{SOURCE1} src/
ln -sf %{SOURCE2} src/
ln -sf %{SOURCE3} src/
ln -sf %{SOURCE4} src/
ln -sf %{SOURCE5} src/
ln -sf %{SOURCE10} src/
ln -sf %{SOURCE11} src/
ln -sf %{SOURCE12} src/
ln -sf %{SOURCE13} src/
ln -sf %{SOURCE17} src/
%if %use_hunspell
ln -sf %{SOURCE18} src/
ln -sf %{SOURCE19} src/
%endif
%if %{use_mono}
ln -sf %{SOURCE20} src/
ln -sf %{SOURCE21} src/
ln -sf %{SOURCE26} src/
%endif
ln -sf %{SOURCE22} src/
ln -sf %{SOURCE23} src/
ln -sf %{SOURCE24} src/
ln -sf %{SOURCE25} src/
tar -xf %{SOURCE14} -C src/
tar -xf %{SOURCE15} -C src/
tar -xf %{SOURCE16} -C src/
# splash screen
ln -sf %{SOURCE27} src/
ln -sf %{SOURCE28} src/
ln -sf %{SOURCE31} src/
ln -sf %{SOURCE32} 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}"

%if %use_gcj
export JAVA=%java
export JAVAC=%javac
export ANT="%ant"
%endif

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}" \
        --enable-odk \
        --enable-java \
	--enable-gstreamer \
	--with-firefox \
	--with-system-mozilla \
	--with-system-libs \
	--without-system-hsqldb \
	--without-system-beanshell \
	--without-system-xml-apis \
	--without-system-xerces \
	--without-system-xalan \
	--without-system-xt \
	--with-system-xmlsec \
	--without-system-mspack \
	--with-system-libwps \
	--with-system-libwpd \
	--with-system-libwpg \
	--without-system-sablot \
%ifarch x86_64
	--with-intro-bitmaps="%{SOURCE31}" \
        --with-about-bitmaps="%{SOURCE32}" \
%else
	--with-intro-bitmaps="%{SOURCE27}" \
        --with-about-bitmaps="%{SOURCE28}" \
%endif
%if %use_gcj
	--with-jdk-home=%java_home \
	--with-java-target-version=1.5 \
%else
	--with-jdk-home=$JAVA_HOME \
%endif
%if %{use_systemdb}
        --with-system-db \
	--with-db-jar=%{_datadir}/java/db-%{libdbver}.jar \
%else
	--without-system-db \
%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 \
%ifarch x86_64
	--disable-cairo \
	--disable-canvas \
%else
	--with-system-cairo \
%endif
	--with-system-nas \
	--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
# sbin due to icu stuff there
PATH=$PATH:/usr/sbin

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

# Generate menus
mkdir -p %{buildroot}%{_menudir}

GenerateMenu() {
[ -f "%{buildroot}%{_menudir}/%{ooomenu}" ] || touch %{buildroot}%{_menudir}/%{ooomenu}
mimetypes_item=
[ "$6" != "" ] && mimetypes_item="mimetypes=\"$6\""
cat >> %{buildroot}%{_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" \
xdg="true" \
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-CrossDesktop" \
  --add-mime-type="application/vnd.ms-works;application/x-msworks-wp;zz-application/zz-winassoc-wps" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/writer*desktop

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

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="Graphics" \
  --remove-category="VectorGraphics" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-CrossDesktop" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/draw*desktop

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

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

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="Network" \
  --remove-category="WebDevelopment" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-CrossDesktop" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/web*desktop

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

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="Database" \
  --add-category="Office" \
  --add-category="X-MandrivaLinux-CrossDesktop" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/base*desktop

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

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

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

# remove /usr/bin/soffice (made with update-alternatives)
rm -f %{buildroot}%{_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 %{buildroot}%{_sysconfdir}/bash_completion.d/ooo-wrapper.sh ]; then
 mv %{buildroot}%{_sysconfdir}/bash_completion.d/ooo-wrapper.sh \
 	%{buildroot}%{_sysconfdir}/bash_completion.d/ooo-wrapper%{mdvsuffix}.sh
fi

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

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

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

mv %{buildroot}%{_libdir}/pkgconfig/mono-ooo-%{mdvsuffix}.pc \
   %{buildroot}%{_libdir}/pkgconfig/mono-ooo%{mdvsuffix}-2.2.pc

# Install profile.d/ files (#33475)
install -D %{_sourcedir}/openoffice.org.csh %{buildroot}%{_sysconfdir}/profile.d/openoffice.org.csh
install -D %{_sourcedir}/openoffice.org.sh %{buildroot}%{_sysconfdir}/profile.d/openoffice.org.sh

%clean
%if ! %{skip_install}
rm -rf %{buildroot}
%endif


%post
%{update_menus}
%{update_desktop_database}
# <mrl> Bogus versioning in previous alternatives setup forces us to do this
# We can safelly remove it, as we are obsoleting that version anyway.
/usr/sbin/update-alternatives --remove ooffice %{_bindir}/ooffice2.1 || :
/usr/sbin/update-alternatives \
        --install %{_bindir}/soffice ooffice   %{_bindir}/ooffice%{mdvsuffix} %{oooaltpri} \
	--slave %{_bindir}/oowriter  oowriter  %{_bindir}/oowriter%{mdvsuffix} \
	--slave %{_bindir}/oobase    oobase    %{_bindir}/oobase%{mdvsuffix} \
	--slave %{_bindir}/ooimpress ooimpress %{_bindir}/ooimpress%{mdvsuffix} \
	--slave %{_bindir}/oocalc    oocalc    %{_bindir}/oocalc%{mdvsuffix} \
        --slave %{_bindir}/ootool    ootool    %{_bindir}/ootool%{mdvsuffix} \
        --slave %{_bindir}/ooweb     ooweb     %{_bindir}/ooweb%{mdvsuffix}
[ -e %{_bindir}/ooffice ] || /usr/sbin/update-alternatives --auto ooffice

%postun
%{clean_menus}
%{clean_desktop_database}
if [ ! -e "%{_bindir}/ooffice%{mdvsuffix}" ]; 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
%{_sysconfdir}/profile.d/*
%{_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.2.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
* Fri Sep 21 2007 mrl <mrl> 2.2.1-3mdv2008.0
+ Revision: 91862
- Added patch force_downloads: force downloading of documents from the web
  and/or other IOs (KIOs). Closes: #26983
- Adds back '64' tag to .desktop filenames when it's build on x86_64. Closes: #33825
- Added support for /etc/profile.d/openoffice.org.{c,}sh. Closes: #33475
- Updated thes_es_ES. Closes: #33536.
- Updated thes_bg_BG_v2.tar.bz2 and thes_en_US_v2.tar.bz2 in thes-2.tar.
  Closes: #33537, #33538
- Added patch openoffice.org-2.2.1-CVE-2007-2834.patch. Closes: #33824
- Force enable gstreamer backend. Closes: #27580
- Fix Icon tag on desktop files.

  + anssi <anssi>
    - fix removal of old alternative when mdvsuffix changes

* Wed Sep 05 2007 mrl <mrl> 2.2.1-2mdv2008.0
+ Revision: 80050
- Added neon2 patch. Closes: #25204
- Implemented .desktop categories changes as requested by #32902
- Added patch desktop_files: do not versionate stable .desktop files.
- Use ooo-build ver 2.2.1.10110: move on step further on svn version for using
  stable libwp*.
- Added requires to fonts-ttf-liberation.
- Forced linking against libneon >= 0.26: linking against 0.24 is even more
  unstable (UI freezes).
- Removed patch libwpg: already applied on ooo-build-2.2.1-10110.
- New design for Mandriva 2008.0.
- Added neon patch: closes #32121
  Fixes handling URL's with wierd chars due to new libneon behaviour change.
- Fix path for icu tools.
- Import openoffice.org

  + anssi <anssi>
    - require openoffice.org-voikko instead of myspell-hyph-fi in
      openoffice.org-l10n-fi for better Finnish support
    - fix use_systemboost build option

  + tv <tv>
    - convert prereq
    - kill file require on update-alternatives

  + ademar <ademar>
    - remove PreReq for chkfontpath (apparently a legacy requirement,
      since it's not used anywhere)
    - change fonts-ttf-vera requirements to fonts-ttf-dejavu
      (Dejavu is the preferred default font)




* Fri Jun 29 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.2.1-1mdv2008.0
- Updated to 2.2.1
- Renamed to openoffice.org
- Not using lzma for now
- Enabled SMP usage.
- Dropped support for <= 2006.0
- Added requires to paper-utils, due to paperconf.
- libwpd, libwpg, libwps, libicu and libmdbtools are now linked externally.
- Added patch xdg: fix complaiment about MultipleArgs on template2.2.desktop
- Added patch libwpg: fix missing config variable SYSTEM_LIBWPG during build
  time.
- Added patch kde: moves fps_kde.uno.so to -kde package, otherwise OOo gets
  confused about kde/gnome dialogs.
- Added patch ooqstart: fixes ooqstart.desktop exec command line.
- Many fixes for java/x86_64 from Anssi Hannula, including patch
  ooo-build-fix-build-java-target-patch

* Sat Mar 24 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.2.0-4.rc4.1mdv2007.1
- ooo-build 2.2.0_cvs20070323.
- use oof680-m14 (RC4).

* Wed Mar 21 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.2.0-3.m13.2mdv2007.1
- ooo-build 2.2.0_cvs20070321.

* Mon Mar 19 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.2.0-3.m13.1mdv2007.1
- Rebuilt against latest clipart-openclipart (fixes bug #29568).
- ooo-build 2.2.0_cvs20070319.
- use system libwpd.

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

* Fri Mar 09 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.2.0-2.rc3.1mdv2007.1
- ooo-build 2.2.0_cvs20070309.
- use oof680-m11 (RC3).

* Tue Mar 06 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.2.0-2.m10.2mdv2007.1
- ooo-build 2.2.0_cvs20070306.
- Fixed splash screen.

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

* Mon Feb 26 2007 Giuseppe Ghibò <ghibo@mandriva.com> 2.2.0-1mdv2007.1
- ooo-build 2.2.0_cvs2007025.
- renamed to *go-ooo to distinguish from main openoffice.org.

* 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.