File of Package libreoffice

# 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

Name:           libreoffice-l10n
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          "@OOO_LANGS_MIN_0@"
%if %test_build_langs == 1
%define       lo_langs          "@OOO_LANGS_MIN_1@"
%define       lo_langs          "@OOO_LANGS_MIN_2@"
License:        LGPL-3.0
Summary:        A Source Package for LibreOffice Localizations
Group:          Productivity/Office/Suite
Source0:        install-l10n-helper
# helper stuff to produce the spec file
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

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



# 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

rm -rf %{buildroot}