File koffice2-l10n.spec.in of Package koffice2-l10n
#
# spec file for package koffice2-l10n
#
# Copyright (c) 2011 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/
#
# icecream 0
Name: koffice2-l10n
BuildRequires: fdupes
BuildRequires: kdelibs4-doc
BuildRequires: libkde4-devel
Url: http://i18n.kde.org/
License: GPLv2+
Group: System/GUI/KDE
Summary: Translations for KOffice2
Version: 2.3.1
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
#@SOURCES@
Source200: update_spec.pl
Source201: attributes
%define build_languages @LANGUAGES@
%description
description
#@PACKAGES@
%prep
%setup -q -n koffice-l10n-de-%version @EXTRACT@
%build
cd ..
for i in %{build_languages}; do
pushd koffice-l10n-$i-%version || exit 1
%cmake_kde4 -d build
%make_jobs
popd
done
%install
cd ..
for i in %build_languages; do
pushd koffice-l10n-$i-%version/build || exit 1
%make_install
popd
# work-around for bnc#457908
mkdir -p %{buildroot}%{_kde4_htmldir}/$i/common
done
for i in %{build_languages}; do
filename=$i
case $i in
sr@Latn)
filename=srLatn
;;
esac
{
echo "%defattr(-,root,root)"
if test -d %{buildroot}%{_datadir}/locale/$i; then
echo "%lang($i) %{_datadir}/locale/$i/LC_MESSAGES/*"
fi
if test -f %{buildroot}%{_kde4_appsdir}/koffice/autocorrect/$i.xml; then
echo "%dir %{_kde4_appsdir}/koffice"
echo "%dir %{_kde4_appsdir}/koffice/autocorrect"
echo "%lang($i) %{_kde4_appsdir}/koffice/autocorrect/$i.xml"
fi
} > files.$filename
{
echo "%defattr(-,root,root)"
if test -d %{buildroot}%{_kde4_htmldir}/$i; then
echo "%lang($i) %doc %{_kde4_htmldir}/$i"
fi
} > files.doc.$filename
cat files.$filename files.doc.$filename >files.both.$filename
done
%fdupes -s %{buildroot}
#@FILES@
%changelog