LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libreoffice-l10n.spec of Package libreoffice (Project openSUSE:Factory)

#
# spec file for package libreoffice-l10n
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


###################################################################
## DO NOT EDIT THIS SPEC FILE
## Generated by:
## perl lo-l10n-gen-spec libreoffice-l10n.spec.in lo-l10n-data
###################################################################
Name:           libreoffice-l10n
Version:        3.5.4.7
Release:        0
%define         piece             l10n
%define         ooo_home          libreoffice
# test_build_langs:   	   1 = de and cs
#			   2 = all supported languages
%define		test_build_langs                2
# build_module_in_parallel 0 = no
#			   1 = yes (the number is defined be the number of cpus)
#			   2,3,4... = yes (force the number of modules to be built in parallel)
%define		build_module_in_parallel        1
# prepare_build:	   0 = no
#			   1 = yes (just build, install and create packages; without %%prep section and configure)
%define		prepare_build                   1
#
%if %test_build_langs == 0
%define       lo_langs          ""
%else
%if %test_build_langs == 1
%define       lo_langs          "cs de hu ja"
%else
%define       lo_langs          "af ar be-BY bg br ca cs cy da de el en-GB en-ZA es et fi fr ga gl gu-IN he hi-IN hr hu it ja ka km ko lt mk nb nl nn nr pa-IN pl pt pt-BR ru rw sh sk sl sr ss st sv tg th tr ts uk ve vi xh zh-CN zh-TW zu"
%endif
%endif
Summary:        A Source Package for LibreOffice Localizations
License:        LGPL-3.0
Group:          Productivity/Office/Suite
Url:            http://www.documentfoundation.org/
Source0:        install-l10n-helper
# helper stuff to produce the spec file
Source100:      libreoffice-l10n.spec.in
Source101:      lo-l10n-gen-spec
Source102:      lo-l10n-data
# FIXME: the l10n files includes some duplicated files
Source200:      libreoffice-l10n-rpmlintrc
#!BuildIgnore:  libreoffice
BuildRequires:  libreoffice-l10n-prebuilt = %{version}
BuildRequires:  unzip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
#!ExclusiveArch:  %ix86 x86_64 ppc
ExcludeArch:    %arm ia64 s390 s390x

%description
This source package is used to build the LibreOffice artwork
development package.

%if %test_build_langs >= 2
%package -n libreoffice-l10n-af
Summary:        African Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:af)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-af = %{version}
Obsoletes:      OpenOffice_org-af <= %{version}
Provides:       OpenOffice_org-l10n-af = %{version}
Obsoletes:      OpenOffice_org-l10n-af <= %{version}
Provides:       OpenOffice_org-af:%{_prefix}/ooo-2.0/program/resource/sw680af.res

%description -n libreoffice-l10n-af
African localization files for LibreOffice.

%package -n libreoffice-l10n-ar
Summary:        Arabic Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ar)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-ar
# compat stuff
Provides:       OpenOffice_org-ar = %{version}
Obsoletes:      OpenOffice_org-ar <= %{version}
Provides:       OpenOffice_org-l10n-ar = %{version}
Obsoletes:      OpenOffice_org-l10n-ar <= %{version}
Provides:       OpenOffice_org-ar:%{_prefix}/ooo-2.0/program/resource/sw680ar.res

%description -n libreoffice-l10n-ar
Arabic localization files for LibreOffice.

%package -n libreoffice-l10n-be-BY
Summary:        Belorussian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:be)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-ru
# compat stuff
Provides:       OpenOffice_org-be-BY = %{version}
Obsoletes:      OpenOffice_org-be-BY <= %{version}
Provides:       OpenOffice_org-l10n-be-BY = %{version}
Obsoletes:      OpenOffice_org-l10n-be-BY <= %{version}
Provides:       OpenOffice_org-be-BY:%{_prefix}/ooo-2.0/program/resource/sw680be-BY.res

%description -n libreoffice-l10n-be-BY
Belorussian localization files for LibreOffice.

%package -n libreoffice-l10n-bg
Summary:        Bulgarian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:bg)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-bg
# compat stuff
Provides:       OpenOffice_org-bg = %{version}
Obsoletes:      OpenOffice_org-bg <= %{version}
Provides:       OpenOffice_org-l10n-bg = %{version}
Obsoletes:      OpenOffice_org-l10n-bg <= %{version}
Provides:       OpenOffice_org-bg:%{_prefix}/ooo-2.0/program/resource/sw680bg.res

%description -n libreoffice-l10n-bg
Bulgarian localization files for LibreOffice.

%package -n libreoffice-l10n-br
Summary:        Breton French Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:br)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-br = %{version}
Obsoletes:      OpenOffice_org-br <= %{version}
Provides:       OpenOffice_org-l10n-br = %{version}
Obsoletes:      OpenOffice_org-l10n-br <= %{version}
Provides:       OpenOffice_org-br:%{_prefix}/ooo-2.0/program/resource/sw680br.res

%description -n libreoffice-l10n-br
Breton French localization files for LibreOffice.

%package -n libreoffice-l10n-ca
Summary:        Catalan Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ca)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-ca = %{version}
Obsoletes:      OpenOffice_org-ca <= %{version}
Provides:       OpenOffice_org-l10n-ca = %{version}
Obsoletes:      OpenOffice_org-l10n-ca <= %{version}
Provides:       OpenOffice_org-ca:%{_prefix}/ooo-2.0/program/resource/sw680ca.res

%description -n libreoffice-l10n-ca
Catalan localization files for LibreOffice.

%endif
%if %test_build_langs >= 1

%package -n libreoffice-l10n-cs
Summary:        Czech Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:cs)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-cs = %{version}
Obsoletes:      OpenOffice_org-cs <= %{version}
Provides:       OpenOffice_org-l10n-cs = %{version}
Obsoletes:      OpenOffice_org-l10n-cs <= %{version}
Provides:       OpenOffice_org-cs:%{_prefix}/ooo-2.0/program/resource/sw680cs.res

%description -n libreoffice-l10n-cs
Czech localization files for LibreOffice.

%endif
%if %test_build_langs >= 2

%package -n libreoffice-l10n-cy
Summary:        Welsh Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:cy)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-cy = %{version}
Obsoletes:      OpenOffice_org-cy <= %{version}
Provides:       OpenOffice_org-l10n-cy = %{version}
Obsoletes:      OpenOffice_org-l10n-cy <= %{version}
Provides:       OpenOffice_org-cy:%{_prefix}/ooo-2.0/program/resource/sw680cy.res

%description -n libreoffice-l10n-cy
Welsh localization files for LibreOffice.

%package -n libreoffice-l10n-da
Summary:        Danish Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:da)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-da = %{version}
Obsoletes:      OpenOffice_org-da <= %{version}
Provides:       OpenOffice_org-l10n-da = %{version}
Obsoletes:      OpenOffice_org-l10n-da <= %{version}
Provides:       OpenOffice_org-da:%{_prefix}/ooo-2.0/program/resource/sw680da.res

%description -n libreoffice-l10n-da
Danish localization files for LibreOffice.

%endif
%if %test_build_langs >= 1

%package -n libreoffice-l10n-de
Summary:        German Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:de)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-de = %{version}
Obsoletes:      OpenOffice_org-de <= %{version}
Provides:       OpenOffice_org-l10n-de = %{version}
Obsoletes:      OpenOffice_org-l10n-de <= %{version}
Provides:       OpenOffice_org-de:%{_prefix}/ooo-2.0/program/resource/sw680de.res

%description -n libreoffice-l10n-de
German localization files for LibreOffice.

%endif
%if %test_build_langs >= 2

%package -n libreoffice-l10n-el
Summary:        Greek Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:el)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-el
# compat stuff
Provides:       OpenOffice_org-el = %{version}
Obsoletes:      OpenOffice_org-el <= %{version}
Provides:       OpenOffice_org-l10n-el = %{version}
Obsoletes:      OpenOffice_org-l10n-el <= %{version}
Provides:       OpenOffice_org-el:%{_prefix}/ooo-2.0/program/resource/sw680el.res

