Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > by-pkgid > 5235a9291fa30e7236557b55259ce681 > files > 41

openoffice.org-3.2-4mdv2010.1.src.rpm

%define unstable	0
%define debug_package  %{nil}

%define l10n   1
%{?_with_l10n: %global l10n 1}
%{?_without_l10n: %global l10n 0}

%define	ooname		openoffice.org
%define name		openoffice.org

#define _binary_payload w1.gzdio
#define _binary_payload w9.bzdio
%define _binary_payload w9.lzdio
#define _source_payload w9.bzdio

%define version	        3.2
%define release		%mkrel 4

%define oootagver	ooo320-m12
%define ooobuildver     3.2.0.9
%define basis           basis3.2
%define jdkver		1_5_0_11
%define ooodir		%{_libdir}/ooo
%define libdbver	4.2
%if l10n
%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 pt-AO ru sk sl sv ta tr zh-TW zh-CN zu"
%else
%define ooolangs	"en-US"
%endif

%define firefox_plugin  libnpsoplugin.so

%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
%if %mdkversion >= 200800
%define	use_gcj		1
%else
%define	use_gcj		0
%endif
%endif
%{?_with_gcj: %global use_gcj 1}
%{?_without_gcj: %global use_gcj 0}

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

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

%define use_smp		1
%{?_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	1
%{?_with_systemdb: %global use_systemdb 1}
%{?_without_systemdb: %global use_systemdb 0}

%define use_systemboost 1
%{?_with_systemboost: %global use_systemboost 1}
%{?_without_systemboost: %global use_systemboost 0}

# (fix to avoid gcc 4.0.2 produces segfaulting javaldx bin which breaks
# building process)
%define optsafe	""
%define _requires_exceptions libjawt.so\\|libmyspell.so\\|libstlport_gcc.so\\|libmono.so\\|mono
%define _provides_exceptions libsndfile.so\\|libportaudio.so\\|libdb-4.2.so\\|libdb_java-4.2.so\\|libmyspell.so\\|libstlport_gcc.so\\|librdf.so.0\\|libraptor.so.1\\|libxmlsec1-nss.so.1\\|libxmlsec1.so.1

%define unopkg  %{_bindir}/unopkg

Summary:	Office suite (ooo-build)
Name:		%{name}
Epoch:		1
Version:	%{version}
Release:	%{release}
URL:		http://www.go-ooo.org
License:	LGPL
Group:		Office
Vendor:		Mandriva
Packager:	Rafael da Veiga Cabral <cabral@mandriva.com>
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
# Requres to all our packages
Requires:	%{name}-base = %{epoch}:%{version}
Requires:	%{name}-calc = %{epoch}:%{version}
Requires:	%{name}-draw = %{epoch}:%{version}
Requires:	%{name}-impress = %{epoch}:%{version}
Requires:	%{name}-math = %{epoch}:%{version}
Requires:	%{name}-writer = %{epoch}:%{version}
# Suggests:	%{name}-dtd-officedocument1.0 = %{epoch}:%{version}
Suggests: 	%{name}-pdfimport = %{epoch}:%{version}
Obsoletes:	OpenOffice.org
Obsoletes:	OpenOffice.org-libs
Obsoletes:	%{ooname}-go-ooo <= %{version}
%ifarch x86_64
Obsoletes:     openoffice.org64 <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo < 3.1-4
%endif
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
%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:	gperf
BuildRequires:	ImageMagick
BuildRequires:	db1-devel
%if %{use_systemdb}
BuildRequires:	%{mklibname db 4.2} >= 4.2.5-4mdk
BuildRequires:	libdbcxx >= 4.2.5-4mdk
BuildRequires:	db-devel >= 4.2.5-4mdk
# BuildRequires:	libdbjava >= 4.2.5-4mdk
BuildRequires:	db4.7
%else
BuildConflicts: libdbjava4.2
%endif
BuildRequires:	bsh
BuildRequires:	libcurl-devel
BuildRequires:	libgtk+2-devel
BuildRequires:	libsvg-devel
BuildRequires:	libgstreamer-plugins-base-devel
BuildRequires:	libxaw-devel
BuildRequires:	libldap-devel
BuildRequires:	libportaudio-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
# dev 300 (retirar essa require)
# BuildRequires:	mozilla-firefox-devel
BuildRequires:	nss-devel
BuildRequires:	nas-devel
BuildRequires:	neon-devel >= 0.27
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
BuildRequires:	x11-server-xvfb
BuildRequires:	xpm-devel
BuildRequires:	zlib-devel
BuildRequires:	zip
#
# java
%if %{use_gcj}
BuildRequires:	ant
%if %mdkversion >= 200810
BuildRequires:	java-rpmbuild
%else
BuildRequires:	java-1.7.0-icedtea-devel
%define java_home %{_jvmdir}/java-icedtea
%endif
#
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
BuildRequires:	hsqldb
BuildRequires:	libwpg-devel
BuildRequires:	libwps-devel
BuildRequires:	icu
BuildRequires:  %{mklibname icu}-devel
BuildRequires:	libmdbtools-devel
BuildRequires:  ant-apache-regexp
BuildRequires:  xulrunner-devel
BuildRequires:  %{mklibname vigra}-devel
BuildRequires:  hunspell-devel
#pdfimport extension
BuildRequires:  %{mklibname poppler}-devel
BuildRequires:  %{mklibname xtst6}-devel
BuildRequires:  desktop-file-utils
BuildRequires:  %{mklibname mesaglu1}-devel 
BuildRequires:  qt4-devel 
BuildRequires:  task-kde4-devel 

####################################################################
#
# Sources
#
####################################################################
Source0:	http://download.go-oo.org/DEV300/ooo-build-%{ooobuildver}.tar.%{oootarext}
Source5:	http://download.go-oo.org/DEV300/%{oootagver}-sdk.tar.%{oootarext}
Source71:	 http://download.go-oo.org/DEV300/%{oootagver}-ure.tar.%{oootarext}
Source72:	 http://download.go-oo.org/DEV300/%{oootagver}-base.tar.%{oootarext}
Source73:	 http://download.go-oo.org/DEV300/%{oootagver}-calc.tar.%{oootarext}
Source74:	 http://download.go-oo.org/DEV300/%{oootagver}-impress.tar.%{oootarext}
Source75:	 http://download.go-oo.org/DEV300/%{oootagver}-writer.tar.%{oootarext}
Source76:	 http://download.go-oo.org/DEV300/%{oootagver}-l10n.tar.%{oootarext}
Source77:	 http://download.go-oo.org/DEV300/%{oootagver}-artwork.tar.%{oootarext}
Source78:	 http://download.go-oo.org/DEV300/%{oootagver}-filters.tar.%{oootarext}
Source79:	 http://download.go-oo.org/DEV300/%{oootagver}-testing.tar.%{oootarext}
Source80:	 http://download.go-oo.org/DEV300/%{oootagver}-bootstrap.tar.%{oootarext}
Source81:	 http://download.go-oo.org/DEV300/%{oootagver}-libs-gui.tar.%{oootarext}
Source82:	 http://download.go-oo.org/DEV300/%{oootagver}-libs-core.tar.%{oootarext}
Source83:	 http://download.go-oo.org/DEV300/%{oootagver}-libs-extern.tar.%{oootarext}
Source84:	 http://download.go-oo.org/DEV300/%{oootagver}-libs-extern-sys.tar.%{oootarext}
Source85:	 http://download.go-oo.org/DEV300/%{oootagver}-components.tar.%{oootarext}
Source86:	 http://download.go-oo.org/DEV300/%{oootagver}-postprocess.tar.%{oootarext}
# Source90:	 http://download.go-oo.org/DEV310/scsolver.2008-10-30.tar.bz2
Source90:        autogen.sh
Source91:        http://download.go-oo.org/DEV300/ooo_oxygen_images-2009-06-17.tar.gz
Source104: 	 http://download.go-oo.org//%{oootagver}-extensions.tar.bz2
Source106:	 http://download.go-oo.org//%{oootagver}-help.tar.%{oootarext}
Source107:	 http://download.go-oo.org//%{oootagver}-extras.tar.%{oootarext}

# Source6:	http://download.go-oo.org/SRC680/oox.2008-02-29.tar.bz2
# Source7:	http://download.go-oo.org/SRC680/writerfilter.2008-02-29.tar.bz2
Source13:	http://download.go-oo.org/SRC680/extras-3.tar.bz2
Source17:	http://download.go-oo.org/SRC680/mdbtools-0.6pre1.tar.gz

Source20:	http://download.go-oo.org/OOO300/ooo-cli-prebuilt-3.1.1.tar.bz2
Source21:       http://download.go-oo.org/OOO300/cairo-1.4.10.tar.gz
Source22: 	http://download.go-oo.org/OOO300/libwpd-0.8.14.tar.gz
Source3: 	http://download.go-oo.org/OOO300/libwps-0.1.2.tar.gz
Source4:        http://download.go-oo.org/OOO300/libwpg-0.1.3.tar.gz

# Source23:	http://download.go-oo.org/xt/xt-20051206-src-only.zip
# Source24:	http://download.go-oo.org/SRC680/lp_solve_5.5.0.10_source.tar.gz
Source25:	http://download.go-oo.org/SRC680/biblio.tar.bz2
Source26:	http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll
# splash screens and about images
Source27:	openintro_mandriva.bmp
Source28:	openabout_mandriva.bmp

#dev300
Source89:	mdv-package-ooo
# Source92:	mdv-xdgmailasmailer.diff
Source102:	mdv-desktop-japanese.patch
Source30: 	icons.tar.bz2

# templates for kde "create new" context menu
Source31: kde-context-menu-templates.tar.bz2
Source60:	openoffice.org.csh
Source61:	openoffice.org.sh
Source108:      mdv-cli_ure-assemblykeyfile.diff 

# Patch19:	ooo-build-2.2.1-desktop_files.patch
# Patch21:	ooo-build-set-desktop-file-broffice-in-pt_BR.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.

%package base
Group: Office
Summary: OpenOffice.org office suite - database
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Heavy java deps
Requires: hsqldb
Suggests: %{name}-java-common = %{epoch}:%{version}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-base <= 1:3.1-4
%endif

%description base
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the database component for OpenOffice.org.

You can extend the functionality of OpenOffice.org Base by installing these
packages:

 * unixodbc: ODBC database support
 * libmyodbc | odbc-postgresql | libsqliteodbc | tdsodbc | mdbtools: ODBC
   drivers for:
   - MySQL
   - PostgreSQL
   - SQLite
   - MS SQL / Sybase SQL
   - *.mdb (JET / MS Access)
 * libmysql-java | libpg-java | libsapdbc-java: JDBC Drivers
   for:
   - MySQL
   - PostgreSQL
   - MaxDB

%package calc
Group: Office
Summary: OpenOffice.org office suite - spreadsheet
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-calc <= 1:3.1-4
%endif

%description calc
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the spreadsheet component for OpenOffice.org.

%package common
Group: Office
Summary: OpenOffice.org office suite architecture independent files
%if %mdkversion < 200810
# On upgrades, we can't split that way or we will loose functionality.
# Requires: %{name}-gnome
# Requires: %{name}-kde
Requires: %{name}-openclipart
Requires: %{name}-style-galaxy 
Requires: %{name}-style-crystal
Requires: %{name}-style-hicontrast
Requires: %{name}-style-industrial
Requires: %{name}-style-tango
%endif
# Require the architecture dependant stuff
Requires: %{name}-core = %{epoch}:%{version}-%{release}
# Require at least one style to be installed
Requires: %{name}-style = %{epoch}:%{version}-%{release}
# And suggest the galaxy one
# dev 300
# Suggests: %{name}-style-galaxy = %{epoch}:%{version}
# Also suggest java-common, as it may be used by some macros
Suggests: %{name}-java-common
Suggests: %{ooname}-help-en_US
# And then general requires for OOo follows
Requires: ghostscript
Requires: fonts-ttf-liberation
Requires: %{mklibname sane 1}
Requires: desktop-common-data >= 2008
# rpm will automatically grab the require for libsane1, but there are some
# configs needed at this package, so we must require it too.
Requires: sane-backends
# Due to %{_bindir}/paperconf
# Requires: paper-utils
#dev300
Requires: %{mklibname icu 44} 
Requires: %{mklibname hunspell 1.2_0}
Requires(post): desktop-file-utils update-alternatives
Requires(postun): desktop-file-utils update-alternatives

# Due to the split
Conflicts: %{name} <= 2.1.0
Conflicts: %{name}-devel <= 2.3.0.5-1mdv
Conflicts: %{name}-math <= 2.3.0.5-1mdv
Conflicts: %{name}-core <= 2.3.99.4-1mdv
Conflicts: %{name}-gnome < 3.0svn13581-2mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.1.0
Conflicts: %{name}64-devel <= 2.3.0.5-1mdv
Conflicts: %{name}64-math <= 2.3.0.5-1mdv
Conflicts: %{name}64-core <= 2.3.99.4-1mdv
Conflicts: %{name}64-gnome < 3.0svn13581-2mdv
Obsoletes: openoffice.org64-common <= 1:3.1-4
%endif
Conflicts: %{name}-common = 1:3.2-rc4.0

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

This package contains the architecture-independent files of OpenOffice.org.

%package core
Group: Office
Summary: OpenOffice.org office suite architecture dependent files
# Due to the split
Conflicts: %{name} <= 2.1.0
Conflicts: %{name}-base <= 2.3.0.5-1mdv
Conflicts: %{name}-common <= 2.3.1-1mdv
Conflicts: %{name}-devel <= 2.3.0.5-1mdv
Conflicts: %{name}-draw <= 2.3.0.5-1mdv
Conflicts: %{name}-impress <= 2.3.0.5-1mdv
#  Conflicts: %{name}-kde <= 2.3.0.5-1mdv
Conflicts: %{name}-writer <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.1.0
Conflicts: %{name}64-base <= 2.3.0.5-1mdv
Conflicts: %{name}64-common <= 2.3.1-1mdv
Conflicts: %{name}64-devel <= 2.3.0.5-1mdv
Conflicts: %{name}64-draw <= 2.3.0.5-1mdv
Conflicts: %{name}64-impress <= 2.3.0.5-1mdv
Conflicts: %{name}64-writer <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-core <= 1:3.1-4
%endif

%description core
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the architecture-dependent core files of OpenOffice.org.
See the openoffice.org package for more information.

%package devel
Group: Office
Summary: OpenOffice.org SDK - development files
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: openoffice.org64-devel <= 1:3.1-4
%endif

%description devel
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the files needed to build plugins/add-ons for
OpenOffice.org (includes, IDL files, build tools, ...). It also contains the
zipped source of the UNO Java libraries for use in IDEs like eclipse.

%package devel-doc
Group: Office
Summary: OpenOffice.org SDK - documentation
Requires: %{name}-devel = %{epoch}:%{version}
# Due to the split
Conflicts: %{name} <= 2.2.1
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: openoffice.org64-devel-doc <= 1:3.1-4
%endif

%description devel-doc
OpenOffice.org is a full-featured office productivity suite that provides
a near drop-in replacement for Microsoft(R) Office.

This package contains the documentation of the OpenOffice.org SDK:

 * C++/Java API reference
 * IDL reference
 * C++/Java/Basic examples

It also contains the gsicheck utility.

%package draw
Group: Office
Summary: OpenOffice.org office suite - drawing
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
Conflicts: %{name}-impress <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Conflicts: %{name}64-impress <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-draw <= 1:3.1-4
%endif

%description draw
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the drawing component for OpenOffice.org.

# package dtd-officedocument1.0
# Group: Office
# Summary: OfficeDocument 1.0 DTD (OpenOffice.org 1.x)
## due to the split
#Conflicts: %{name} <= 2.2.1
## no need to require -core or -common, see #37559

#%description dtd-officedocument1.0
#OpenOffice.org is a full-featured office productivity suite that provides a
#near drop-in replacement for Microsoft(R) Office.

# This package contains the Document Type Definition (DTD) of the OpenOffice.org
# 1.x(!) XML file format.

%package filter-binfilter
Group: Office
Summary: Legacy filters (e.g. StarOffice 5.2) for OpenOffice.org
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Obsoletes: %{name}-filter-mobiledev <= 2.3.0.5
Conflicts: %{name}-filter-mobiledev <= 2.3.0.5
Conflicts: %{name}-common <= 2.3.0.5-1mdv
Conflicts: %{name}-core <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Conflicts: %{name}64-core <= 2.3.0.5-1mdv
Obsoletes: %{name}64-filter-mobiledev <= 2.3.0.5
Obsoletes: openoffice.org64-filter-binfilter <= 1:3.1-4
%endif


%description filter-binfilter
OpenOffice.org is a full-featured office productivity suite that provides
 a near drop-in replacement for Microsoft(R) Office.

This package contains the "binfilters", legacy filters for
 - the old StarOffice 5.2 formats
 - StarWriter 1.0/2.0
 - StarWriter/DOS
 - *Writer* filters for
   + Excel
   + Lotus

%package gnome
Group: Office
Summary: GNOME Integration for OpenOffice.org (VFS, GConf)
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-core = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Obsoletes: %{name}-gtk <= 2.3.0.5
Conflicts: %{name}-gtk <= 2.3.0.5
Obsoletes: %{name}-qstart <= 2.3.0.5
Conflicts: %{name}-qstart <= 2.3.0.5
Obsoletes: %{name}-evolution <= 2.3.0.5
Conflicts: %{name}-evolution <= 2.3.0.5
# Suggests: %{name}-style-tango = %{epoch}:%{version}
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: %{name}64-gtk <= 2.3.0.5
Obsoletes: %{name}64-qstart <= 2.3.0.5
Obsoletes: %{name}64-evolution <= 2.3.0.5
Obsoletes: openoffice.org64-gnome <= 1:3.1-4
%endif

%description gnome
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the GNOME VFS support and a GConf backend.

You can extend the functionality of this by installing these packages:

 * openoffice.org-evolution: Evolution addressbook support
 * evolution

%package impress
Group: Office
Summary: OpenOffice.org office suite - presentation
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-draw = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-impress <= 1:3.1-4
%endif

%description impress
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the presentation component for OpenOffice.org.

%package kde4
Group: Office
Summary: KDE4 Integration for OpenOffice.org (Widgets, Dialogs, Addressbook)
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Suggests: %{name}-style-oxygen = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: openoffice.org64-kde <= 1:3.1-4
%endif
Conflicts: %{name}-core <= %{epoch}:%{version}-beta1.0mdv

%description kde4
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the KDE4 plugin for drawing OOo's widgets with KDE4/Qt4.5 and 
a KDEish File Picker when running under KDE4.
 
%package java-common
Group: Office
Summary: OpenOffice.org office suite Java support arch. independent files
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: java
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-java-common <= 1:3.1-4
%endif

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

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

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

%package math
Group: Office
Summary: OpenOffice.org office suite - equation editor
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-math <= 1:3.1-4
%endif

%description math
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the equation editor component for OpenOffice.org.

%package openclipart
Group: Office
Summary: OpenOffice.org Open Clipart data
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: clipart-openclipart
# Due to the split
Conflicts: %{name} <= 2.2.1
Obsoletes: %{name}-galleries <= 2.2.1
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: %{name}64-galleries <= 2.2.1
Obsoletes: openoffice.org64-openclipart <= 1:3.1-4
%endif

%description openclipart
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the OpenOffice.org Open Clipart data, including images
and sounds.

%package pyuno
Group: Office
Summary: Python bindings for UNO library
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Conflicts: %{name}-common <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-pyuno <= 1:3.1-4
%endif

%description pyuno
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the Python bindings for the UNO library.

#%package qa-api-tests
#Group: Office
#Summary: OpenOffice.org API Test Data
#Requires: %{name}-common = %{epoch}:%{version}-%{release}
## Due to the split
#Conflicts: %{name} <= 2.2.1
#
#%description qa-api-tests
#OpenOffice.org is a full-featured office productivity suite that provides a
#near drop-in replacement for Microsoft(R) Office.
#
#This package contains the test data for the OpenOffice.org Java and Basic APIs.

%package testtool
Group: Office
Summary: OpenOffice.org Automatic Test Programs
Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-testtool <= 1:3.1-4
%endif

%description testtool
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the test tools to automatically test the OpenOffice.org
programs.

%package style-galaxy
Group: Office
Summary: Default symbol style for OpenOffice.org
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Provides: %{name}-style = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Obsoletes: %{name}-style-andromeda = %{epoch}:%{version}
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: openoffice.org64-style-galaxy <= 1:3.1-4
%endif

%description style-galaxy
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the "Galaxy" symbol style from Sun, normally used on
MS Windows (tm) and when not using GNOME or KDE. Needs to be manually enabled
in the OpenOffice.org option menu.

%package style-crystal
Group: Office
Summary: Crystal symbol style for OpenOffice.org
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Provides: %{name}-style = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: openoffice.org64-style-crystal <= 1:3.1-4
%endif

%description style-crystal
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the "crystal" symbol style, default style for KDE.
%package style-hicontrast
Group: Office
Summary: Hicontrast symbol style for OpenOffice.org
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Provides: %{name}-style = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: openoffice.org64-style-hicontrast <= 1:3.1-4
%endif

%description style-hicontrast
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the "hicontrast" symbol style, needs to be manually
enabled in the OpenOffice.org option menu.

%package style-industrial
Group: Office
Summary: Industrial symbol style for OpenOffice.org
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Provides: %{name}-style = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: openoffice.org64-style-industrial <= 1:3.1-4
%endif

%description style-industrial
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the "industrial" symbol style.

%package style-tango
Group: Office
Summary: Tango symbol style for OpenOffice.org
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Provides: %{name}-style = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} = 2.2.1
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Obsoletes: openoffice.org64-style-tango <= 1:3.1-4
%endif