%description -n libreoffice-l10n-el
Greek localization files for LibreOffice.

%package -n libreoffice-l10n-en-GB
Summary:        British Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:en_GB)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-en-GB = %{version}
Obsoletes:      OpenOffice_org-en-GB <= %{version}
Provides:       OpenOffice_org-l10n-en-GB = %{version}
Obsoletes:      OpenOffice_org-l10n-en-GB <= %{version}
Provides:       OpenOffice_org-en-GB:%{_prefix}/ooo-2.0/program/resource/sw680en-GB.res

%description -n libreoffice-l10n-en-GB
British localization files for LibreOffice.

%package -n libreoffice-l10n-en-ZA
Summary:        South Africa English Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:en_ZA)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-en-ZA = %{version}
Obsoletes:      OpenOffice_org-en-ZA <= %{version}
Provides:       OpenOffice_org-l10n-en-ZA = %{version}
Obsoletes:      OpenOffice_org-l10n-en-ZA <= %{version}
Provides:       OpenOffice_org-en-ZA:%{_prefix}/ooo-2.0/program/resource/sw680en-ZA.res

%description -n libreoffice-l10n-en-ZA
South Africa English localization files for LibreOffice.

%package -n libreoffice-l10n-es
Summary:        Spanish Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:es)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-es = %{version}
Obsoletes:      OpenOffice_org-es <= %{version}
Provides:       OpenOffice_org-l10n-es = %{version}
Obsoletes:      OpenOffice_org-l10n-es <= %{version}
Provides:       OpenOffice_org-es:%{_prefix}/ooo-2.0/program/resource/sw680es.res

%description -n libreoffice-l10n-es
Spanish localization files for LibreOffice.

%package -n libreoffice-l10n-et
Summary:        Estonian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:et)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-et = %{version}
Obsoletes:      OpenOffice_org-et <= %{version}
Provides:       OpenOffice_org-l10n-et = %{version}
Obsoletes:      OpenOffice_org-l10n-et <= %{version}
Provides:       OpenOffice_org-et:%{_prefix}/ooo-2.0/program/resource/sw680et.res

%description -n libreoffice-l10n-et
Estonian localization files for LibreOffice.

%package -n libreoffice-l10n-fi
Summary:        Finnish Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:fi)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-fi = %{version}
Obsoletes:      OpenOffice_org-fi <= %{version}
Provides:       OpenOffice_org-l10n-fi = %{version}
Obsoletes:      OpenOffice_org-l10n-fi <= %{version}
Provides:       OpenOffice_org-fi:%{_prefix}/ooo-2.0/program/resource/sw680fi.res

%description -n libreoffice-l10n-fi
Finnish localization files for LibreOffice.

%package -n libreoffice-l10n-fr
Summary:        French Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:fr)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-fr = %{version}
Obsoletes:      OpenOffice_org-fr <= %{version}
Provides:       OpenOffice_org-l10n-fr = %{version}
Obsoletes:      OpenOffice_org-l10n-fr <= %{version}
Provides:       OpenOffice_org-fr:%{_prefix}/ooo-2.0/program/resource/sw680fr.res

%description -n libreoffice-l10n-fr
French localization files for LibreOffice.

%package -n libreoffice-l10n-ga
Summary:        Gaelic Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ga)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-ga = %{version}
Obsoletes:      OpenOffice_org-ga <= %{version}
Provides:       OpenOffice_org-l10n-ga = %{version}
Obsoletes:      OpenOffice_org-l10n-ga <= %{version}
Provides:       OpenOffice_org-ga:%{_prefix}/ooo-2.0/program/resource/sw680ga.res

%description -n libreoffice-l10n-ga
Gaelic localization files for LibreOffice.

%package -n libreoffice-l10n-gl
Summary:        Galician Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:gl)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-gl = %{version}
Obsoletes:      OpenOffice_org-gl <= %{version}
Provides:       OpenOffice_org-l10n-gl = %{version}
Obsoletes:      OpenOffice_org-l10n-gl <= %{version}
Provides:       OpenOffice_org-gl:%{_prefix}/ooo-2.0/program/resource/sw680gl.res

%description -n libreoffice-l10n-gl
Galician localization files for LibreOffice.

%package -n libreoffice-l10n-gu-IN
Summary:        Gujarati Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:gu)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-gu
# compat stuff
Provides:       OpenOffice_org-gu-IN = %{version}
Obsoletes:      OpenOffice_org-gu-IN <= %{version}
Provides:       OpenOffice_org-l10n-gu-IN = %{version}
Obsoletes:      OpenOffice_org-l10n-gu-IN <= %{version}
Provides:       OpenOffice_org-gu-IN:%{_prefix}/ooo-2.0/program/resource/sw680gu-IN.res

%description -n libreoffice-l10n-gu-IN
Gujarati localization files for LibreOffice.

%package -n libreoffice-l10n-he
Summary:        Hebrew Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:he)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-he = %{version}
Obsoletes:      OpenOffice_org-he <= %{version}
Provides:       OpenOffice_org-l10n-he = %{version}
Obsoletes:      OpenOffice_org-l10n-he <= %{version}
Provides:       OpenOffice_org-he:%{_prefix}/ooo-2.0/program/resource/sw680he.res

%description -n libreoffice-l10n-he
Hebrew localization files for LibreOffice.

%package -n libreoffice-l10n-hi-IN
Summary:        Hindi Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:hi)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-hi
# compat stuff
Provides:       OpenOffice_org-hi-IN = %{version}
Obsoletes:      OpenOffice_org-hi-IN <= %{version}
Provides:       OpenOffice_org-l10n-hi-IN = %{version}
Obsoletes:      OpenOffice_org-l10n-hi-IN <= %{version}
Provides:       OpenOffice_org-hi-IN:%{_prefix}/ooo-2.0/program/resource/sw680hi-IN.res

%description -n libreoffice-l10n-hi-IN
Hindi localization files for LibreOffice.

%package -n libreoffice-l10n-hr
Summary:        Croatian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:hr)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-hr = %{version}
Obsoletes:      OpenOffice_org-hr <= %{version}
Provides:       OpenOffice_org-l10n-hr = %{version}
Obsoletes:      OpenOffice_org-l10n-hr <= %{version}
Provides:       OpenOffice_org-hr:%{_prefix}/ooo-2.0/program/resource/sw680hr.res

%description -n libreoffice-l10n-hr
Croatian localization files for LibreOffice.

%endif
%if %test_build_langs >= 1

%package -n libreoffice-l10n-hu
Summary:        Hungarian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:hu)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-hu = %{version}
Obsoletes:      OpenOffice_org-hu <= %{version}
Provides:       OpenOffice_org-l10n-hu = %{version}
Obsoletes:      OpenOffice_org-l10n-hu <= %{version}
Provides:       OpenOffice_org-hu:%{_prefix}/ooo-2.0/program/resource/sw680hu.res

%description -n libreoffice-l10n-hu
Hungarian localization files for LibreOffice.

%endif
%if %test_build_langs >= 2

%package -n libreoffice-l10n-it
Summary:        Italian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:it)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-it = %{version}
Obsoletes:      OpenOffice_org-it <= %{version}
Provides:       OpenOffice_org-l10n-it = %{version}
Obsoletes:      OpenOffice_org-l10n-it <= %{version}
Provides:       OpenOffice_org-it:%{_prefix}/ooo-2.0/program/resource/sw680it.res

%description -n libreoffice-l10n-it
Italian localization files for LibreOffice.

%endif
%if %test_build_langs >= 1

%package -n libreoffice-l10n-ja
Summary:        Japanese Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ja)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-ja
# compat stuff
Provides:       OpenOffice_org-ja = %{version}
Obsoletes:      OpenOffice_org-ja <= %{version}
Provides:       OpenOffice_org-l10n-ja = %{version}
Obsoletes:      OpenOffice_org-l10n-ja <= %{version}
Provides:       OpenOffice_org-ja:%{_prefix}/ooo-2.0/program/resource/sw680ja.res

%description -n libreoffice-l10n-ja
Japanese localization files for LibreOffice.

%endif
%if %test_build_langs >= 2

%package -n libreoffice-l10n-ka
Summary:        Georgian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ka)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-ka = %{version}
Obsoletes:      OpenOffice_org-ka <= %{version}
Provides:       OpenOffice_org-l10n-ka = %{version}
Obsoletes:      OpenOffice_org-l10n-ka <= %{version}
Provides:       OpenOffice_org-ka:%{_prefix}/ooo-2.0/program/resource/sw680ka.res

%description -n libreoffice-l10n-ka
Georgian localization files for LibreOffice.

%package -n libreoffice-l10n-km
Summary:        Khmer Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:km)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-km
# compat stuff
Provides:       OpenOffice_org-km = %{version}
Obsoletes:      OpenOffice_org-km <= %{version}
Provides:       OpenOffice_org-l10n-km = %{version}
Obsoletes:      OpenOffice_org-l10n-km <= %{version}
Provides:       OpenOffice_org-km:%{_prefix}/ooo-2.0/program/resource/sw680km.res

%description -n libreoffice-l10n-km
Khmer localization files for LibreOffice.

%package -n libreoffice-l10n-ko
Summary:        Korean Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ko)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-ko
# compat stuff
Provides:       OpenOffice_org-ko = %{version}
Obsoletes:      OpenOffice_org-ko <= %{version}
Provides:       OpenOffice_org-l10n-ko = %{version}
Obsoletes:      OpenOffice_org-l10n-ko <= %{version}
Provides:       OpenOffice_org-ko:%{_prefix}/ooo-2.0/program/resource/sw680ko.res

%description -n libreoffice-l10n-ko
Korean localization files for LibreOffice.

%package -n libreoffice-l10n-lt
Summary:        Lithuanian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:lt)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-lt = %{version}
Obsoletes:      OpenOffice_org-lt <= %{version}
Provides:       OpenOffice_org-l10n-lt = %{version}
Obsoletes:      OpenOffice_org-l10n-lt <= %{version}
Provides:       OpenOffice_org-lt:%{_prefix}/ooo-2.0/program/resource/sw680lt.res

%description -n libreoffice-l10n-lt
Lithuanian localization files for LibreOffice.

%package -n libreoffice-l10n-mk
Summary:        Macedonian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:mk)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-ru
# compat stuff
Provides:       OpenOffice_org-mk = %{version}
Obsoletes:      OpenOffice_org-mk <= %{version}
Provides:       OpenOffice_org-l10n-mk = %{version}
Obsoletes:      OpenOffice_org-l10n-mk <= %{version}
Provides:       OpenOffice_org-mk:%{_prefix}/ooo-2.0/program/resource/sw680mk.res

%description -n libreoffice-l10n-mk
Macedonian localization files for LibreOffice.

%package -n libreoffice-l10n-nb
Summary:        Norwegian Bokmaal Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:nb)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-nb = %{version}
Obsoletes:      OpenOffice_org-nb <= %{version}
Provides:       OpenOffice_org-l10n-nb = %{version}
Obsoletes:      OpenOffice_org-l10n-nb <= %{version}
Provides:       OpenOffice_org-nb:%{_prefix}/ooo-2.0/program/resource/sw680nb.res

%description -n libreoffice-l10n-nb
Norwegian Bokmaal localization files for LibreOffice.

%package -n libreoffice-l10n-nl
Summary:        Dutch Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:nl)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-nl = %{version}
Obsoletes:      OpenOffice_org-nl <= %{version}
Provides:       OpenOffice_org-l10n-nl = %{version}
Obsoletes:      OpenOffice_org-l10n-nl <= %{version}
Provides:       OpenOffice_org-nl:%{_prefix}/ooo-2.0/program/resource/sw680nl.res

%description -n libreoffice-l10n-nl
Dutch localization files for LibreOffice.

%package -n libreoffice-l10n-nn
Summary:        Norwegian Nynorsk Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:nn)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-nn = %{version}
Obsoletes:      OpenOffice_org-nn <= %{version}
Provides:       OpenOffice_org-l10n-nn = %{version}
Obsoletes:      OpenOffice_org-l10n-nn <= %{version}
Provides:       OpenOffice_org-nn:%{_prefix}/ooo-2.0/program/resource/sw680nn.res

%description -n libreoffice-l10n-nn
Norwegian Nynorsk localization files for LibreOffice.

%package -n libreoffice-l10n-nr
Summary:        Ndebele Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:nr)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-nr = %{version}
Obsoletes:      OpenOffice_org-nr <= %{version}
Provides:       OpenOffice_org-l10n-nr = %{version}
Obsoletes:      OpenOffice_org-l10n-nr <= %{version}
Provides:       OpenOffice_org-nr:%{_prefix}/ooo-2.0/program/resource/sw680nr.res

%description -n libreoffice-l10n-nr
Ndebele localization files for LibreOffice.

%package -n libreoffice-l10n-pa-IN
Summary:        Punjabi Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:pa_IN)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-pa
# compat stuff
Provides:       OpenOffice_org-pa-IN = %{version}
Obsoletes:      OpenOffice_org-pa-IN <= %{version}
Provides:       OpenOffice_org-l10n-pa-IN = %{version}
Obsoletes:      OpenOffice_org-l10n-pa-IN <= %{version}
Provides:       OpenOffice_org-pa-IN:%{_prefix}/ooo-2.0/program/resource/sw680pa-IN.res

%description -n libreoffice-l10n-pa-IN
Punjabi localization files for LibreOffice.

%package -n libreoffice-l10n-pl
Summary:        Polish Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:pl)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-pl = %{version}
Obsoletes:      OpenOffice_org-pl <= %{version}
Provides:       OpenOffice_org-l10n-pl = %{version}
Obsoletes:      OpenOffice_org-l10n-pl <= %{version}
Provides:       OpenOffice_org-pl:%{_prefix}/ooo-2.0/program/resource/sw680pl.res

%description -n libreoffice-l10n-pl
Polish localization files for LibreOffice.

%package -n libreoffice-l10n-pt
Summary:        Portuguese Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:pt)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-pt = %{version}
Obsoletes:      OpenOffice_org-pt <= %{version}
Provides:       OpenOffice_org-l10n-pt = %{version}
Obsoletes:      OpenOffice_org-l10n-pt <= %{version}
Provides:       OpenOffice_org-pt:%{_prefix}/ooo-2.0/program/resource/sw680pt.res

%description -n libreoffice-l10n-pt
Portuguese localization files for LibreOffice.

%package -n libreoffice-l10n-pt-BR
Summary:        Brazilian Portuguese Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:pt_BR)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-pt-BR = %{version}
Obsoletes:      OpenOffice_org-pt-BR <= %{version}
Provides:       OpenOffice_org-l10n-pt-BR = %{version}
Obsoletes:      OpenOffice_org-l10n-pt-BR <= %{version}
Provides:       OpenOffice_org-pt-BR:%{_prefix}/ooo-2.0/program/resource/sw680pt-BR.res

%description -n libreoffice-l10n-pt-BR
Brazilian Portuguese localization files for LibreOffice.

%package -n libreoffice-l10n-ru
Summary:        Russian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ru)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-ru
# compat stuff
Provides:       OpenOffice_org-ru = %{version}
Obsoletes:      OpenOffice_org-ru <= %{version}
Provides:       OpenOffice_org-l10n-ru = %{version}
Obsoletes:      OpenOffice_org-l10n-ru <= %{version}
Provides:       OpenOffice_org-ru:%{_prefix}/ooo-2.0/program/resource/sw680ru.res