%description style-tango
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the "tango" symbol style, default style for GTK/Gnome.

%package style-oxygen
Group: Office
Summary: Oxygen symbol style for OpenOffice.org
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Provides: %{name}-style = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} = 2.2.1

%description style-oxygen
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the "oxygen" symbol style, default style for KDE4.

%package writer
Group: Office
Summary: OpenOffice.org office suite - word processor
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
Conflicts: %{name}-core <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-writer <= 1:3.1-4
%endif

%description writer
OpenOffice.org is a full-featured office productivity suite that provides a
near drop-in replacement for Microsoft(R) Office.

This package contains the wordprocessor component for OpenOffice.org.

# dev300: without mono
%package mono
Summary:	Mono UNO Bridge for OpenOffice.org
Group:		Office
Requires:	%{ooname} = %{epoch}:%{version}
Obsoletes:	%{ooname}-go-ooo-mono <= %{version}
%ifarch x86_64
Obsoletes: openoffice.org64-mono <= 1:3.1-4
%endif

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

%package pdfimport
Group: Office
Summary: OpenOffice.org office suite - PDF Import extension
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-draw = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
Conflicts: %{name}-core <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Conflicts: %{name}64-core <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-pdfimport <= 1:3.1-4
%endif
Conflicts: %{name}-pdfimport <= 1:3.2-rc4.0

%description pdfimport
PDF import extension enables PDF documments importing and basic editing of PDF
documments by using OpenOffice.org-draw application.

%package presenter-screen
Group: Office
Summary: OpenOffice.org office suite - Presenter Screen extension
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-impress = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
Conflicts: %{name}-core <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Conflicts: %{name}64-core <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-presenter-screen <= 1:3.1-4
%endif
Conflicts: %{name}-presenter-screen <= 1:3.2-rc4.0

%description presenter-screen
Presenter Screen extension helps users to see upcoming slides and slide notes
of presentations inside a second view not visible for the spectators.

# %package report-builder
# Group: Office
# Summary: OpenOffice.org office suite - Report Builder extension
# Requires: %{name}-core = %{epoch}:%{version}-%{release}
# Requires: %{name}-common = %{epoch}:%{version}-%{release}
# Requires: %{name}-base = %{epoch}:%{version}
# Due to the split
# Conflicts: %{name} <= 2.2.1
# Conflicts: %{name}-common <= 2.3.0.5-1mdv
# Conflicts: %{name}-core <= 2.3.0.5-1mdv
# %ifarch x86_64
# Conflicts: %{name}64 <= 2.2.1
# Conflicts: %{name}64-common <= 2.3.0.5-1mdv
# Conflicts: %{name}64-core <= 2.3.0.5-1mdv
# Obsoletes: openoffice.org64-report-builder < 1:3.1-4
# %endif

# %description report-builder
# By using %{name}-base the Report Builder extesion enables creating of smart and 
# professional looking reports. Further the reports can be exported to PDF or 
# OpenDocuments formats.

%package wiki-publisher
Group: Office
Summary: OpenOffice.org office suite - Wiki Publisher extension
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-writer = %{epoch}:%{version}-%{release}
Requires: jakarta-commons-codec, jakarta-commons-httpclient
Requires: jakarta-commons-lang, jakarta-commons-logging
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
Conflicts: %{name}-core <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Conflicts: %{name}64-core <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-wiki-publisher <= 1:3.1-4
%endif
Conflicts: %{name}-wiki-publisher <= 1:3.2-rc4.0