%description -n libreoffice-l10n-ru
Russian localization files for LibreOffice.

%package -n libreoffice-l10n-rw
Summary:        Kinyarwanda Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:rw)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-rw = %{version}
Obsoletes:      OpenOffice_org-rw <= %{version}
Provides:       OpenOffice_org-l10n-rw = %{version}
Obsoletes:      OpenOffice_org-l10n-rw <= %{version}
Provides:       OpenOffice_org-rw:%{_prefix}/ooo-2.0/program/resource/sw680rw.res

%description -n libreoffice-l10n-rw
Kinyarwanda localization files for LibreOffice.

%package -n libreoffice-l10n-sh
Summary:        Latin Serbian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:sh)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Provides:       OpenOffice_org-sh-YU = %version
Provides:       OpenOffice_org-sh-YU:%_prefix/ooo-2.0/program/resource/sw680sh-YU.res
Obsoletes:      OpenOffice_org-sh-YU < %version
# compat stuff
Provides:       OpenOffice_org-sh = %{version}
Obsoletes:      OpenOffice_org-sh <= %{version}
Provides:       OpenOffice_org-l10n-sh = %{version}
Obsoletes:      OpenOffice_org-l10n-sh <= %{version}
Provides:       OpenOffice_org-sh:%{_prefix}/ooo-2.0/program/resource/sw680sh.res

%description -n libreoffice-l10n-sh
Latin Serbian localization files for LibreOffice.

%package -n libreoffice-l10n-sk
Summary:        Slovak Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:sk)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-sk = %{version}
Obsoletes:      OpenOffice_org-sk <= %{version}
Provides:       OpenOffice_org-l10n-sk = %{version}
Obsoletes:      OpenOffice_org-l10n-sk <= %{version}
Provides:       OpenOffice_org-sk:%{_prefix}/ooo-2.0/program/resource/sw680sk.res

%description -n libreoffice-l10n-sk
Slovak localization files for LibreOffice.

%package -n libreoffice-l10n-sl
Summary:        Slovene Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:sl)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-sl = %{version}
Obsoletes:      OpenOffice_org-sl <= %{version}
Provides:       OpenOffice_org-l10n-sl = %{version}
Obsoletes:      OpenOffice_org-l10n-sl <= %{version}
Provides:       OpenOffice_org-sl:%{_prefix}/ooo-2.0/program/resource/sw680sl.res

%description -n libreoffice-l10n-sl
Slovene localization files for LibreOffice.

%package -n libreoffice-l10n-sr
Summary:        Serbian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:sr)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-ru
Provides:       OpenOffice_org-sr-CS = %version
Provides:       OpenOffice_org-sr-CS:%_prefix/ooo-2.0/program/resource/sw680sr-CS.res
Obsoletes:      OpenOffice_org-sr-CS < %version
# compat stuff
Provides:       OpenOffice_org-sr = %{version}
Obsoletes:      OpenOffice_org-sr <= %{version}
Provides:       OpenOffice_org-l10n-sr = %{version}
Obsoletes:      OpenOffice_org-l10n-sr <= %{version}
Provides:       OpenOffice_org-sr:%{_prefix}/ooo-2.0/program/resource/sw680sr.res

%description -n libreoffice-l10n-sr
Serbian localization files for LibreOffice.

%package -n libreoffice-l10n-ss
Summary:        Swazi Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ss)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-ss = %{version}
Obsoletes:      OpenOffice_org-ss <= %{version}
Provides:       OpenOffice_org-l10n-ss = %{version}
Obsoletes:      OpenOffice_org-l10n-ss <= %{version}
Provides:       OpenOffice_org-ss:%{_prefix}/ooo-2.0/program/resource/sw680ss.res

%description -n libreoffice-l10n-ss
Swazi localization files for LibreOffice.

%package -n libreoffice-l10n-st
Summary:        Sotho Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:st)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-st = %{version}
Obsoletes:      OpenOffice_org-st <= %{version}
Provides:       OpenOffice_org-l10n-st = %{version}
Obsoletes:      OpenOffice_org-l10n-st <= %{version}
Provides:       OpenOffice_org-st:%{_prefix}/ooo-2.0/program/resource/sw680st.res

%description -n libreoffice-l10n-st
Sotho localization files for LibreOffice.

%package -n libreoffice-l10n-sv
Summary:        Swedish Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:sv)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-sv = %{version}
Obsoletes:      OpenOffice_org-sv <= %{version}
Provides:       OpenOffice_org-l10n-sv = %{version}
Obsoletes:      OpenOffice_org-l10n-sv <= %{version}
Provides:       OpenOffice_org-sv:%{_prefix}/ooo-2.0/program/resource/sw680sv.res

%description -n libreoffice-l10n-sv
Swedish localization files for LibreOffice.

%package -n libreoffice-l10n-tg
Summary:        Tajiki Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:tg)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-tg = %{version}
Obsoletes:      OpenOffice_org-tg <= %{version}
Provides:       OpenOffice_org-l10n-tg = %{version}
Obsoletes:      OpenOffice_org-l10n-tg <= %{version}
Provides:       OpenOffice_org-tg:%{_prefix}/ooo-2.0/program/resource/sw680tg.res

%description -n libreoffice-l10n-tg
Tajiki localization files for LibreOffice.

%package -n libreoffice-l10n-th
Summary:        Thai Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:th)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-th = %{version}
Obsoletes:      OpenOffice_org-th <= %{version}
Provides:       OpenOffice_org-l10n-th = %{version}
Obsoletes:      OpenOffice_org-l10n-th <= %{version}
Provides:       OpenOffice_org-th:%{_prefix}/ooo-2.0/program/resource/sw680th.res

%description -n libreoffice-l10n-th
Thai localization files for LibreOffice.

%package -n libreoffice-l10n-tr
Summary:        Turkish Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:tr)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-tr = %{version}
Obsoletes:      OpenOffice_org-tr <= %{version}
Provides:       OpenOffice_org-l10n-tr = %{version}
Obsoletes:      OpenOffice_org-l10n-tr <= %{version}
Provides:       OpenOffice_org-tr:%{_prefix}/ooo-2.0/program/resource/sw680tr.res

%description -n libreoffice-l10n-tr
Turkish localization files for LibreOffice.

%package -n libreoffice-l10n-ts
Summary:        Tsonga Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ts)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-ts = %{version}
Obsoletes:      OpenOffice_org-ts <= %{version}
Provides:       OpenOffice_org-l10n-ts = %{version}
Obsoletes:      OpenOffice_org-l10n-ts <= %{version}
Provides:       OpenOffice_org-ts:%{_prefix}/ooo-2.0/program/resource/sw680ts.res

%description -n libreoffice-l10n-ts
Tsonga localization files for LibreOffice.

%package -n libreoffice-l10n-uk
Summary:        Ukrainian Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:uk)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-uk = %{version}
Obsoletes:      OpenOffice_org-uk <= %{version}
Provides:       OpenOffice_org-l10n-uk = %{version}
Obsoletes:      OpenOffice_org-l10n-uk <= %{version}
Provides:       OpenOffice_org-uk:%{_prefix}/ooo-2.0/program/resource/sw680uk.res

%description -n libreoffice-l10n-uk
Ukrainian localization files for LibreOffice.

%package -n libreoffice-l10n-ve
Summary:        Venda Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:ve)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-ve = %{version}
Obsoletes:      OpenOffice_org-ve <= %{version}
Provides:       OpenOffice_org-l10n-ve = %{version}
Obsoletes:      OpenOffice_org-l10n-ve <= %{version}
Provides:       OpenOffice_org-ve:%{_prefix}/ooo-2.0/program/resource/sw680ve.res

%description -n libreoffice-l10n-ve
Venda localization files for LibreOffice.

%package -n libreoffice-l10n-vi
Summary:        Vietnamese Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:vi)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-vi = %{version}
Obsoletes:      OpenOffice_org-vi <= %{version}
Provides:       OpenOffice_org-l10n-vi = %{version}
Obsoletes:      OpenOffice_org-l10n-vi <= %{version}
Provides:       OpenOffice_org-vi:%{_prefix}/ooo-2.0/program/resource/sw680vi.res

%description -n libreoffice-l10n-vi
Vietnamese localization files for LibreOffice.

%package -n libreoffice-l10n-xh
Summary:        Xhosa Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:xh)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-xh = %{version}
Obsoletes:      OpenOffice_org-xh <= %{version}
Provides:       OpenOffice_org-l10n-xh = %{version}
Obsoletes:      OpenOffice_org-l10n-xh <= %{version}
Provides:       OpenOffice_org-xh:%{_prefix}/ooo-2.0/program/resource/sw680xh.res

%description -n libreoffice-l10n-xh
Xhosa localization files for LibreOffice.

%package -n libreoffice-l10n-zh-CN
Summary:        Chinese Simplified Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:zh_CN)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-zh-CN
# compat stuff
Provides:       OpenOffice_org-zh-CN = %{version}
Obsoletes:      OpenOffice_org-zh-CN <= %{version}
Provides:       OpenOffice_org-l10n-zh-CN = %{version}
Obsoletes:      OpenOffice_org-l10n-zh-CN <= %{version}
Provides:       OpenOffice_org-zh-CN:%{_prefix}/ooo-2.0/program/resource/sw680zh-CN.res

%description -n libreoffice-l10n-zh-CN
Chinese Simplified localization files for LibreOffice.

%package -n libreoffice-l10n-zh-TW
Summary:        Chinese Traditional Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:zh_TW)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
Requires:       scalable-font-zh-TW
# compat stuff
Provides:       OpenOffice_org-zh-TW = %{version}
Obsoletes:      OpenOffice_org-zh-TW <= %{version}
Provides:       OpenOffice_org-l10n-zh-TW = %{version}
Obsoletes:      OpenOffice_org-l10n-zh-TW <= %{version}
Provides:       OpenOffice_org-zh-TW:%{_prefix}/ooo-2.0/program/resource/sw680zh-TW.res

%description -n libreoffice-l10n-zh-TW
Chinese Traditional localization files for LibreOffice.

%package -n libreoffice-l10n-zu
Summary:        Zulu Localization Files for LibreOffice
Group:          Productivity/Office/Suite
Provides:       locale(libreoffice:zu)
%if 0%{?suse_version} > 01120
Requires(post):   coreutils
Requires(post):   grep
Requires(post):   libreoffice >= 3.5
Requires(postun): coreutils
Requires(postun): grep
Requires(postun): libreoffice >= 3.5
%endif
%if 0%{?suse_version} && 0%{?suse_version} <= 01120
PreReq:         coreutils
PreReq:         grep
PreReq:         libreoffice >= 3.5
%endif
Requires:       libreoffice = %{version}
# compat stuff
Provides:       OpenOffice_org-zu = %{version}
Obsoletes:      OpenOffice_org-zu <= %{version}
Provides:       OpenOffice_org-l10n-zu = %{version}
Obsoletes:      OpenOffice_org-l10n-zu <= %{version}
Provides:       OpenOffice_org-zu:%{_prefix}/ooo-2.0/program/resource/sw680zu.res

%description -n libreoffice-l10n-zu
Zulu localization files for LibreOffice.

%endif

%prep

%build

%install
# setup env.
export DESTDIR=%{buildroot}
/bin/bash -x $RPM_SOURCE_DIR/install-l10n-helper %{_libdir}/%ooo_home  %{_datadir}/%ooo_home %{_libdir}/%ooo_home/share/file-lists/lang_*_list.txt

%clean
rm -rf %{buildroot}

%if %test_build_langs >= 2
# af
%posttrans -n libreoffice-l10n-af
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_af_list.txt || true

%preun -n libreoffice-l10n-af
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_af_list.txt %{_datadir}/%ooo_home/lang_af_list.txt.postun || true

%postun -n libreoffice-l10n-af
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_af_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_af_list.txt.postun 2>/dev/null
# ar
%posttrans -n libreoffice-l10n-ar
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ar_list.txt || true

%preun -n libreoffice-l10n-ar
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ar_list.txt %{_datadir}/%ooo_home/lang_ar_list.txt.postun || true

%postun -n libreoffice-l10n-ar
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ar_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ar_list.txt.postun 2>/dev/null
# be-BY
%posttrans -n libreoffice-l10n-be-BY
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_be_list.txt || true

%preun -n libreoffice-l10n-be-BY
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_be_list.txt %{_datadir}/%ooo_home/lang_be_list.txt.postun || true

%postun -n libreoffice-l10n-be-BY
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_be_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_be_list.txt.postun 2>/dev/null
# bg
%posttrans -n libreoffice-l10n-bg
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_bg_list.txt || true

%preun -n libreoffice-l10n-bg
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_bg_list.txt %{_datadir}/%ooo_home/lang_bg_list.txt.postun || true

%postun -n libreoffice-l10n-bg
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_bg_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_bg_list.txt.postun 2>/dev/null
# br
%posttrans -n libreoffice-l10n-br
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_br_list.txt || true

%preun -n libreoffice-l10n-br
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_br_list.txt %{_datadir}/%ooo_home/lang_br_list.txt.postun || true

%postun -n libreoffice-l10n-br
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_br_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_br_list.txt.postun 2>/dev/null
# ca
%posttrans -n libreoffice-l10n-ca
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ca_list.txt || true

%preun -n libreoffice-l10n-ca
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ca_list.txt %{_datadir}/%ooo_home/lang_ca_list.txt.postun || true

%postun -n libreoffice-l10n-ca
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ca_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ca_list.txt.postun 2>/dev/null
%endif
%if %test_build_langs >= 1

# cs
%posttrans -n libreoffice-l10n-cs
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_cs_list.txt || true

%preun -n libreoffice-l10n-cs
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_cs_list.txt %{_datadir}/%ooo_home/lang_cs_list.txt.postun || true

%postun -n libreoffice-l10n-cs
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_cs_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_cs_list.txt.postun 2>/dev/null
%endif
%if %test_build_langs >= 2

# cy
%posttrans -n libreoffice-l10n-cy
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_cy_list.txt || true

%preun -n libreoffice-l10n-cy
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_cy_list.txt %{_datadir}/%ooo_home/lang_cy_list.txt.postun || true

%postun -n libreoffice-l10n-cy
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_cy_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_cy_list.txt.postun 2>/dev/null
# da
%posttrans -n libreoffice-l10n-da
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_da_list.txt || true

%preun -n libreoffice-l10n-da
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_da_list.txt %{_datadir}/%ooo_home/lang_da_list.txt.postun || true

%postun -n libreoffice-l10n-da
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_da_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_da_list.txt.postun 2>/dev/null
%endif
%if %test_build_langs >= 1

# de
%posttrans -n libreoffice-l10n-de
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_de_list.txt || true

%preun -n libreoffice-l10n-de
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_de_list.txt %{_datadir}/%ooo_home/lang_de_list.txt.postun || true

%postun -n libreoffice-l10n-de
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_de_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_de_list.txt.postun 2>/dev/null
%endif
%if %test_build_langs >= 2

# el
%posttrans -n libreoffice-l10n-el
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_el_list.txt || true

%preun -n libreoffice-l10n-el
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_el_list.txt %{_datadir}/%ooo_home/lang_el_list.txt.postun || true

%postun -n libreoffice-l10n-el
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_el_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_el_list.txt.postun 2>/dev/null
# en-GB
%posttrans -n libreoffice-l10n-en-GB
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_en_GB_list.txt || true

%preun -n libreoffice-l10n-en-GB
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_en_GB_list.txt %{_datadir}/%ooo_home/lang_en_GB_list.txt.postun || true