%description wiki-publisher
With Wiki Publisher extesion is possible by using %{name}-writer to create 
wiki page articles on MediaWiki servers without having to know the syntax of 
MediaWiki markup language. This extension also enables publishing of the
wiki pages.

%package presentation-minimizer
Group: Office
Summary: OpenOffice.org office suite - Presentation Minimizer extension
Requires: %{name}-core = %{epoch}:%{version}-%{release}
Requires: %{name}-common = %{epoch}:%{version}-%{release}
Requires: %{name}-impress = %{epoch}:%{version}-%{release}
# Due to the split
Conflicts: %{name} <= 2.2.1
Conflicts: %{name}-common <= 2.3.0.5-1mdv
Conflicts: %{name}-core <= 2.3.0.5-1mdv
%ifarch x86_64
Conflicts: %{name}64 <= 2.2.1
Conflicts: %{name}64-common <= 2.3.0.5-1mdv
Conflicts: %{name}64-core <= 2.3.0.5-1mdv
Obsoletes: openoffice.org64-presentation-minimizer <= 1:3.1-4
%endif
Conflicts: %{name}-presentation-minimizer <= 1:3.2-rc4.0

%description presentation-minimizer
With Presentation Minimizer extesion is possible to reduce the file size of the 
presentation by compressing images and removing data not needed in a automatizated
way.

Note: The Presentation Minimizer also works on Microsoft PowerPoint presentations. 

%if %l10n
%package l10n-it
Summary:	Italian language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-it
Requires:	fonts-ttf-dejavu
Requires:	urw-fonts
Requires:	myspell-it
Requires:	myspell-hyph-it
Obsoletes:	%{ooname}-go-ooo-l10n-it <= %{version}
Suggests:	%{ooname}-help-it
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-it <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-it <= 3.1-4
%endif

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

%package l10n-af
Summary:	Afrikaans language support for OpenOffice.org
Group:		Office
Provides:	%{ooname}-l10n = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-af
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-af <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-af < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-ar
Requires:	fonts-ttf-arabic
Obsoletes:	OpenOffice.org-l10n-ar
Provides:	OpenOffice.org-l10n-ar
Obsoletes:	%{ooname}-go-ooo-l10n-ar <= %{version}
Suggests:	%{ooname}-help-ar
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-ar <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-ar < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-bg
Obsoletes:	OpenOffice.org-l10n-bg
Provides:	OpenOffice.org-l10n-bg
Obsoletes:	%{ooname}-go-ooo-l10n-bg <= %{version}
Suggests:	%{ooname}-help-bg
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-bg <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-bg < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-br
Obsoletes:	%{ooname}-go-ooo-l10n-br <= %{version}
Suggests:	%{ooname}-help-br
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-br <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-br < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-bs
Obsoletes:	%{ooname}-go-ooo-l10n-bs <= %{version}
Suggests:	%{ooname}-help-bs
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-bs <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-bs < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-ca
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-ca <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-ca < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-cs
Requires:	urw-fonts
Requires:	myspell-cs
Requires:	myspell-hyph-cs
Obsoletes:	%{ooname}-go-ooo-l10n-cs <= %{version}
Obsoletes:	OpenOffice.org-l10n-cs
Provides:	OpenOffice.org-l10n-cs
Suggests:	%{ooname}-help-cs
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-cs <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-cs < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-cy
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-cy <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-cy < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-da
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-da <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-da < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-de
Requires:	fonts-ttf-dejavu
Requires:	urw-fonts
Requires:	myspell-de
Requires:	myspell-hyph-de
Obsoletes:	%{ooname}-go-ooo-l10n-de <= %{version}
Obsoletes:	OpenOffice.org-l10n-de
Provides:	OpenOffice.org-l10n-de
Suggests:	%{ooname}-help-de
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-de <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-de < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-el
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-el <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-el < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-en
Requires:	urw-fonts
Requires:	myspell-en_GB
Requires:	myspell-hyph-en
Obsoletes:	%{ooname}-go-ooo-l10n-en_GB <= %{version}
Suggests:	%{ooname}-help-en_GB
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-en_GB <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-en_GB < 3.1-4
%endif

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

 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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-es
Requires:	fonts-ttf-dejavu
Requires:	urw-fonts
Requires:	myspell-es
Requires:	myspell-hyph-es
Obsoletes:	%{ooname}-go-ooo-l10n-es <= %{version}
Obsoletes:	OpenOffice.org-l10n-es
Provides:	OpenOffice.org-l10n-es
Suggests:	%{ooname}-help-es
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-es <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-es < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-et
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-et <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-et < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-eu
Requires:	fonts-ttf-dejavu
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-eu
Provides:	OpenOffice.org-l10n-eu
Obsoletes:	%{ooname}-go-ooo-l10n-eu <= %{version}
Suggests:	%{ooname}-help-eu
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-eu <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-eu < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-fi
Requires:	fonts-ttf-dejavu
Requires:	urw-fonts
Requires:	%{ooname}-voikko
Obsoletes:	OpenOffice.org-l10n-fi
Provides:	OpenOffice.org-l10n-fi
Obsoletes:	%{ooname}-go-ooo-l10n-fi <= %{version}
# dev300 checking if its really necessary
# Obsoletes:	%{ooname}-voikko
Suggests:	%{ooname}-help-fi
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-fi <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-fi < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-fr
Requires:	fonts-ttf-dejavu
Requires:	urw-fonts
Requires:	myspell-fr
Requires:	myspell-hyph-fr
Obsoletes:	OpenOffice.org-l10n-fr
Provides:	OpenOffice.org-l10n-fr
Obsoletes:	%{ooname}-go-ooo-l10n-fr <= %{version}
Suggests:	%{ooname}-help-fr
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-fr <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-fr < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-he
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-he
Provides:	OpenOffice.org-l10n-he
Obsoletes:	%{ooname}-go-ooo-l10n-he <= %{version}
Suggests:	%{ooname}-help-he
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-he <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-he < 3.1-4
%endif


%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-hi
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-hi
Provides:	OpenOffice.org-l10n-hi
Obsoletes:	%{ooname}-go-ooo-l10n-hi <= %{version}
Suggests:	%{ooname}-help-hi
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-hi <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-hi < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-hu
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-hu <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-hu < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-ja
Requires:	fonts-ttf-japanese >= 0.20020727-1mdk
Obsoletes:	OpenOffice.org-l10n-ja
Provides:	OpenOffice.org-l10n-ja
Obsoletes:	%{ooname}-go-ooo-l10n-ja <= %{version}
Suggests:	%{ooname}-help-ja
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-ja <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-ja < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-ko
Requires:	fonts-ttf-korean >= 2.1
Obsoletes:	OpenOffice.org-l10n-ko
Provides:	OpenOffice.org-l10n-ko
Obsoletes:	%{ooname}-go-ooo-l10n-ko <= %{version}
Suggests:	%{ooname}-help-ko
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-ko <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-ko < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-mk
Obsoletes:	%{ooname}-go-ooo-l10n-mk <= %{version}
Suggests:	%{ooname}-help-mk
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-mk < 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-mk <= 3.1-4
%endif


%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-no
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-nb
Provides:	OpenOffice.org-l10n-nb
Obsoletes:	%{ooname}-go-ooo-l10n-nb <= %{version}
Suggests:	%{ooname}-help-nb
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-nb <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-nb < 3.1-4
%endif


%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-nl
Requires:	fonts-ttf-dejavu
Requires:	urw-fonts
Requires:	myspell-nl
Requires:	myspell-hyph-nl
Obsoletes:	OpenOffice.org-l10n-nl
Provides:	OpenOffice.org-l10n-nl
Obsoletes:	%{ooname}-go-ooo-l10n-nl <= %{version}
Suggests:	%{ooname}-help-nl
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-nl <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-nl < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-no
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-nn
Provides:	OpenOffice.org-l10n-nn
Obsoletes:	%{ooname}-go-ooo-l10n-nn <= %{version}
Suggests:	%{ooname}-help-nn
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-nn <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-nn < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-pl
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-pl <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-pl < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-pt
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-pt <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-pt < 3.1-4
%endif


%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 = %{epoch}:%{version}-%{release}
# Due to alternatives setup, we must have -release here. (BrOffice)
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires(post): update-alternatives %{ooname}-common
Requires(postun): update-alternatives %{ooname}-common
Requires:	locales-pt
Requires:	urw-fonts
Requires:	myspell-pt_BR
Obsoletes:	OpenOffice.org-l10n_pt_BR
Provides:	OpenOffice.org-l10n_pt_BR
Obsoletes:	%{ooname}-go-ooo-l10n-pt_BR <= %{version}
Suggests:	%{ooname}-help-pt_BR
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-pt_BR <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-pt_BR < 3.1-4
%endif

%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-pt_AO
Summary:        Portuguese Angola language support for OpenOffice.org
Group:          Office
Provides:       %{ooname}-l10n = %{epoch}:%{version}-%{release}
# Due to alternatives setup, we must have -release here. (BrOffice)
Requires:       %{ooname}-common = %{epoch}:%{version}-%{release}
Requires(post): update-alternatives %{ooname}-common
Requires(postun): update-alternatives %{ooname}-common
Requires:       locales-pt
Requires:       urw-fonts
# Requires:       myspell-pt_BR
# Obsoletes:      OpenOffice.org-l10n_pt_AO
Provides:       OpenOffice.org-l10n_pt_AO
# Obsoletes:      %{ooname}-go-ooo-l10n-pt_BR <= %{version}
Suggests:       %{ooname}-help-pt_AO

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

This package contains the localization of OpenOffice.org in Portuguese
Angola.
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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-ru
Requires:	urw-fonts >= 2.0-6mdk
Requires:	myspell-ru
Requires:	myspell-hyph-ru
Obsoletes:	OpenOffice.org-l10n-ru
Provides:	OpenOffice.org-l10n-ru
Obsoletes:	%{ooname}-go-ooo-l10n-ru <= %{version}
Suggests:	%{ooname}-help-ru
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-ru <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-ru < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-sk
Requires:	urw-fonts
Requires:	myspell-sk
Requires:	myspell-hyph-sk
Obsoletes:	OpenOffice.org-l10n-sk
Provides:	OpenOffice.org-l10n-sk
Obsoletes:	%{ooname}-go-ooo-l10n-sk <= %{version}
Suggests:	%{ooname}-help-sk
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-sk <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-sk < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-sl
Requires:	urw-fonts
Requires:	myspell-sl, myspell-hyph-sl
Obsoletes:	OpenOffice.org-l10n-sl
Provides:	OpenOffice.org-l10n-sl
Obsoletes:	%{ooname}-go-ooo-l10n-sl <= %{version}
Suggests:	%{ooname}-help-sl
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-sl <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-sl < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-sv
Requires:	fonts-ttf-dejavu
Requires:	urw-fonts
Requires:	myspell-sv
Requires:	myspell-hyph-sv
Obsoletes:	OpenOffice.org-l10n-sv
Provides:	OpenOffice.org-l10n-sv
Obsoletes:	%{ooname}-go-ooo-l10n-sv <= %{version}
Suggests:	%{ooname}-help-sv
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-sv <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-sv < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-ta
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-ta
Provides:	OpenOffice.org-l10n-ta
Obsoletes:	%{ooname}-go-ooo-l10n-ta <= %{version}
Suggests:	%{ooname}-help-ta
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-ta <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-ta < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-tr
Requires:	urw-fonts
Obsoletes:	OpenOffice.org-l10n-tr
Provides:	OpenOffice.org-l10n-tr
Obsoletes:	%{ooname}-go-ooo-l10n-tr <= %{version}
Suggests:	%{ooname}-help-tr
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-tr <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-tr < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-zh
Requires:	fonts-ttf-chinese
Obsoletes:	OpenOffice.org-l10n-zh_CN
Provides:	OpenOffice.org-l10n-zh_CN
Obsoletes:	%{ooname}-go-ooo-l10n-zh_CN <= %{version}
Suggests:	%{ooname}-help-zh_CN
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-zh_CN <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-zh_CN < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
Requires:	locales-zh
Requires:	fonts-ttf-chinese
Obsoletes:	OpenOffice.org-l10n-zh_TW
Provides:	OpenOffice.org-l10n-zh_TW
Obsoletes:	%{ooname}-go-ooo-l10n-zh_TW <= %{version}
Suggests:	%{ooname}-help-zh_TW
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-zh_TW <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-zh_TW < 3.1-4
%endif