%postun -n libreoffice-l10n-en-GB
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_en_GB_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_en_GB_list.txt.postun 2>/dev/null
# en-ZA
%posttrans -n libreoffice-l10n-en-ZA
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_en_ZA_list.txt || true

%preun -n libreoffice-l10n-en-ZA
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_en_ZA_list.txt %{_datadir}/%ooo_home/lang_en_ZA_list.txt.postun || true

%postun -n libreoffice-l10n-en-ZA
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_en_ZA_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_en_ZA_list.txt.postun 2>/dev/null
# es
%posttrans -n libreoffice-l10n-es
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_es_list.txt || true

%preun -n libreoffice-l10n-es
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_es_list.txt %{_datadir}/%ooo_home/lang_es_list.txt.postun || true

%postun -n libreoffice-l10n-es
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_es_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_es_list.txt.postun 2>/dev/null
# et
%posttrans -n libreoffice-l10n-et
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_et_list.txt || true

%preun -n libreoffice-l10n-et
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_et_list.txt %{_datadir}/%ooo_home/lang_et_list.txt.postun || true

%postun -n libreoffice-l10n-et
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_et_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_et_list.txt.postun 2>/dev/null
# fi
%posttrans -n libreoffice-l10n-fi
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_fi_list.txt || true

%preun -n libreoffice-l10n-fi
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_fi_list.txt %{_datadir}/%ooo_home/lang_fi_list.txt.postun || true

%postun -n libreoffice-l10n-fi
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_fi_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_fi_list.txt.postun 2>/dev/null
# fr
%posttrans -n libreoffice-l10n-fr
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_fr_list.txt || true

%preun -n libreoffice-l10n-fr
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_fr_list.txt %{_datadir}/%ooo_home/lang_fr_list.txt.postun || true

%postun -n libreoffice-l10n-fr
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_fr_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_fr_list.txt.postun 2>/dev/null
# ga
%posttrans -n libreoffice-l10n-ga
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ga_list.txt || true

%preun -n libreoffice-l10n-ga
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ga_list.txt %{_datadir}/%ooo_home/lang_ga_list.txt.postun || true

%postun -n libreoffice-l10n-ga
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ga_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ga_list.txt.postun 2>/dev/null
# gl
%posttrans -n libreoffice-l10n-gl
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_gl_list.txt || true

%preun -n libreoffice-l10n-gl
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_gl_list.txt %{_datadir}/%ooo_home/lang_gl_list.txt.postun || true

%postun -n libreoffice-l10n-gl
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_gl_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_gl_list.txt.postun 2>/dev/null
# gu-IN
%posttrans -n libreoffice-l10n-gu-IN
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_gu_list.txt || true

%preun -n libreoffice-l10n-gu-IN
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_gu_list.txt %{_datadir}/%ooo_home/lang_gu_list.txt.postun || true

%postun -n libreoffice-l10n-gu-IN
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_gu_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_gu_list.txt.postun 2>/dev/null
# he
%posttrans -n libreoffice-l10n-he
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_he_list.txt || true

%preun -n libreoffice-l10n-he
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_he_list.txt %{_datadir}/%ooo_home/lang_he_list.txt.postun || true

%postun -n libreoffice-l10n-he
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_he_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_he_list.txt.postun 2>/dev/null
# hi-IN
%posttrans -n libreoffice-l10n-hi-IN
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_hi_list.txt || true

%preun -n libreoffice-l10n-hi-IN
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_hi_list.txt %{_datadir}/%ooo_home/lang_hi_list.txt.postun || true

%postun -n libreoffice-l10n-hi-IN
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_hi_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_hi_list.txt.postun 2>/dev/null
# hr
%posttrans -n libreoffice-l10n-hr
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_hr_list.txt || true

%preun -n libreoffice-l10n-hr
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_hr_list.txt %{_datadir}/%ooo_home/lang_hr_list.txt.postun || true

%postun -n libreoffice-l10n-hr
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_hr_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_hr_list.txt.postun 2>/dev/null
%endif
%if %test_build_langs >= 1

# hu
%posttrans -n libreoffice-l10n-hu
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_hu_list.txt || true

%preun -n libreoffice-l10n-hu
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_hu_list.txt %{_datadir}/%ooo_home/lang_hu_list.txt.postun || true

%postun -n libreoffice-l10n-hu
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_hu_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_hu_list.txt.postun 2>/dev/null
%endif
%if %test_build_langs >= 2

# it
%posttrans -n libreoffice-l10n-it
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_it_list.txt || true

%preun -n libreoffice-l10n-it
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_it_list.txt %{_datadir}/%ooo_home/lang_it_list.txt.postun || true

%postun -n libreoffice-l10n-it
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_it_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_it_list.txt.postun 2>/dev/null
%endif
%if %test_build_langs >= 1

# ja
%posttrans -n libreoffice-l10n-ja
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ja_list.txt || true

%preun -n libreoffice-l10n-ja
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ja_list.txt %{_datadir}/%ooo_home/lang_ja_list.txt.postun || true

%postun -n libreoffice-l10n-ja
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ja_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ja_list.txt.postun 2>/dev/null
%endif
%if %test_build_langs >= 2

# ka
%posttrans -n libreoffice-l10n-ka
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ka_list.txt || true

%preun -n libreoffice-l10n-ka
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ka_list.txt %{_datadir}/%ooo_home/lang_ka_list.txt.postun || true

%postun -n libreoffice-l10n-ka
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ka_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ka_list.txt.postun 2>/dev/null
# km
%posttrans -n libreoffice-l10n-km
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_km_list.txt || true

%preun -n libreoffice-l10n-km
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_km_list.txt %{_datadir}/%ooo_home/lang_km_list.txt.postun || true

%postun -n libreoffice-l10n-km
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_km_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_km_list.txt.postun 2>/dev/null
# ko
%posttrans -n libreoffice-l10n-ko
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ko_list.txt || true

%preun -n libreoffice-l10n-ko
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ko_list.txt %{_datadir}/%ooo_home/lang_ko_list.txt.postun || true

%postun -n libreoffice-l10n-ko
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ko_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ko_list.txt.postun 2>/dev/null
# lt
%posttrans -n libreoffice-l10n-lt
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_lt_list.txt || true

%preun -n libreoffice-l10n-lt
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_lt_list.txt %{_datadir}/%ooo_home/lang_lt_list.txt.postun || true

%postun -n libreoffice-l10n-lt
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_lt_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_lt_list.txt.postun 2>/dev/null
# mk
%posttrans -n libreoffice-l10n-mk
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_mk_list.txt || true

%preun -n libreoffice-l10n-mk
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_mk_list.txt %{_datadir}/%ooo_home/lang_mk_list.txt.postun || true

%postun -n libreoffice-l10n-mk
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_mk_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_mk_list.txt.postun 2>/dev/null
# nb
%posttrans -n libreoffice-l10n-nb
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_nb_list.txt || true

%preun -n libreoffice-l10n-nb
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_nb_list.txt %{_datadir}/%ooo_home/lang_nb_list.txt.postun || true

%postun -n libreoffice-l10n-nb
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_nb_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_nb_list.txt.postun 2>/dev/null
# nl
%posttrans -n libreoffice-l10n-nl
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_nl_list.txt || true

%preun -n libreoffice-l10n-nl
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_nl_list.txt %{_datadir}/%ooo_home/lang_nl_list.txt.postun || true

%postun -n libreoffice-l10n-nl
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_nl_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_nl_list.txt.postun 2>/dev/null
# nn
%posttrans -n libreoffice-l10n-nn
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_nn_list.txt || true

%preun -n libreoffice-l10n-nn
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_nn_list.txt %{_datadir}/%ooo_home/lang_nn_list.txt.postun || true