%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 = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
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}
Suggests:	%{ooname}-help-zu
%ifarch x86_64
Obsoletes:     openoffice.org64-l10n-zu <= 1:3.1-4
Obsoletes:     openoffice.org64-go-ooo-l10n-zu < 3.1-4
%endif

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

%package help-it
Summary:	Italian help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-it = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-it <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Italian.

%package help-af
Summary:	Afrikaans help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-af = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-af <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Afrikaans.


%package help-ar
Summary:	Arabic help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-ar = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-ar <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Arabic.


%package help-bg
Summary:	Bulgarian help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-bg = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-bg <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Bulgarian.


%package help-br
Summary:	Breton help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-br = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-br <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Breton.


%package help-bs
Summary:	Bosnian help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-bs = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-br <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Bosnian.


%package help-ca
Summary:	Catalan help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-ca = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-ca <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Catalan.


%package help-cs
Summary:	Czech help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-cs = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-cs
Provides:	OpenOffice.org-help-cs
%ifarch x86_64
Obsoletes:     openoffice.org64-help-cs <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Czech.


%package help-cy
Summary:	Welsh help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-cy = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-cy <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Welsh.


%package help-da
Summary:	Danish help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-da = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-da <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Danish.


%package help-de
Summary:	German help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-de = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-de
Provides:	OpenOffice.org-help-de
%ifarch x86_64
Obsoletes:     openoffice.org64-help-de <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in German.


%package help-el
Summary:	Greek help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-el = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-el <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Greek.


%package help-en_GB
Summary:	British help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-en_GB = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-en_GB <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in British.


%package help-en_US
Summary:	American English help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-common = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-en_US <= 1:3.1-4
%endif

%description help-en_US
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localized help files of OpenOffice.org in American English.


%package help-es
Summary:	Spanish help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-es = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-es
Provides:	OpenOffice.org-help-es
%ifarch x86_64
Obsoletes:     openoffice.org64-help-es <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Spanish.


%package help-et
Summary:	Estonian help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-et = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-et <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Estonian.


%package help-eu
Summary:	Basque help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-eu = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-eu
Provides:	OpenOffice.org-help-eu
%ifarch x86_64
Obsoletes:     openoffice.org64-help-eu <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Basque.


%package help-fi
Summary:	Finnish help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-fi = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-fi
Provides:	OpenOffice.org-help-fi
%ifarch x86_64
Obsoletes:     openoffice.org64-help-fi <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Finnish.


%package help-fr
Summary:	French help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-fr = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-fr
Provides:	OpenOffice.org-help-fr
%ifarch x86_64
Obsoletes:     openoffice.org64-help-fr <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in French.


%package help-he
Summary:	Hebrew help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-he = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-he <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Hebrew.


%package help-hi
Summary:	Hindi help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-hi = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-hi <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Hindi.


%package help-hu
Summary:	Hungarian help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-hu = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-hu <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Hungarian.


%package help-ja
Summary:	Japanese help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-ja = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-ja
Provides:	OpenOffice.org-help-ja
%ifarch x86_64
Obsoletes:     openoffice.org64-help-ja <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Japanese.


%package help-ko
Summary:	Korean help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-ko = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-ko
Provides:	OpenOffice.org-help-ko
%ifarch x86_64
Obsoletes:     openoffice.org64-help-ko <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Korean.


%package help-mk
Summary:	Macedonian help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-mk = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-mk <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Macedonian.


%package help-nb
Summary:	Norwegian Bokmal help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-nb = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-nb <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Norwegian
Bokmal.


%package help-nl
Summary:	Dutch help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-nl = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-nl
Provides:	OpenOffice.org-help-nl
%ifarch x86_64
Obsoletes:     openoffice.org64-help-nl <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Dutch.


%package help-nn
Summary:	Norwegian Nynorsk help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-nn = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-nn <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Norwegian
Nynorsk.

%package help-pl
Summary:	Polish help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-pl = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-pl <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Polish.


%package help-pt
Summary:	Portuguese help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-pt = %{epoch}:%{version}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-pt <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Portuguese.


%package help-pt_BR
Summary:	Portuguese Brazilian help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-pt_BR = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-pt_BR
Provides:	OpenOffice.org-help-pt_BR
%ifarch x86_64
Obsoletes:     openoffice.org64-help-pt_BR <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Portuguese
Brazilian.


%package help-pt_AO
Summary:	Portuguese Angola help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-pt_AO = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-pt_AO
Provides:	OpenOffice.org-help-pt_AO

%description help-pt_AO
OpenOffice.org is an Open Source, community-developed, office suite.

This package contains the localized help files of OpenOffice.org in Portuguese
Angola.


%package help-ru
Summary:        Russian help for OpenOffice.org
Group:          Office
Provides:       %{ooname}-help = %{epoch}:%{version}-%{release}
Requires:       %{ooname}-l10n-ru = %{epoch}:%{version}-%{release}
Obsoletes:      OpenOffice.org-help-ru
Provides:       OpenOffice.org-help-ru
%ifarch x86_64
Obsoletes:     openoffice.org64-help-ru <= 1:3.1-4
%endif


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

This package contains the localized help files of OpenOffice.org in Russian.


%package help-sk
Summary:	Slovak help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-sk = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-sk
Provides:	OpenOffice.org-help-sk
%ifarch x86_64
Obsoletes:     openoffice.org64-help-sk <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Slovak.


%package help-sl
Summary:	Slovenian help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-sl = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-sl
Provides:	OpenOffice.org-help-sl
%ifarch x86_64
Obsoletes:     openoffice.org64-help-sl <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Slovenian.


%package help-sv
Summary:	Swedish help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-sv = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-sv
Provides:	OpenOffice.org-help-sv
%ifarch x86_64
Obsoletes:     openoffice.org64-help-sv <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Swedish.


%package help-ta
Summary:	Tamil help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-ta = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-ta <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Tamil.


%package help-tr
Summary:	Turkish help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-tr = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-tr
Provides:	OpenOffice.org-help-tr
%ifarch x86_64
Obsoletes:     openoffice.org64-help-tr <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Turkish.


%package help-zh_CN
Summary:	Chinese Simplified help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-zh_CN = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-zh_CN
Provides:	OpenOffice.org-help-zh_CN
%ifarch x86_64
Obsoletes:     openoffice.org64-help-zh_CN <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Chinese
Simplified.


%package help-zh_TW
Summary:	Chinese Traditional help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-zh_TW = %{epoch}:%{version}-%{release}
Obsoletes:	OpenOffice.org-help-zh_TW
Provides:	OpenOffice.org-help-zh_TW
%ifarch x86_64
Obsoletes:     openoffice.org64-help-zh_TW <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Chinese
Traditional.


%package help-zu
Summary:	Zulu help for OpenOffice.org
Group:		Office
Provides:	%{ooname}-help = %{epoch}:%{version}-%{release}
Requires:	%{ooname}-l10n-zu = %{epoch}:%{version}-%{release}
%ifarch x86_64
Obsoletes:     openoffice.org64-help-zu <= 1:3.1-4
%endif

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

This package contains the localized help files of OpenOffice.org in Zulu.
%endif

%prep
%setup -q -n ooo-build-%{ooobuildver}

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

# %if ! %unstable
# %patch19 -p1 -b .desktop_files
# %endif
# %patch20 -p1
# %patch21 -p0

# We want odk
#sed -i /disable-odk/d distro-configs/Mandriva*

%build

# Workaround for bug http://qa.mandriva.com/show_bug.cgi?id=27771
# if [ -z $QTDIR ]; then
# . /etc/profile.d/60qt4.sh
# fi
export QT4DIR=%{_libdir}/qt4
%ifarch X86_64 
	export QT4INC=/usr/lib/qt4/include
%else
	export QT4INC=%{_libdir}/qt4/include
%endif 
export QT4LIB=%{_libdir}/qt4/lib

export KDE4DIR=%{_libdir}/kde4
%ifarch X86_64 
	export KDE4INC=/usr/lib/kde4/include
%else
	export KDE4INC=%{_libdir}/kde4/include
%endif 
export KDE4LIB=%{_libdir}/kde4/lib


# Force KDE3 support instead of KDE4 (dev 300)
#%ifarch x86_64 
#export KDEDIR=/opt/kde
#%endif




%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:$PATH
PATH=$PATH:/usr/sbin
export PATH
%endif


mkdir -p src/clone

ln -sf %{SOURCE3} src/
ln -sf %{SOURCE4} src/
ln -sf %{SOURCE5} src/
# ln -sf %{SOURCE6} src/
# ln -sf %{SOURCE7} src/
ln -sf %{SOURCE13} src/
ln -sf %{SOURCE17} src/
%if %{use_mono}
ln -sf %{SOURCE20} src/
%endif

ln -sf %{SOURCE21} src/
ln -sf %{SOURCE22} src/

# ooo-build requests this even with mono off
ln -sf %{SOURCE26} src/
#ln -sf %{SOURCE23} src/
#ln -sf %{SOURCE24} src/
ln -sf %{SOURCE25} src/

# splash screen
ln -sf %{SOURCE27} src/
ln -sf %{SOURCE28} src/

# icons
ln -sf %{SOURCE30} src/

# templates for kde context menu
ln -sf %{SOURCE31} src/

ln -sf %{SOURCE71} src/
ln -sf %{SOURCE72} src/
ln -sf %{SOURCE73} src/
ln -sf %{SOURCE74} src/
ln -sf %{SOURCE75} src/
ln -sf %{SOURCE76} src/
ln -sf %{SOURCE77} src/
ln -sf %{SOURCE78} src/
ln -sf %{SOURCE79} src/
ln -sf %{SOURCE80} src/
ln -sf %{SOURCE81} src/
ln -sf %{SOURCE82} src/
ln -sf %{SOURCE83} src/
ln -sf %{SOURCE84} src/
ln -sf %{SOURCE85} src/
ln -sf %{SOURCE86} src/
#ln -sf %{SOURCE90} src/
ln -sf %{SOURCE91} src/
ln -sf %{SOURCE104} src/
ln -sf %{SOURCE106} src/
ln -sf %{SOURCE107} src/

#cp -f %{SOURCE90} %{_builddir}/ooo-build-%{ooobuildver}/

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

%if %{use_ccache}
export CCACHE_DIR=%{ccachedir}
%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

echo "Configure start at: "`date` >> ooobuildtime.log 
# --with-jdk-home=%java_home \

CFLAGS="%{optflags} %{optsafe} -g0 -fno-omit-frame-pointer -fno-strict-aliasing" \
CXXFLAGS="%{optflags} %{optsafe} -g0 -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-qadevooo \
	--enable-lockdown \
	--enable-opengl \
	--enable-odk \
	--enable-split-app-modules \
  	--enable-split-opt-features \
	--enable-binfilter \
	--with-system-mozilla=xulrunner \
	--with-system-hsqldb \
	--with-system-beanshell \
	--with-system-icu \
	--with-system-xrender-headers \
	--with-system-libwps \
	--with-system-libwpd \
	--with-system-libwpg \
        --with-system-jpeg \
        --with-system-hunspell \
	--with-system-zlib \
	--with-system-openssl \
	--with-system-expat \
	--with-system-libxml \
	--with-system-python \
	--with-system-saxon \
	--with-system-xslt \
	--with-system-curl \
	--with-system-vigra \
	--with-system-neon \
	--with-system-agg \
	--disable-kde \
	--enable-kde4 \
	--with-git=no \
	--with-intro-bitmaps="%{SOURCE27}" \
	--with-about-bitmaps="%{SOURCE28}" \
%if %use_gcj
	--with-java-target-version=1.5 \
%else
	--with-jdk-home=$JAVA_HOME \
%endif
%if %{use_systemdb}
	--with-system-db \
%endif
%if %{use_systemboost}
	--with-system-boost \
%endif
	--with-lang=%{ooolangs} \
        --with-installed-ooo-dirname=ooo \
        --with-docdir=%{_datadir}/doc/packages/ooo \
	--with-system-sane-header \
	--with-system-cairo \
	--without-myspell-dicts \
	--with-system-dicts \
	--with-external-dict-dir=%{_datadir}/dict/ooo \
        --with-external-hyph-dir=%{_datadir}/dict/ooo \
        --with-external-thes-dir=%{_datadir}/dict/ooo \
	--with-system-poppler \
        --enable-pdfimport \
        --enable-minimizer \
        --enable-presenter-console \
        --enable-wiki-publisher \
%if %{use_openclipart}
        --with-openclipart=%{_datadir}/images/openclipart \