%postun -n libreoffice-l10n-nn
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_nn_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_nn_list.txt.postun 2>/dev/null
# nr
%posttrans -n libreoffice-l10n-nr
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_nr_list.txt || true

%preun -n libreoffice-l10n-nr
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_nr_list.txt %{_datadir}/%ooo_home/lang_nr_list.txt.postun || true

%postun -n libreoffice-l10n-nr
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_nr_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_nr_list.txt.postun 2>/dev/null
# pa-IN
%posttrans -n libreoffice-l10n-pa-IN
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_pa_IN_list.txt || true

%preun -n libreoffice-l10n-pa-IN
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_pa_IN_list.txt %{_datadir}/%ooo_home/lang_pa_IN_list.txt.postun || true

%postun -n libreoffice-l10n-pa-IN
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_pa_IN_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_pa_IN_list.txt.postun 2>/dev/null
# pl
%posttrans -n libreoffice-l10n-pl
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_pl_list.txt || true

%preun -n libreoffice-l10n-pl
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_pl_list.txt %{_datadir}/%ooo_home/lang_pl_list.txt.postun || true

%postun -n libreoffice-l10n-pl
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_pl_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_pl_list.txt.postun 2>/dev/null
# pt
%posttrans -n libreoffice-l10n-pt
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_pt_list.txt || true

%preun -n libreoffice-l10n-pt
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_pt_list.txt %{_datadir}/%ooo_home/lang_pt_list.txt.postun || true

%postun -n libreoffice-l10n-pt
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_pt_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_pt_list.txt.postun 2>/dev/null
# pt-BR
%posttrans -n libreoffice-l10n-pt-BR
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_pt_BR_list.txt || true

%preun -n libreoffice-l10n-pt-BR
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_pt_BR_list.txt %{_datadir}/%ooo_home/lang_pt_BR_list.txt.postun || true

%postun -n libreoffice-l10n-pt-BR
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_pt_BR_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_pt_BR_list.txt.postun 2>/dev/null
# ru
%posttrans -n libreoffice-l10n-ru
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ru_list.txt || true

%preun -n libreoffice-l10n-ru
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ru_list.txt %{_datadir}/%ooo_home/lang_ru_list.txt.postun || true

%postun -n libreoffice-l10n-ru
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ru_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ru_list.txt.postun 2>/dev/null
# rw
%posttrans -n libreoffice-l10n-rw
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_rw_list.txt || true

%preun -n libreoffice-l10n-rw
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_rw_list.txt %{_datadir}/%ooo_home/lang_rw_list.txt.postun || true

%postun -n libreoffice-l10n-rw
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_rw_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_rw_list.txt.postun 2>/dev/null
# sh
%posttrans -n libreoffice-l10n-sh
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_sh_list.txt || true

%preun -n libreoffice-l10n-sh
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_sh_list.txt %{_datadir}/%ooo_home/lang_sh_list.txt.postun || true

%postun -n libreoffice-l10n-sh
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_sh_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_sh_list.txt.postun 2>/dev/null
# sk
%posttrans -n libreoffice-l10n-sk
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_sk_list.txt || true

%preun -n libreoffice-l10n-sk
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_sk_list.txt %{_datadir}/%ooo_home/lang_sk_list.txt.postun || true

%postun -n libreoffice-l10n-sk
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_sk_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_sk_list.txt.postun 2>/dev/null
# sl
%posttrans -n libreoffice-l10n-sl
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_sl_list.txt || true

%preun -n libreoffice-l10n-sl
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_sl_list.txt %{_datadir}/%ooo_home/lang_sl_list.txt.postun || true

%postun -n libreoffice-l10n-sl
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_sl_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_sl_list.txt.postun 2>/dev/null
# sr
%posttrans -n libreoffice-l10n-sr
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_sr_list.txt || true

%preun -n libreoffice-l10n-sr
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_sr_list.txt %{_datadir}/%ooo_home/lang_sr_list.txt.postun || true

%postun -n libreoffice-l10n-sr
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_sr_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_sr_list.txt.postun 2>/dev/null
# ss
%posttrans -n libreoffice-l10n-ss
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ss_list.txt || true

%preun -n libreoffice-l10n-ss
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ss_list.txt %{_datadir}/%ooo_home/lang_ss_list.txt.postun || true

%postun -n libreoffice-l10n-ss
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ss_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ss_list.txt.postun 2>/dev/null
# st
%posttrans -n libreoffice-l10n-st
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_st_list.txt || true

%preun -n libreoffice-l10n-st
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_st_list.txt %{_datadir}/%ooo_home/lang_st_list.txt.postun || true

%postun -n libreoffice-l10n-st
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_st_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_st_list.txt.postun 2>/dev/null
# sv
%posttrans -n libreoffice-l10n-sv
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_sv_list.txt || true

%preun -n libreoffice-l10n-sv
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_sv_list.txt %{_datadir}/%ooo_home/lang_sv_list.txt.postun || true

%postun -n libreoffice-l10n-sv
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_sv_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_sv_list.txt.postun 2>/dev/null
# tg
%posttrans -n libreoffice-l10n-tg
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_tg_list.txt || true

%preun -n libreoffice-l10n-tg
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_tg_list.txt %{_datadir}/%ooo_home/lang_tg_list.txt.postun || true

%postun -n libreoffice-l10n-tg
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_tg_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_tg_list.txt.postun 2>/dev/null
# th
%posttrans -n libreoffice-l10n-th
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_th_list.txt || true

%preun -n libreoffice-l10n-th
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_th_list.txt %{_datadir}/%ooo_home/lang_th_list.txt.postun || true

%postun -n libreoffice-l10n-th
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_th_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_th_list.txt.postun 2>/dev/null
# tr
%posttrans -n libreoffice-l10n-tr
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_tr_list.txt || true

%preun -n libreoffice-l10n-tr
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_tr_list.txt %{_datadir}/%ooo_home/lang_tr_list.txt.postun || true

%postun -n libreoffice-l10n-tr
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_tr_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_tr_list.txt.postun 2>/dev/null
# ts
%posttrans -n libreoffice-l10n-ts
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ts_list.txt || true

%preun -n libreoffice-l10n-ts
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ts_list.txt %{_datadir}/%ooo_home/lang_ts_list.txt.postun || true

%postun -n libreoffice-l10n-ts
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ts_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ts_list.txt.postun 2>/dev/null
# uk
%posttrans -n libreoffice-l10n-uk
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_uk_list.txt || true

%preun -n libreoffice-l10n-uk
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_uk_list.txt %{_datadir}/%ooo_home/lang_uk_list.txt.postun || true

%postun -n libreoffice-l10n-uk
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_uk_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_uk_list.txt.postun 2>/dev/null
# ve
%posttrans -n libreoffice-l10n-ve
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_ve_list.txt || true

%preun -n libreoffice-l10n-ve
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_ve_list.txt %{_datadir}/%ooo_home/lang_ve_list.txt.postun || true

%postun -n libreoffice-l10n-ve
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_ve_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_ve_list.txt.postun 2>/dev/null
# vi
%posttrans -n libreoffice-l10n-vi
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_vi_list.txt || true

%preun -n libreoffice-l10n-vi
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_vi_list.txt %{_datadir}/%ooo_home/lang_vi_list.txt.postun || true

%postun -n libreoffice-l10n-vi
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_vi_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_vi_list.txt.postun 2>/dev/null
# xh
%posttrans -n libreoffice-l10n-xh
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_xh_list.txt || true

%preun -n libreoffice-l10n-xh
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_xh_list.txt %{_datadir}/%ooo_home/lang_xh_list.txt.postun || true

%postun -n libreoffice-l10n-xh
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_xh_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_xh_list.txt.postun 2>/dev/null
# zh-CN
%posttrans -n libreoffice-l10n-zh-CN
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_zh_CN_list.txt || true