%endif
%if %{use_mono}
# dev300
#	--enable-mono \
#	--with-mono-gac-root=%{_libdir} \
%else
#dev300: (--disable-mono command not foud)
#	--disable-mono \
%endif
%if %{use_smp}
#dev300: (--with-num-cpus command not found  )
#	--with-num-cpus=${RPM_BUILD_NCPUS:-1}
%endif
%if %{use_ccache} && !%{use_icecream}
	--with-gcc-speedup=ccache \
%else
 %if !%{use_ccache} && %{use_icecream}
	--with-gcc-speedup=icecream \
	--with-max-jobs=10 \
	--with-icecream-bindir=%{_libdir}/icecc/bin
 %else
  %if %{use_ccache} && %{use_icecream}
	--with-gcc-speedup=ccache,icecream \
	--with-max-jobs=10 \
	--with-icecream-bindir=%{_libdir}/icecc/bin
  %endif
 %endif
%endif


#dev300 (ooo-build fixes by now).
#This fix needs to be submmited to ooo-build
cp -f %{SOURCE89} %{_builddir}/ooo-build-%{ooobuildver}/bin/package-ooo

echo "Configure end at: "`date` >> ooobuildtime.log 
echo "Make start at: "`date` >> ooobuildtime.log 

# some configs  to improve build process 
# http://wiki.services.openoffice.org/wiki/Building_OpenOffice.org
# needs to check if it does any effect 
export nodep=TRUE
export NO_HIDS=TRUE 
export MAXPROCESS=4 

# %make 
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}"

echo "Make end at: "`date` >> ooobuildtime.log 
echo "Install start at: "`date` >> ooobuildtime.log 

%install
# sbin due to icu stuff there
PATH=$PATH:/usr/sbin

# clear lists in case of short-circuiting:
rm -f build/*_list.txt

rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}/opt
# FIXME: there are template/<locale>wizard/letter already
#rm -rf %{buildroot}%{ooodir}/share/template/wizard/letter/

# use the dicts from myspell-<lang>
# rm -rf %{buildroot}%{ooodir}/share/dict/ooo
# ln -s %{_datadir}/dict/ooo %{buildroot}%{ooodir}/share/dict

# 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

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

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

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

# 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 '{}' \;

# Anssi patch
# remove /usr/bin/soffice (made with update-alternatives)
# rm -f %{buildroot}%{_bindir}/soffice

# Fix sdk listing
sort -u build/sdk_list.txt > build/sdk_list_fixed.txt

# Anssi patch
# Versionify bash_completion (ooo-wrapper.sh)
# 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}
# fi

# Versionify bash_completion (ooffice.sh)
# 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}
# fi

# dev 300 2.3 ???
# %if %{use_mono}
# Versionify mono-ooo.pc
# mv %{buildroot}%{_libdir}/pkgconfig/mono-ooo-%{mdvsuffix}.pc \
#   %{buildroot}%{_libdir}/pkgconfig/mono-ooo%{mdvsuffix}-2.3.pc
# %endif

# Install versioned profile.d/ files (#33475)
# Profiles for set PYTHONPATH variables (Python Integration)
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
sed 's@%%{ooodir}@%{ooodir}@g' \
	%{_sourcedir}/openoffice.org.csh > \
	%{buildroot}%{_sysconfdir}/profile.d/openoffice.org.csh
sed 's@%%{ooodir}@%{ooodir}@g' \
	%{_sourcedir}/openoffice.org.sh > \
	%{buildroot}%{_sysconfdir}/profile.d/openoffice.org.sh
# Anssi 
# Install a random UNO extension into BUILDROOT and remove it, so that unopkg
# creates the cache directories and files that can then be ghostified.
# Simple "list" would create everything but files inside
# "com.sun.star.comp.deployment.component.PackageRegistryBackend".
# Note that this has to be run before below bro calls below that rename needed
# files and thus disable unopkg for the rest of install stage.
# First make sure there is no actual data pre-existing in this directory,
# as that will be lost due to the ghostification:
[ $(find %{buildroot}%{ooodir}/share/uno_packages/cache | wc -l) -eq 1 ]
%{buildroot}%{ooodir}/program/unopkg add --shared %{_builddir}/ooo-build-%{ooobuildver}/build/%{oootagver}/solver/320/unxlng*/bin/pdfimport/pdfimport.oxt
%{buildroot}%{ooodir}/program/unopkg remove --shared pdfimport.oxt
# clean cache
%{buildroot}%{ooodir}/program/unopkg list --shared
# there should be more files now:
[ $(find %{buildroot}%{ooodir}/share/uno_packages/cache | wc -l) -ge 5 ]
for path in $(find %{buildroot}%{ooodir}/share/uno_packages/cache/); do
       if [ -d $path ]; then
               echo "%%dir ${path#%{buildroot}}" >> build/common_list.txt
       else
               echo "%%ghost ${path#%{buildroot}}" >> build/common_list.txt
       fi
done

# BrOffice.org Support (install)
function bro() {
   exp="$1"
   f="$2"
   mv "%{buildroot}$f" "%{buildroot}$f.ooo"
   echo -n > "%{buildroot}$f"
  %if %l10n
   sed "$exp" "%{buildroot}$f.ooo" > "%{buildroot}$f.bro"
  %endif
  sed -i "s@$f\$@$f.ooo@" %{_builddir}/ooo-build-%{ooobuildver}/build/*.txt
}

## Change suite name in the program itself
bro "s/OpenO/BrO/;s/openo/bro/" %{ooodir}/program/bootstraprc
bro "s/en-US/pt-BR/;s/openo/bro/" %{ooodir}/program/versionrc
bro "s/OpenO/BrO/" %{ooodir}/%basis/share/registry/data/org/openoffice/Setup.xcu

# Change the suite name in .desktop files for pt_BR locale
sed -i '/pt_BR/{s/OpenO/BrO/}' %{buildroot}%{_datadir}/applications/*.desktop

# Place symlinks br<app> -> oo<app>
 %if %l10n
 cd %{buildroot}%{_bindir}
 # fix me wrong brffice symb link name 
 for i in oo*; do
	ln -s $i ${i/oo/br}
 done
 cd -
 %endif
# End of BrOffice support (install)

# Change progress bar colors
sed -i '/^ProgressBarColor/d;/^ProgressFrameColor/d' \
	%{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressBarColor=68,135,223' >> %{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressFrameColor=112,171,229' >> %{buildroot}%{ooodir}/program/sofficerc

#dev300 fix position and size
sed -i '/^ProgressPosition/d;/^ProgressSize/d' \
	%{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressPosition=10,307' >> %{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressSize=377,9' >> %{buildroot}%{ooodir}/program/sofficerc

# new icons
tar xjf %{SOURCE30} -C %{buildroot}%{_datadir}

# remove icons we dont have these sizes yet
rm -rf %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/*
rm -rf %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/*

# remove scalables icons since we dont have yet
rm -rf %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/*

# XXX disable the menu entries for these
# besides not being real apps, we don't have new-style icons for them
# see #26311#c33
for f in %{buildroot}%{_datadir}/applications/template*desktop \
	%{buildroot}%{_datadir}/applications/web*desktop; do
	echo 'NoDisplay=true' >> $f
done

# Fixes japanese translations on desktop files
patch -p0 -d %{buildroot} < %{SOURCE102}

# templates for kde "create new" context menu
tar xjf %{SOURCE31} -C %{buildroot}%{_datadir}

# copy extensions 
install -d -m755 %{buildroot}%{ooodir}/extensions
cp %{_builddir}/ooo-build-%{ooobuildver}/build/%{oootagver}/solver/320/unxlng*/bin/pdfimport/pdfimport.oxt %{buildroot}%{ooodir}/extensions/
cp %{_builddir}/ooo-build-%{ooobuildver}/build/%{oootagver}/solver/320/unxlng*/bin/presenter/presenter-screen.oxt %{buildroot}%{ooodir}/extensions/
cp %{_builddir}/ooo-build-%{ooobuildver}/build/%{oootagver}/solver/320/unxlng*/bin/swext/wiki-publisher.oxt %{buildroot}%{ooodir}/extensions/
cp %{_builddir}/ooo-build-%{ooobuildver}/build/%{oootagver}/solver/320/unxlng*/bin/minimizer/sun-presentation-minimizer.oxt %{buildroot}%{ooodir}/extensions/

#fixes #56439
sed -i 's/^Icon=.*$/Icon=ooo-calc/' %{buildroot}%{_datadir}/templates/ooo-spreadsheet.desktop
sed -i 's/^Icon=.*$/Icon=ooo-writer/' %{buildroot}%{_datadir}/templates/ooo-text.desktop
sed -i 's/^Icon=.*$/Icon=ooo-impress/' %{buildroot}%{_datadir}/templates/ooo-presentation.desktop
sed -i 's/^Icon=.*$/Icon=ooo-draw/' %{buildroot}%{_datadir}/templates/ooo-drawing.desktop

# Remove version on names so better position on menu 
# and to give consistency under old links #43922, #57700
for dskt in base calc draw impress math template web writer ooo-extension-manager startcenter; do 
     mv %{buildroot}%{_datadir}/applications/${dskt}%version.desktop %{buildroot}%{_datadir}/applications/${dskt}.desktop
done;

# Get rid of the version at the name of unopkg script #57700
mv %{buildroot}%{_bindir}/unopkg%version %{buildroot}%{_bindir}/unopkg
for m in %{buildroot}%{_mandir}/man1/unopkg%version.1*; do
      mv $m `echo $m | sed 's/unopkg%version/unopkg/'`
done; 

%clean
rm -rf %{buildroot}

%post common
# <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 || :
# We changed the master name here.
/usr/sbin/update-alternatives --remove ooffice %{_bindir}/ooffice2.3 || :

#dev300: including basis3.0 before program
# alternatives names follows oobr_<filename> mark, making it explicit.
 /usr/sbin/update-alternatives \
	--install %{ooodir}/program/bootstraprc oobr_bootstraprc \
		%{ooodir}/program/bootstraprc.ooo 1 \
	--slave %{ooodir}/program/versionrc oobr_versionrc \
		%{ooodir}/program/versionrc.ooo \
	--slave %{ooodir}/%basis/share/registry/data/org/openoffice/Setup.xcu oobr_Setup.xcu \
		%{ooodir}/%basis/share/registry/data/org/openoffice/Setup.xcu.ooo
# Always do this configuration, as the switch should be transparent.
/usr/sbin/update-alternatives --auto oobr_bootstraprc
# End of BrOffice support %post

%{update_desktop_database}
%update_icon_cache gnome
%update_icon_cache hicolor

# Remove ooobuildtime.log misplaced file
if [ -f /ooobuildtime.log ]; then
      mkdir -p /tmp/ooo.tmp.mdv.rc2/
      mv /ooobuildtime.log /tmp/ooo.tmp.mdv.rc2/
      rm -r /tmp/ooo.tmp.mdv.rc2/
fi

# Firefox plugin
if [ $1 -gt 1 ]
then
  update-alternatives --remove %{firefox_plugin} \
  %{ooodir}/program/libnpsoplugin.so
fi
update-alternatives \
  --install %{_libdir}/mozilla/plugins/libnpsoplugin.so %{firefox_plugin} \
  %{ooodir}/program/libnpsoplugin.so 1

%postun common

# BrOffice support %postun common
 if [ ! -e "%{ooodir}/program/bootstraprc.ooo" ]; then
       /usr/sbin/update-alternatives --remove oobr_bootstraprc %{ooodir}/program/bootstraprc.ooo
 fi
# End of BrOffice support %postun common
%{clean_desktop_database}
%clean_icon_cache gnome
%clean_icon_cache hicolor

# Firefox plugin
if [ $1 -eq 0 ]
then
  update-alternatives --remove %{firefox_plugin} \
  %{ooodir}/program/libnpsoplugin.so
fi

%if %l10n
%post l10n-pt_BR
# BrOffice support %post l10n-pt_BR
# alternatives names follows oobr_<filename> mark, making it explicit.
 /usr/sbin/update-alternatives \
	--install %{ooodir}/program/bootstraprc oobr_bootstraprc \
		%{ooodir}/program/bootstraprc.bro 2 \
	--slave %{ooodir}/program/versionrc oobr_versionrc \
		%{ooodir}/program/versionrc.bro \
	--slave %{ooodir}/%basis/share/registry/data/org/openoffice/Setup.xcu oobr_Setup.xcu \
		%{ooodir}/%basis/share/registry/data/org/openoffice/Setup.xcu.bro
# Always do this configuration, as the switch should be transparent.
/usr/sbin/update-alternatives --auto oobr_bootstraprc
# End of BrOffice support %post l10n-pt_BR

# %{update_desktop_database}

%postun l10n-pt_BR
# BrOffice support %postun l10n-pt_BR
 if [ ! -e "%{ooodir}/program/bootstraprc.bro" ]; then
        /usr/sbin/update-alternatives --remove oobr_bootstraprc %{ooodir}/program/bootstraprc.bro
 fi
# End of BrOffice support %postun l10n-pt_BR

%{clean_desktop_database}
%endif

%post base
%{update_desktop_database}
%postun base
%{clean_desktop_database}
%post calc
%{update_desktop_database}
%postun calc
%{clean_desktop_database}
%post draw
%{update_desktop_database}
%postun draw
%{clean_desktop_database}
%post impress
%{update_desktop_database}
%postun impress
%{clean_desktop_database}
%post math
%{update_desktop_database}
%postun math
%{clean_desktop_database}
%post writer
%{update_desktop_database}
%postun writer
%{clean_desktop_database}

%post pdfimport
# upgrade 
if [ $1 -ge 2 ];then
	# removes old installed pdfimport extension 
	idpdfimport=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.star.PDFImport-linux.*\)/\1/p');
	if [ "z$idpdfimport" != "z" ]; then
		%unopkg remove --shared $idpdfimport 2> /dev/null
		%unopkg list --shared &> /dev/null
	fi
fi

#install new pdfimport version
%unopkg add --shared %{ooodir}/extensions/pdfimport.oxt 2> /dev/null
%unopkg list --shared &> /dev/null 

#uninstall
%preun pdfimport 
if [ $1 -eq 0 ];then
	idpdfimport=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.star.PDFImport-linux.*\)/\1/p');
	if [ "z$idpdfimport" != "z" ]; then
		%unopkg remove --shared $idpdfimport 2> /dev/null
		#clean footprint cache
		%unopkg list --shared &> /dev/null
	fi
fi

%post presenter-screen
# upgrade 
if [ $1 -ge 2 ];then
	idextension=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.PresenterScreen-linux.*\)/\1/p');
	if [ "z$idextension" != "z" ]; then
		%unopkg remove --shared $idextension 2> /dev/null
		%unopkg list --shared &> /dev/null
	fi
fi
#install 
%unopkg add --shared %{ooodir}/extensions/presenter-screen.oxt 2> /dev/null
%unopkg list --shared &> /dev/null 


%preun presenter-screen  
if [ $1 -eq 0 ];then
	idextension=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.PresenterScreen-linux.*\)/\1/p');
	if [ "z$idextension" != "z" ]; then
		%unopkg remove --shared $idextension 2> /dev/null
		%unopkg list --shared &> /dev/null
	fi
fi

# %post report-builder
# upgrade 
# if [ $1 -ge 1 ];then
#	idextension=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.reportdesigner\)/\1/p');
#	if [ "z$idextension" != "z" ]; then
#		%unopkg remove --shared $idextension 2> /dev/null
#		%unopkg list --shared &> /dev/null
#	fi
# fi
#install 
# %unopkg add --shared %{ooodir}/sun-report-builder.oxt 2> /dev/null
# %unopkg list --shared &> /dev/null 

#uninstall
# %preun report-builder
# if [ $1 -eq 0 ];then
#	idextension=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.reportdesigner\)/\1/p');
#	if [ "z$idextension" != "z" ]; then
#		%unopkg remove --shared $idextension 2> /dev/null
#		%unopkg list --shared &> /dev/null
#	fi
# fi

%post wiki-publisher
# upgrade 
if [ $1 -ge 2 ];then
	idextension=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.wiki-publisher\)/\1/p');
	if [ "z$idextension" != "z" ]; then
		%unopkg remove --shared $idextension 2> /dev/null
		%unopkg list --shared &> /dev/null
	fi
fi	
#install 
%unopkg add --shared %{ooodir}/extensions/wiki-publisher.oxt 2> /dev/null
%unopkg list --shared &> /dev/null 

%preun wiki-publisher
if [ $1 -eq 0 ];then
	idextension=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.wiki-publisher\)/\1/p');
	if [ "z$idextension" != "z" ]; then
		%unopkg remove --shared $idextension 2> /dev/null
		%unopkg list --shared &> /dev/null
	fi
fi

%post presentation-minimizer
# upgrade 
if [ $1 -ge 2 ];then
	idextension=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.star.PresentationMinimizer-linux.*\)/\1/p');
	if [ "z$idextension" != "z" ]; then
		%unopkg remove --shared $idextension 2> /dev/null
		%unopkg list --shared &> /dev/null
	fi
fi
#install 
%unopkg add --shared %{ooodir}/extensions/sun-presentation-minimizer.oxt 2> /dev/null
%unopkg list --shared &> /dev/null 

%preun presentation-minimizer
if [ $1 -eq 0 ];then
	idextension=$(%unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.star.PresentationMinimizer-linux.*\)/\1/p');
	if [ "z$idpdfimport" != "z" ]; then
		%unopkg remove --shared $idextension 2> /dev/null
		%unopkg list --shared &> /dev/null
	fi
fi

%files

%files base -f build/base_list.txt
%{_bindir}/oobase%version
%{_mandir}/man1/oobase%version.1*
%{_datadir}/applications/base.desktop

%files calc -f build/calc_list.txt
%{_bindir}/oocalc%version
%{_datadir}/templates/ooo-spreadsheet.desktop
%{_datadir}/templates/.source/ooo-spreadsheet.ods
%{_mandir}/man1/oocalc%version.1*
%{_datadir}/applications/calc.desktop

%files common -f build/common_list.txt 
%{_sysconfdir}/bash_completion.d/ooffice%version.sh
%{_sysconfdir}/profile.d/openoffice.org.*
%{_bindir}/ooconfig%version
%{_bindir}/ooffice%version
%{_bindir}/oofromtemplate%version
%{_bindir}/ootool%version
%{_bindir}/soffice%version
#ooo3.2
%{ooodir}/%basis/program/OGLTrans.uno.so
%{ooodir}/%basis/share/config/soffice.cfg/simpress/transitions-ogl.xml
%{ooodir}/%basis/share/registry/modules/org/openoffice/Office/Impress/Impress-ogltrans.xcu

%{_datadir}/applications/template*.desktop
%{_datadir}/applications/startcenter.desktop

%{_datadir}/icons/hicolor/*/apps/ooo-base%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-calc%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-draw%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-gulls%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-impress%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-math%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-printeradmin%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-template%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-web%version.*
%{_datadir}/icons/hicolor/*/apps/ooo-writer%version.*

%{_datadir}/icons/hicolor/*/apps/ooo-base.*
%{_datadir}/icons/hicolor/*/apps/ooo-calc.*
%{_datadir}/icons/hicolor/*/apps/ooo-draw.*
%{_datadir}/icons/hicolor/*/apps/ooo-impress.*
%{_datadir}/icons/hicolor/*/apps/ooo-math.*
%{_datadir}/icons/hicolor/*/apps/ooo-printeradmin.*
%{_datadir}/icons/hicolor/*/apps/ooo-writer.*

%{_datadir}/icons/hicolor/*/apps/ooo-main.*

# new icons
# %{_datadir}/icons/hicolor/*/apps/openofficeorg3-*.png
# moved to mandriva-kde-config 
#%{_datadir}/icons/hicolor/*/mimetypes/openofficeorg3-*.png
# %{_datadir}/icons/gnome/*/apps/openofficeorg3-*.png
# %{_datadir}/icons/gnome/*/mimetypes/openofficeorg3-*.png
%{_datadir}/pixmaps/ooo-base%version.png
%{_datadir}/pixmaps/ooo-calc%version.png
%{_datadir}/pixmaps/ooo-draw%version.png
%{_datadir}/pixmaps/ooo-gulls%version.png
%{_datadir}/pixmaps/ooo-impress%version.png
%{_datadir}/pixmaps/ooo-math%version.png
%{_datadir}/pixmaps/ooo-template%version.png
%{_datadir}/pixmaps/ooo-web%version.png
%{_datadir}/pixmaps/ooo-writer%version.png
%{_mandir}/man1/ooffice%version.1*
%{_mandir}/man1/oofromtemplate%version.1*
%{_mandir}/man1/openoffice%version.1*
%{_datadir}/mime
# XXX Due to alternatives upgrade from 2.3.0.5-1mdv to -2mdv
# (.desktop files are not included because they are in their
# respective subpackages already (#38412))

#dev300 
# %ghost %{ooodir}/share/uno_packages
%ghost %{ooodir}/program/bootstraprc
%ghost %{ooodir}/program/versionrc
%ghost %{ooodir}/%basis/share/registry/data/org/openoffice/Setup.xcu

%{_bindir}/unopkg
%{_mandir}/man1/unopkg.1*
%{_datadir}/applications/ooo-extension-manager*.desktop

# Anssi 
%dir %{ooodir}/extensions

%files core -f build/core_list.txt

%files devel -f build/sdk_list_fixed.txt

%files devel-doc -f build/sdk_doc_list.txt

%files draw -f build/draw_list.txt
%{_bindir}/oodraw%version
%{_datadir}/applications/draw.desktop

%{_datadir}/templates/ooo-drawing.desktop
%{_datadir}/templates/.source/ooo-drawing.odg
%{_mandir}/man1/oodraw%version.1*

# dev300: 
# %files dtd-officedocument1.0 -f build/dtd_list.txt

# dev300: 
%files filter-binfilter -f build/filter-binfilter_list.txt

%files gnome -f build/gnome_list.txt

%files impress -f build/impress_list.txt
%{_bindir}/ooimpress%version
%{_datadir}/applications/impress.desktop
%{_datadir}/templates/ooo-presentation.desktop
%{_datadir}/templates/.source/ooo-presentation.odp
%{_mandir}/man1/ooimpress%version.1*

%files java-common -f build/java_common_list.txt

%files kde4 -f build/kde_list.txt

%files math -f build/math_list.txt
%{_bindir}/oomath%version
%{_datadir}/applications/math.desktop
%{_mandir}/man1/oomath%version.1*

%files openclipart -f build/gallery_list.txt

%files pyuno -f build/pyuno_list.txt

#%files qa-api-tests
#%{ooodir}/qadevOOo

%files testtool -f build/testtool_list.txt

%files style-galaxy
%{ooodir}/%basis/share/config/images.zip

%files style-crystal
%{ooodir}/%basis/share/config/images_crystal.zip

%files style-hicontrast
%{ooodir}/%basis/share/config/images_hicontrast.zip

%files style-industrial
%{ooodir}/%basis/share/config/images_industrial.zip

%files style-tango
%{ooodir}/%basis/share/config/images_tango.zip

%files style-oxygen
%{ooodir}/%basis/share/config/images_oxygen.zip

%files writer -f build/writer_list.txt
%{_bindir}/ooweb%version
%{_bindir}/oowriter%version
%{_datadir}/applications/writer.desktop
%{_datadir}/applications/web.desktop
%{_datadir}/templates/ooo-text.desktop
%{_datadir}/templates/.source/ooo-text.odt
%{_mandir}/man1/ooweb%version.1*
%{_mandir}/man1/oowriter%version.1*

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

%files pdfimport
%defattr(-,root,root,-)
%{ooodir}/extensions/pdfimport.oxt

%files presenter-screen
%defattr(-,root,root,-)
%{ooodir}/extensions/presenter-screen.oxt

# %files report-builder
# %defattr(-,root,root,-)
# %{ooodir}/sun-report-builder.oxt

%files wiki-publisher
%defattr(-,root,root,-)
%{ooodir}/extensions/wiki-publisher.oxt

%files presentation-minimizer
%defattr(-,root,root,-)
%{ooodir}/extensions/sun-presentation-minimizer.oxt

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

%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)
# BrOffice support
# XXX Yes, by this way there will be broken symlinks if you don't make a full suite
# installation.
%{_bindir}/br*
%{ooodir}/program/bootstraprc.bro
%{ooodir}/program/versionrc.bro
%{ooodir}/%basis/share/registry/data/org/openoffice/Setup.xcu.bro
%ghost %{ooodir}/program/bootstraprc
%ghost %{ooodir}/program/versionrc
%ghost %{ooodir}/%basis/share/registry/data/org/openoffice/Setup.xcu

%files l10n-pt_AO -f build/lang_pt_AO_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)

%files help-it -f build/help_it_list.txt
%defattr(-,root,root)

%files help-af -f build/help_af_list.txt
%defattr(-,root,root)

%files help-ar -f build/help_ar_list.txt
%defattr(-,root,root)