%preun -n libreoffice-l10n-zh-CN
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_zh_CN_list.txt %{_datadir}/%ooo_home/lang_zh_CN_list.txt.postun || true

%postun -n libreoffice-l10n-zh-CN
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_zh_CN_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_zh_CN_list.txt.postun 2>/dev/null
# zh-TW
%posttrans -n libreoffice-l10n-zh-TW
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_zh_TW_list.txt || true

%preun -n libreoffice-l10n-zh-TW
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_zh_TW_list.txt %{_datadir}/%ooo_home/lang_zh_TW_list.txt.postun || true

%postun -n libreoffice-l10n-zh-TW
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_zh_TW_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_zh_TW_list.txt.postun 2>/dev/null
# zu
%posttrans -n libreoffice-l10n-zu
%{_datadir}/%ooo_home/link-to-ooo-home %{_datadir}/%ooo_home/lang_zu_list.txt || true

%preun -n libreoffice-l10n-zu
test "$1" = "0" && cp %{_datadir}/%ooo_home/lang_zu_list.txt %{_datadir}/%ooo_home/lang_zu_list.txt.postun || true

%postun -n libreoffice-l10n-zu
test "$1" = "0" && %{_datadir}/%ooo_home/link-to-ooo-home --unlink %{_datadir}/%ooo_home/lang_zu_list.txt.postun || true
rm -f %{_datadir}/%ooo_home/lang_zu_list.txt.postun 2>/dev/null
%endif

%if %test_build_langs >= 2
%files -f lang_af_list.txt -n libreoffice-l10n-af
%defattr(-,root,root)

%files -f lang_ar_list.txt -n libreoffice-l10n-ar
%defattr(-,root,root)

%files -f lang_be_list.txt -n libreoffice-l10n-be-BY
%defattr(-,root,root)

%files -f lang_bg_list.txt -n libreoffice-l10n-bg
%defattr(-,root,root)

%files -f lang_br_list.txt -n libreoffice-l10n-br
%defattr(-,root,root)

%files -f lang_ca_list.txt -n libreoffice-l10n-ca
%defattr(-,root,root)

%endif
%if %test_build_langs >= 1

%files -f lang_cs_list.txt -n libreoffice-l10n-cs
%defattr(-,root,root)

%endif
%if %test_build_langs >= 2

%files -f lang_cy_list.txt -n libreoffice-l10n-cy
%defattr(-,root,root)

%files -f lang_da_list.txt -n libreoffice-l10n-da
%defattr(-,root,root)

%endif
%if %test_build_langs >= 1

%files -f lang_de_list.txt -n libreoffice-l10n-de
%defattr(-,root,root)

%endif
%if %test_build_langs >= 2

%files -f lang_el_list.txt -n libreoffice-l10n-el
%defattr(-,root,root)

%files -f lang_en_GB_list.txt -n libreoffice-l10n-en-GB
%defattr(-,root,root)

%files -f lang_en_ZA_list.txt -n libreoffice-l10n-en-ZA
%defattr(-,root,root)

%files -f lang_es_list.txt -n libreoffice-l10n-es
%defattr(-,root,root)

%files -f lang_et_list.txt -n libreoffice-l10n-et
%defattr(-,root,root)

%files -f lang_fi_list.txt -n libreoffice-l10n-fi
%defattr(-,root,root)

%files -f lang_fr_list.txt -n libreoffice-l10n-fr
%defattr(-,root,root)

%files -f lang_ga_list.txt -n libreoffice-l10n-ga
%defattr(-,root,root)

%files -f lang_gl_list.txt -n libreoffice-l10n-gl
%defattr(-,root,root)

%files -f lang_gu_list.txt -n libreoffice-l10n-gu-IN
%defattr(-,root,root)

%files -f lang_he_list.txt -n libreoffice-l10n-he
%defattr(-,root,root)

%files -f lang_hi_list.txt -n libreoffice-l10n-hi-IN
%defattr(-,root,root)

%files -f lang_hr_list.txt -n libreoffice-l10n-hr
%defattr(-,root,root)

%endif
%if %test_build_langs >= 1

%files -f lang_hu_list.txt -n libreoffice-l10n-hu
%defattr(-,root,root)

%endif
%if %test_build_langs >= 2

%files -f lang_it_list.txt -n libreoffice-l10n-it
%defattr(-,root,root)

%endif
%if %test_build_langs >= 1

%files -f lang_ja_list.txt -n libreoffice-l10n-ja
%defattr(-,root,root)

%endif
%if %test_build_langs >= 2

%files -f lang_ka_list.txt -n libreoffice-l10n-ka
%defattr(-,root,root)

%files -f lang_km_list.txt -n libreoffice-l10n-km
%defattr(-,root,root)

%files -f lang_ko_list.txt -n libreoffice-l10n-ko
%defattr(-,root,root)

%files -f lang_lt_list.txt -n libreoffice-l10n-lt
%defattr(-,root,root)

%files -f lang_mk_list.txt -n libreoffice-l10n-mk
%defattr(-,root,root)

%files -f lang_nb_list.txt -n libreoffice-l10n-nb
%defattr(-,root,root)

%files -f lang_nl_list.txt -n libreoffice-l10n-nl
%defattr(-,root,root)

%files -f lang_nn_list.txt -n libreoffice-l10n-nn
%defattr(-,root,root)

%files -f lang_nr_list.txt -n libreoffice-l10n-nr
%defattr(-,root,root)

%files -f lang_pa_IN_list.txt -n libreoffice-l10n-pa-IN
%defattr(-,root,root)

%files -f lang_pl_list.txt -n libreoffice-l10n-pl
%defattr(-,root,root)

%files -f lang_pt_list.txt -n libreoffice-l10n-pt
%defattr(-,root,root)

%files -f lang_pt_BR_list.txt -n libreoffice-l10n-pt-BR
%defattr(-,root,root)

%files -f lang_ru_list.txt -n libreoffice-l10n-ru
%defattr(-,root,root)

%files -f lang_rw_list.txt -n libreoffice-l10n-rw
%defattr(-,root,root)

%files -f lang_sh_list.txt -n libreoffice-l10n-sh
%defattr(-,root,root)

%files -f lang_sk_list.txt -n libreoffice-l10n-sk
%defattr(-,root,root)

%files -f lang_sl_list.txt -n libreoffice-l10n-sl
%defattr(-,root,root)

%files -f lang_sr_list.txt -n libreoffice-l10n-sr
%defattr(-,root,root)

%files -f lang_ss_list.txt -n libreoffice-l10n-ss
%defattr(-,root,root)

%files -f lang_st_list.txt -n libreoffice-l10n-st
%defattr(-,root,root)

%files -f lang_sv_list.txt -n libreoffice-l10n-sv
%defattr(-,root,root)

%files -f lang_tg_list.txt -n libreoffice-l10n-tg
%defattr(-,root,root)

%files -f lang_th_list.txt -n libreoffice-l10n-th
%defattr(-,root,root)

%files -f lang_tr_list.txt -n libreoffice-l10n-tr
%defattr(-,root,root)

%files -f lang_ts_list.txt -n libreoffice-l10n-ts
%defattr(-,root,root)

%files -f lang_uk_list.txt -n libreoffice-l10n-uk
%defattr(-,root,root)

%files -f lang_ve_list.txt -n libreoffice-l10n-ve
%defattr(-,root,root)

%files -f lang_vi_list.txt -n libreoffice-l10n-vi
%defattr(-,root,root)

%files -f lang_xh_list.txt -n libreoffice-l10n-xh
%defattr(-,root,root)

%files -f lang_zh_CN_list.txt -n libreoffice-l10n-zh-CN
%defattr(-,root,root)

%files -f lang_zh_TW_list.txt -n libreoffice-l10n-zh-TW
%defattr(-,root,root)

%files -f lang_zu_list.txt -n libreoffice-l10n-zu
%defattr(-,root,root)

%endif

%changelog