%files help-bg -f build/help_bg_list.txt
%defattr(-,root,root)

%files help-br -f build/help_br_list.txt
%defattr(-,root,root)

%files help-bs -f build/help_bs_list.txt
%defattr(-,root,root)

%files help-ca -f build/help_ca_list.txt
%defattr(-,root,root)

%files help-cs -f build/help_cs_list.txt
%defattr(-,root,root)

%files help-cy -f build/help_cy_list.txt
%defattr(-,root,root)

%files help-da -f build/help_da_list.txt
%defattr(-,root,root)

%files help-de -f build/help_de_list.txt
%defattr(-,root,root)

%files help-el -f build/help_el_list.txt
%defattr(-,root,root)

%files help-en_GB -f build/help_en_GB_list.txt
%defattr(-,root,root)

%files help-es -f build/help_es_list.txt
%defattr(-,root,root)

%files help-et -f build/help_et_list.txt
%defattr(-,root,root)

%files help-eu -f build/help_eu_list.txt
%defattr(-,root,root)

%files help-fi -f build/help_fi_list.txt
%defattr(-,root,root)

%files help-fr -f build/help_fr_list.txt
%defattr(-,root,root)

%files help-he -f build/help_he_list.txt
%defattr(-,root,root)

%files help-hi -f build/help_hi_list.txt
%defattr(-,root,root)

%files help-hu -f build/help_hu_list.txt
%defattr(-,root,root)

%files help-ja -f build/help_ja_list.txt
%defattr(-,root,root)

%files help-ko -f build/help_ko_list.txt
%defattr(-,root,root)

%files help-mk -f build/help_mk_list.txt
%defattr(-,root,root)

%files help-nb -f build/help_nb_list.txt
%defattr(-,root,root)

%files help-nl -f build/help_nl_list.txt
%defattr(-,root,root)

%files help-nn -f build/help_nn_list.txt
%defattr(-,root,root)

%files help-pl -f build/help_pl_list.txt
%defattr(-,root,root)

%files help-pt -f build/help_pt_list.txt
%defattr(-,root,root)

%files help-pt_BR -f build/help_pt_BR_list.txt
%defattr(-,root,root)

%files help-pt_AO -f build/help_pt_AO_list.txt
%defattr(-,root,root)

%files help-ru -f build/help_ru_list.txt
%defattr(-,root,root)

%files help-sk -f build/help_sk_list.txt
%defattr(-,root,root)

%files help-sl -f build/help_sl_list.txt
%defattr(-,root,root)

%files help-sv -f build/help_sv_list.txt
%defattr(-,root,root)

%files help-ta -f build/help_ta_list.txt
%defattr(-,root,root)

%files help-tr -f build/help_tr_list.txt
%defattr(-,root,root)

%files help-zh_CN -f build/help_zh_CN_list.txt
%defattr(-,root,root)

%files help-zh_TW -f build/help_zh_TW_list.txt
%defattr(-,root,root)

%files help-zu -f build/help_zu_list.txt
%defattr(-,root,root)

%files help-en_US -f build/help_en_US_list.txt
%defattr(-,root,root)
%endif

%changelog
* Tue Apr 27 2010 Rafael Cabral <cabral@mandriva.com> 0:3.2-4mdv2010.1
- rebuild due to the stripping problem on the rpm-mandriva-setup

* Mon Apr 19 2010 Rafael Cabral <cabral@mandriva.com> 0:3.2-3mdv2010.1
- ooo-build 3.2 official release (3.2.0.9 bug fix)

* Fri Mar 26 2010 Rafael Cabral <cabral@mandriva.com> 0:3.2-2mdv2010.1
- ooo-build 3.2 official release (3.2.0.8 bug fix)
- build against icu44 and change requires to icu44 

* Fri Mar 12 2010 Rafael Cabral <cabral@mandriva.com> 0:3.2-1mdv2010.1
- ooo-build 3.2 official release (3.2.0.7 bug fix)
- fix presenter-screen extension typo in the upgrading logic

* Wed Mar 03 2010 Rafael Cabral <cabral@mandriva.com> 0:3.2-rc5.1mdv2010.1
- back deskto-file-install callings to properly configure desktop files
  with X-MandrivaLinux-CrossDesktop

* Wed Feb 23 2010 Rafael Cabral <cabral@mandriva.com> 0:3.2-rc5.0mdv2010.1
- ooo-build 3.2 rc5 official release
- add common and core requires on gnome package
- add more strict requires on all packages by requiring the release (#57650) 
- typo at the update-alternative command in the l10-pt_BR post section
- rename unopkg3.2 to unopkg as extension packages scriptlets 
  are not using unopkg_version executable (#57700)
- get rid of the ooo version on desktop files (#57700) 
- get rid of the deskto-file-install callings as desktop files are
  normally generated during the build process (experimental) 
- some spec clean up

* Wed Feb 10 2010 Rafael Cabral <cabral@mandriva.com> 0:3.2-rc4.0mdv2010.1
- ooo-build 3.2 rc4 official release
- activates the Firefox plugin
- fixes #56439 (lack of icons in the dolphin context menu)
- fixes #56947 (iaoraqt crash)
- possible fix #57370 (crash when saving on ms formats)
- removes images_oxygen.zip file from common since it is in the 
  style-oxygen package
- rediff mdv-desktop-japanese.patch
- add:
	--with-system-zlib
	--with-system-openssl
	--with-system-expat
	--with-system-libxml
	--with-system-python
	--with-system-saxon
	--with-system-xslt
	--with-system-curl
	--with-system-vigra
	--with-system-neon
	--with-system-agg
- remove (old/obsolete): 
	--with-system-xml-apis 
	--with-system-xerces 
	--with-system-xalan 
	--with-system-xt 
	--with-system-xmlsec
	--with-system-libsvg
	--with-system-sablot
	--with-system-gcc
	--with-system-glitz
	--with-system-nas
	--enable-java
	--enable-gstreamer
	--with-firefox
	--without-system-mspack
	--disable-kde
	--enable-kde4
	--without-git
        --without-binsuffix 
	--with-dynamic-xinerama
	--enable-access
	--enable-split-app-modules
	--enable-split-opt-features
	--with-db-jar

* Tue Dec 15 2009 Rafael Cabral <cabral@mandriva.com> 0:3.2-beta3.0mdv2010.1
- ooo-build 3.2 beta3 official release

* Fri Nov 27 2009 Rafael Cabral <cabral@mandriva.com> 0:3.2-beta1.1mdv2010.1
- removes the kde dependency from the core package #55791 
- fixes the crash whenever using file->open on kde4 #52880

* Tue Nov 10 2009 Rafael Cabral <cabral@mandriva.com> 0:3.2-beta1.0mdv2010.1
- ooo-build 3.2 beta1 official release
- remove ooo-build patch help-support-mdv.diff
- remove ooo-build patch mandriva-archflags.diff
- remove ooo-build patch msfontextract.diff
- disable mdv-fix-xdg-work-directory.diff
- disable ooo-build patch sw-header-inclusion.diff
- QT4DIR instead of QTDIR (building requires)
- add support to Portuguese Angola 
- fix ISO4217 currency id code for Portuguese Angola (i18npool) 

* Thu Oct 20 2009 Rafael Cabral <cabral@mandriva.com> 0:3.1.1-2mdv2010.0
- add fashion menu icons
- remove paper-utils require #45804

* Thu Oct 15 2009 Rafael Cabral <cabral@mandriva.com> 0:3.1.1-1mdv2010.0
- new openoffice.org 3.1.1 upstream plus ooo-build 3.1.1.2
- should solve release criticals bugs #54334 and #54592

* Thu Sep 24 2009 Rafael Cabral <cabral@mandriva.com> 0:3.1-5mdv2010.0
- fix icu40 regression

* Mon Sep 21 2009 Rafael Cabral <cabral@mandriva.com> 0:3.1-4mdv2010.0
- remove kernel-source build require
- remove libdb-java build require
- add mesaglu1 build require
- uses libjpeg from system, actually libjpeg7, remove exception require
  fixes #53763
- uses hunspell from system
- fix Setup.xcu.ooo update-alternatives
- add anssi's patches: drop-64bit-naming.patch and 
  move-to-ooo-and-drop-alternatives.patch to renaming openoffice.org64 
  packages to openoffice.org (it is no a requirement maintaining different 
  names to both archs anymore). Further his last patch changes 
  ooo-mdvsuffix dir to ooo - keeps easy maintenance 

* Fri Aug 14 2009 Rafael Cabral <cabral@mandriva.com> 0:3.1-3mdv2010.0
- fix kde dependence bug 

* Wed Aug 12 2009 Rafael Cabral <cabral@mandriva.com> 0:3.1-2mdv2010.0
- change icu40 require to icu42 since it was built against the last one
  (due icu40 requires uneeded space on One product)

* Fri Jun 26 2009 Rafael Cabral <cabral@mandriva.com> 0:3.1-1mdv2010.0
- ooo-build 3.1 official release

* Wed May 06 2009 Rafael Cabral <cabral@mandriva.com> 0:3.1-0.beta6.1mdv2010.0
- first 3.1 (beta6) ooo-buid upstream 
- remains using old 3.0.1 package-ooo  
- disable mdv-exceptcxx-include-string.diff (build fix uneeded anymore)
- change all references to bases3.0 to bases3.1 dir via mdvsuffix

* Fri Mar 20 2009 Rafael Cabral <cabral@mandriva.com> 0:3.0.1-5mdv2009.1
- fix crash on certain table configurations from Office documents #48629
  backported sw-table-crash-fix-i99564.diff

* Tue Mar 17 2009 Rafael Cabral <cabral@mandriva.com> 0:3.0.1-4mdv2009.1
- fix file conflicts in openoffice.org-common and openoffice.org-help-en_US

* Thu Mar 12 2009 Rafael Cabral <cabral@mandriva.com> 0:3.0.1-3mdv2009.1
- Upstream maintenance update (ooo-build version 3.0.1.3)
- Patches mdv-xdgmailasmailer.diff, mdv-sysui-disableslack.diff were 
  integrated in this upstream release
- Changed to new Mandriva splash and about screens
- Added desktop-utils and libxtst6-devel as build requires

* Tue Mar 03 2009 Rafael Cabral <cabral@mandriva.com> 0:3.0.1-2mdv2009.1
- Revision 347802
- split out pdf import extension from common to a new package: 
  openoffice.org-pdfimport
- new enabled extension packages: 
  openoffice.org-wiki-publisher
  openoffice.org-presenter-screen
  openoffice.org-presentation-minimizer
- remove kde-libs from build requires
- change qt3-devel to qt4-devel in build requires since the build
  scream about that even we are not using qt things yet.
- rebuild to cooker 

* Fri Feb 05 2009 Rafael Cabral <cabral@mandriva.com> 0:3.0.1-1mdv2009.1
- Revision 337782
- New upstream version 3.0.1 (official stable release)

* Mon Jan 12 2009 Rafael Cabral <cabral@mandriva.com> 0:3.0.1-0.rc1.1mdv2009.0
- Revision 332829
- New upstream version 3.0.1 (ooo-build call this release as rc1)
- Changed to use libicu40 from the system (--with-system-icu)
- Rebuild for Python 2.6
- Fix build (lots of rintf aruments clean up) ooo-build patch buildfix-fmtargs.diff

* Fri Nov 20 2008 Rafael Cabral <cabral@mandriva.com> 0:3.0-1mdv2009.0
- Revision 332829 
- ooo-build OpenOffice.org 3.0 based on stable upstream
- Fix OOo Greek crash on start up - #44821
- PyUno loadComponentFromUrl comes out - regression #45445 
- It doesn't get clipart-openclipart - regression #45196.
- Suggests help-en_US which is default l10n language - releated #44809
- As suggested xdg-mail as default mailer - #43917 
- Remove misplaced ooobuildtime.log
- PDF-import extension must to work even OOo will be update

* Fri Oct 03 2008 Frederic Crozat <fcrozat@mandriva.com> 0:3.0-0.rc2.2mdv2009.0
- Add epoch to fix upgrade from Mdv 2009 RC2 and allow gnome subpackage to be installed

* Mon Sep 30 2008 Rafael da Veiga Cabral <cabral@mandriva.com> 3.0-0.rc2.1mdv2009.0
+ Revision 290159  
+ Using new ooo-build-3.0 svn branch based on OpenOffice.org rc2
+ Remove svn revision from package name
  - Ooo-build has migrated it 3.0 sources to a new stable branch and that svn 
    revision info doesn't make sense anymore for us and further naming package wasn't 
    following Mandriva standards as well. 
+ Path of Python Uno integration fixed
+ Calc fixes
   - Formulas was not being saved - #44032 
   - Formulas onto spreadsheets of old OOo versions was not being showed - #44010
+ Improving build
 -  exporting nodep, NO_HIDS, MAXPROCESS
+ Spec clean ups

* Mon Sep 22 2008 Rafael da Veiga Cabral <cabral@mandriva.com> 3.0svn13581-3mdv2009.0
+ Revision 287960
- New menu icons - #43937
- New mime types icons  
- Rename desktop icons file name - #43922
- Calc hangs on sorting (reversed sc-sort-cell-note-position.diff) - #43932
- Added conflicts on common package with gnome why libvclplug_gtkli.so 
has been moved - #43920

* Mon Sep 01 2008 Rafael da Veiga Cabral <cabral@mandriva.com> 3.0svn13581-2mdv2009.0
+ Revision 271602
- Change Andromeda theme name to Galaxy - #42801
- Vendor/Packager filled out
- Split misplaced help files out of l10n packages
- Split misplaced en_US help files out of common to a new package
- Java-common changed to base Suggests
- None writing aids fixed (using system hunspell) - #42885 
- Drop printer-properties-disable patch - #40834
- Moved librdf.so.0 to provides exception (ksnapshot) - #42927
- New splash and about banners
- Added PDF Import extension in common package (installed by default) - #42885
- New ooo-build 3.0.0 version (revision 13581)
- For a better look libvclplug_gtkli.so has been moved to common package
  We've got gtk layouts as default
- libraptor.so.1 to provides exceptions (ksnapshot/amarok) - #42927
- Linking with neon 0.27 - #43368 
- Calc hangs whenever adding a new sheet from Insert menu - #43405
- Impress and Draw hang by using zoom from menu View - #43384
- Weak dependency of Mono (mono and libmono0 is now as requires exception) - #43484
- New user directory changed to .openoffice.org3 (it'd have solve #42800, #41228)
- Default toolbar icon size was changed to small as default to a better look
- libxmlsec1-nss.so.1 and libxmlsec1.so.1 to provides exceptions

* Mon Aug 04 2008 Rafael da Veiga Cabral <cabral@mandriva.com> 3.0svn13475-1mdv2009.0
+ Revision 13471
- New Openoffice.org 3.0 beta 2.

* Fri Apr 04 2008 Ademar de Souza Reis Jr. <ademar@mandriva.com> 2.4.0.7-1mdv2008.1
+ Revision
- new ooo-build upstream version: 2.4.0.7
  Closes: #38874 (Some numbers are shown in Eastern-Arabic)
  Closes: #39799 (oowriter: broken "idents & spacing" in "format paragraph")
  Closes: #39789 (oowriter spellcheck doesn't work)
- hunspell support is upstream, so remove unecessary sources and flags

* Fri Mar 28 2008 Ademar de Souza Reis Jr. <ademar@mandriva.com> 2.4.0.4-2mdv2008.1
+ Revision 191275
- Remove some ghost entries from -common package which were causing it to
  own files from the application subpackages (Closes: #38412);
- Since we're installing icons on the system, add %%clean_icon_cache calls
  to -common %%post and %%postun sections (spotted by Frederic Crozat);
- Fix icons names on x86_64 .desktop files (Closes: #39508);
- Remove menu entries for "OpenOffice.org" and "Web/Writer". They're not
  real applications and we don't have new icons for them (see #26311#c33);
- Minor spec cleanup (XXX comments, etc).

* Wed Mar 26 2008 Ademar de Souza Reis Jr. <ademar@mandriva.com> 2.4.0.4-1mdv2008.1
+ Revision 190514
- New version: 2.4.0.4 (ooo-build 2.4.0.4, ooo 2.4.0-rc6 - same as 2.4.0)
- Added unopkg files (ooo extensions manager)
- New splash screen (Closes: #38720)
- Added OOXML mime-types to .desktop files (Closes: #36465)
- Changed some conflict rules (due to the split) from '= 2.2.1'
  to '<= 2.2.1', so that we can upgrade mdv-2007.1 (Closes: #38891)
- Added new icons for both apps and mimetypes (part of #26311)
- Added OpenDocument entries for KDE "create new" context menu
  (Closes: #16983)
- minor spec cleanup

* Fri Mar 14 2008 Ademar de Souza Reis Jr. <ademar@mandriva.com> 2.4.0.3-1mdv2008.1
+ Revision 187680
- New version: 2.4.0.3 (ooo-build 2.4.0.3, ooo 2.4.0-rc5)
- Minor spec cleanups

* Wed Feb 20 2008 Marcelo Ricardo Leitner <mrl@mandriva.com>
- Use system-db and system-boost for both archs, as gengal does not segfault anymore.
- Enabled usage of OpenGL.
- Enabled lockdown system.
- Use tons of java stuff from the system. (beanshell, xml-apis, xerces, xalan and xt)
- Use system sablot.
- Enabled cairo/canvas for x86_64.
- Imported the changelog in the meanwhile, while we don't submit the package through
  the buildsystem.
- Do not mark template*.desktop as ghost in the same package we ship it,
  otherelse it is not shipped.
- Updated oox and writerfilter to 20080229.
- Suggest java-common at openoffice.org-common, as it may be used by some macros.

* Tue Feb 19 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.3.99.4-1mdv2008.1
+ Revision 171536
- Merged our ooo-build with upstream ones: we submitted all our fixed to upstream.
- New version: 2.3.99.4
- New ooo-build: 2.3.99.4-20080218
- Fixed master name for main alterantives.
- Re-enabled mono bindings
- Added new mono files to %files
- Disabled debug pacakges.
- Updated conflicts tag from -core to -common prior to 2.3.1-1mdv
- Made ooo-dtd-officedocument1.0 not require ooo, and it doesn't require.
  Closes: #37559
- Made openoffice.org suggest ooo-dtd-officedocument1.0. Closes: #37559
- Added java requires to ooo-base package.
- Removed qstart patch, as we ship it in -gnome package now.
- Added proper obsoletes/conflict for upgrading old -qstart packages.
- Updated oox and writerfilter to 2008-01-29
- Updated cli_*.dll

* Thu Jan 10 2008 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.3.1-2mdv2008.1
+ Revision 147621
Changes at the spec:
- Split the helps out of l10n packages.
- Added oodraw to alternatives catalog. Closes: #36618
- Forces compressing payload with lzma/maximum compression(9).
- Fixes to build with icedtea. Thanks to Anssi for helping with this move.
- Add a missing Suggests to tango style at gnome package. Closes: #36519
Changes from ooo-build tree:
- Do not merge the help listings with l10n ones.

* Fri Dec 14 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.3.1-1mdv2008.1
+ Revision 133876
Changes at the spec:
- New upstream: 2.3.1 Closes: #34236, #34724, #34274 and #35835
- Fixed alternatives for handling BrOffice support.
- Fixed wrong dependency for libjpeg.so. Closes: #35354
- Link against internal xmlsec, as linking with the system one is broken.
  Closes: #35067
- Fix wrong require for libjpeg.so at -draw subpackage. Closes: #35354
- Removed alternatives for handling BrOffice support: we simply don't need it.
- Added update_desktop_database/clean_desktop_database calls to all subpackages
  that holds .desktop files.
- Disabled mono bindings, as current cooker mono-devel seems broken.
- Build against system hsqldb.
- Enhanced /etc/profile.d scripts handling regarding multi-arch support.
  Closes: #35402
- Added dependencies to java stuff on ooo-base, as it depends on it.
- Fix alterantives handling for BrOffice support. They were conflicting if you
  had installed both 32 and 64b in the same box.
- From guillomovitch:
  - bash completion file don't have .sh suffix
Changes from ooo-build tree:
- Enhanced packaging. Closes: #35853
- Fixed wizards path. Closes: #35619
- Speed up Hungarian fixes processing.
- Fix msfontextract tools. Closes: #24314

* Fri Nov 23 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.3.0.5-2mdv2008.1
+ Revision 111340
Changes at the spec:
- Remove support for old menu system.
- Added BrOffice support.
- Moved alternatives scripts to -common package, as it must affect systems
  without the main meta-package.
- As now we are using alternatives for the .desktop files, update the desktop
  database only after dealing with alternatives.
- Added patch gtk: fixes wrong free commands in OOo. Closes: #34724
- Converted openintro_mandriva64.bmp to a 24 bit bitmap, as current splash
  can't handle anything different than that.
- Using ooo-build tarball from our soft/ repository now.
- Removed patches angola, force_downloads, ooqstart, xdg and wizards, as they
  are already merged in the tarball.
- Disable patch firefox-xpcom for now, as seems it can be handled via configure
  options.
- Place mdvsuffix in bash_completion and profile.d scripts, so we can have both
  archs installed.
- Check if PYTHONPATH is empty and properly set it, thus avoiding including the
  current dir on the path.
- Added back support to build without l10n packages (although seems not working
  100%)
- Our ooo-build 20071122
- Uncompressed FontOOo
- Merged -evolution and -gtk into -gnome
- Merged -filter-mobiledev into -filter-binfilter
- Splitted -pyuno
- Splitted -testtool
- Moved file listings to ooo-build scripts.
- Fix alternatives handling for BrOffice support
- Fix wrong dependency for libjpeg.so. Closes: #35354
Changes from ooo-build tree:
- Merged a lot of our patches from the package.
- Also apply patches from sets CairoFonts, CalcSolver, Split and NotDebian.
- Merged some patches from ooo-build upstream, including
  gnome-vfs-read-only-smb.diff for our #35183.

* Mon Nov 05 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.3.0.5-1mdv2008.1
+ Revision 106021
- New upstream: 2.3.0.5 (oog-m7)
- Disabled linking against system xmlsec, as it (the linking) is currently
  broken.
- Removed patch xmlsec, as it's not used.
- Added conflicts to the previous release, as thousands of files were moved.
- Remove BuildRequires to inkscape: seems to not be needed.
- Removed german dicts lines, as of commit #104173 we don't need it anymore.
- -l10n packages should require openoffice.org-common now, and not the whole
  suite.
- Removed BuildRequires for thousands of locale- packages, as they are not
  needed.
- Removed support to build the "tiny" langset, as it won't be used.
- Removed all thes/hyph/dict from the package: they should be available by
  general packages.
- Updated DicOOo and decompressed it.
- Make out -clipart package require openclipart one.
- Try to avoid urpmi question by making all application packages also require
  explicitly -core.
- Do not force requires for freetype, odbc, sndfile and portaudio, as rpm is
  getting them automatically.
- Dropped support for < 2007.1
- Fully disable QA tools for now. We will work on that after release a first
  build for cooker.
- Main package should also require -impress module.
- -impress must require -draw
- Added Suggests for the theme styles on gtk/kde packages.
- Puts proper dependencies between the subpackages
- Added libsvg-devel buildrequires.
- Removed patchs neon and neon2: already fixed in upstream.
- Removed patch CVE-2007-2834: already fixed in upstream.
- Updated patch ooqstart
- Enhanced the detection of the number of processors to use by using
  RPM_BUILD_NCPUS variable.
- Move the entire gallery collection to openclipart subpackage.
- Move FontOOo and DicOOo from share/dicts/ooo/ to share/dicts/ at least.
- Do not include the whole myspell stuff in OOo again, as we are already
  requiring myspell- packages.
- Fixed icecream paths.
- Fixed missing trailing \ on hunspell configure option.
- Do not run configure twice: do not run configure on autogen, as it was being
  done without any option.
- Enabled ccache.
- Updated FontOOo

* Thu Oct 18 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.2.1-4mdv2008.1
+ Revision: 99960
- Remove localwidget patch, it off already.
- Rediffed ooqstart patch.
- Fix syntax error in openoffice.org.csh. Closes: #34423

* Fri Sep 21 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 2.2.1-3mdv2008.0
+ Revision: 95418
- Fix patch22 order, as used for the build.
- 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 Hannula <anssi@mandriva.org>
    - fix removal of old alternative when mdvsuffix changes

* Wed Sep 05 2007 Marcelo Ricardo Leitner <mrl@mandriva.com> 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 Hannula <anssi@mandriva.org>
    - require openoffice.org-voikko instead of myspell-hyph-fi in
      openoffice.org-l10n-fi for better Finnish support
    - fix use_systemboost build option

  + Thierry Vignaud <tvignaud@mandriva.com>
    - convert prereq
    - kill file require on update-alternatives

  + Ademar de Souza Reis Jr <ademar@mandriva.com.br>
    - 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).

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